@clay-design-system/registry 0.0.0-stage → 0.14.0

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/README.md CHANGED
@@ -1,3 +1,27 @@
1
- # Temporary Holding Version
1
+ # @clay-design-system/registry
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Clay Registry: monday.com's marketing design system (components, sections, tokens, assets, rules) as one queryable
4
+ SQLite database, with a query layer that has no runtime dependencies. Read-only; internal units are not included.
5
+
6
+ Requires **Node >= 22.13** (uses the built-in `node:sqlite`, no flag needed).
7
+
8
+ ## Install
9
+
10
+ ```sh
11
+ pnpm add @clay-design-system/registry
12
+ ```
13
+
14
+ ## Use
15
+
16
+ ```js
17
+ import { search, get, assetUrl } from '@clay-design-system/registry'
18
+
19
+ search('hero section') // ranked hits: [{ id, kind, name, summary, links, score }, …]
20
+ get('section.FeaturesSection') // one compact record (import path, story, Figma and CDN links)
21
+ get('section.FeaturesSection', { detail: true }) // every column, plus links, relations and renders
22
+ assetUrl('asset.icon.calendar') // https://… CDN URL
23
+ ```
24
+
25
+ Also exported: `list`, `related`, `assetVariants`, `componentsUsingToken`, `allowedChildren`, `pageRecipe`, `openRegistry`,
26
+ the `Registry` class, the response types, and `DB_PATH` / `RECORDS_PATH` (absolute paths to the shipped
27
+ `data/clay.sqlite` and `data/records.json`, built when the package is built; gitignored in the repo).
Binary file