@cyclone-ui/registry-api 0.3.74 → 0.3.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  # Changelog for Cyclone UI - Registry API
4
4
 
5
+ ## [0.3.76](https://github.com/storm-software/cyclone-ui/releases/tag/registry-api%400.3.76) (11/14/2026)
6
+
7
+ ### Documentation
8
+
9
+ - **monorepo:** Added/updated documentation for components library ([1eb18466d](https://github.com/storm-software/cyclone-ui/commit/1eb18466d))
10
+
5
11
  ## [0.3.46](https://github.com/storm-software/cyclone-ui/releases/tag/registry-api%400.3.46) (11/04/2026)
6
12
 
7
13
  ### Miscellaneous
package/README.md CHANGED
@@ -22,3 +22,63 @@
22
22
  # Cyclone UI - Registry API (Internal)
23
23
 
24
24
  A package containing the shared TRPC router code used by the Cyclone Registry. **This is an internal package used to connect to the Cyclone UI registry API. Please avoid using it directly - it will be updated with breaking changes without warning.**
25
+
26
+ ## Quick Features
27
+
28
+ - A [tRPC](https://trpc.io) router with one `components` sub-router: `components.list` returns the newest version of each component, and `components.get` returns one component with its files.
29
+ - Reads component metadata and files from an R2-style bucket (the `STORAGE_BUCKET` binding), with the key layout `registry/components/<component>/<version>/<file>`.
30
+ - A typed, batching client, `createRegistryClient`, with the default URL `https://registry.cyclone-ui.com/api`.
31
+ - The registry types (`ComponentSummary`, `ComponentDetails`, `ComponentFile`, and others) and the `x-cyclone-version` and `x-cyclone-checksum` header names.
32
+
33
+ ## Installation
34
+
35
+ Inside this repository, add the package as a workspace dependency:
36
+
37
+ ```json
38
+ {
39
+ "dependencies": {
40
+ "@cyclone-ui/registry-api": "workspace:*"
41
+ }
42
+ }
43
+ ```
44
+
45
+ The package is also published to npm, but it can change without warning. Use it only to talk to the Cyclone UI registry.
46
+
47
+ ## Usage
48
+
49
+ Query the registry with the typed client:
50
+
51
+ ```ts
52
+ import { createRegistryClient } from "@cyclone-ui/registry-api/client";
53
+
54
+ const client = createRegistryClient();
55
+ const components = await client.components.list.query();
56
+ const button = await client.components.get.query("button");
57
+ ```
58
+
59
+ Host the router in a fetch-based server, as the [registry worker](../../apps/registry-worker/README.md) does:
60
+
61
+ ```ts
62
+ import { createContext } from "@cyclone-ui/registry-api/context";
63
+ import { router } from "@cyclone-ui/registry-api/router";
64
+ import type { Env } from "@cyclone-ui/registry-api/types";
65
+ import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
66
+
67
+ export default {
68
+ async fetch(req: Request, env: Env): Promise<Response> {
69
+ return fetchRequestHandler({ endpoint: "/api", req, router, createContext: createContext(env) });
70
+ }
71
+ };
72
+ ```
73
+
74
+ See the [package reference](../../docs/packages/registry-api.md) for every entry point, procedure, and type.
75
+
76
+ ## Development
77
+
78
+ This project is built using [Nx](https://nx.dev). Build it from the repository root:
79
+
80
+ ```bash
81
+ pnpm nx run registry-api:build
82
+ pnpm nx run registry-api:test
83
+ pnpm nx run registry-api:lint
84
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclone-ui/registry-api",
3
- "version": "0.3.74",
3
+ "version": "0.3.76",
4
4
  "description": "A repository containing the core front-end components used by Storm Software across many platforms",
5
5
  "repository": {
6
6
  "type": "github",