@usalyt/registry 0.0.0-stage → 0.0.2

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 ADDED
@@ -0,0 +1,31 @@
1
+ # Changelog
2
+
3
+ All notable changes to this package are recorded here. The Usalyt package set uses the fixed `0.0.1` version group until a deliberate versioning change is approved.
4
+
5
+ ## [0.0.2](https://github.com/Usalyt/ui/compare/registry-v0.0.1...registry-v0.0.2) (2026-11-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * **design:** adopt Braun Rams functionalist default while preserving Linear preset ([a3198ad](https://github.com/Usalyt/ui/commit/a3198ad7bfa7d6bd38f5aa35314b075abca772a9))
11
+ * **design:** unify Graphite theme with semantic editor and industrial UI instruments ([fdc8cc5](https://github.com/Usalyt/ui/commit/fdc8cc5cdece64cb6014eedf1a0ff84e1d688219))
12
+ * **registry:** include theme stylesheet in component registry ([3a2107f](https://github.com/Usalyt/ui/commit/3a2107fde6b802b7d3bf5ca9f96d6b93a73b77d8))
13
+ * **themes:** add parametric tokens, interactive docs Theme Studio, and CLI preset engine ([e932e53](https://github.com/Usalyt/ui/commit/e932e53fd25ca6c98afc56d69282509275b73b7b))
14
+ * **ui:** add ScheduleTimelineBoard and ColorPaletteSheet blocks with airy docs layout ([b439edb](https://github.com/Usalyt/ui/commit/b439edb2adfada6902f877c64b9edf509ed301a3))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **registry:** allow SemVer versions in registry schema and sync version assertions ([5f5294d](https://github.com/Usalyt/ui/commit/5f5294df9b49cc6f8ed6156338d82db33fed7c73))
20
+
21
+ ## 0.0.1 — 2026-11-07
22
+
23
+ ### Added
24
+
25
+ - Initial Usalyt release candidate for `@usalyt/registry`.
26
+ - `GPL-3.0-only` license text and source-availability documentation.
27
+ - Package README with installation, supported imports, and release notes.
28
+
29
+ ### Notes
30
+
31
+ - This is an initial `0.0.1` release candidate. It is not a stability or compatibility guarantee.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pablo Pincay Alvarez, Ricardo Villamar and Usalyt contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,31 @@
1
+ # Usalyt licensing notice
2
+
3
+ Copyright (C) 2026 Pablo Pincay Alvarez, Ricardo Villamar and Usalyt contributors.
4
+
5
+ The `usalyt` workspace and all six of its public packages are distributed under the MIT License (`MIT`). The complete license text for each package is in its own `LICENSE` file. There is no warranty, to the extent permitted by law.
6
+
7
+ ## Package license map
8
+
9
+ | Package | License |
10
+ | --- | --- |
11
+ | `@usalyt/ui` | `MIT` |
12
+ | `@usalyt/registry` | `MIT` |
13
+ | `@usalyt/cli` | `MIT` |
14
+ | `@usalyt/mcp-server` | `MIT` |
15
+ | `@usalyt/eslint-config` | `MIT` |
16
+ | `@usalyt/tsconfig` | `MIT` |
17
+
18
+ ## Source availability
19
+
20
+ Each public package tarball includes its source entry points and build inputs so recipients can rebuild and customize the package. The project repository referenced by the package metadata is `https://github.com/Usalyt/ui`.
21
+
22
+ ## Scope
23
+
24
+ This notice covers the `usalyt` workspace and its npm release workflow.
25
+
26
+ ## Provenance
27
+
28
+ - Components and distribution patterns are derived from the shadcn/ui approach (MIT). The MIT notice for shadcn/ui is preserved in `THIRD_PARTY_NOTICES.md`.
29
+ - Base UI, React, Tailwind CSS, and the other direct dependencies keep their own licenses as listed in `THIRD_PARTY_NOTICES.md`.
30
+ - The Inter font is distributed under the SIL Open Font License 1.1 and is attributed in `THIRD_PARTY_NOTICES.md`. Berkeley Mono is a commercial typeface and is not bundled; the stylesheet only references a locally installed copy and documents the substitution.
31
+ - This notice records the available evidence. It is not a legal certification.
package/README.md CHANGED
@@ -1,3 +1,183 @@
1
- # Temporary Holding Version
1
+ # @usalyt/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
+ Standalone, deterministic, versioned component registry for the Usalyt component
4
+ platform. The package ships the `registry.json` data file, the JSON Schema that
5
+ describes it, and the generator used to rebuild it from the `@usalyt/ui` source
6
+ tree.
7
+
8
+ The registry embeds the source of every published item, so the CLI and MCP
9
+ server can install or return components without reading a sibling checkout or
10
+ the current working directory. Consumers should read the packaged JSON; they do
11
+ not run the generator.
12
+
13
+ ## Installed imports
14
+
15
+ The package exposes the registry, its schema, and package metadata as data
16
+ files:
17
+
18
+ ```ts
19
+ import registry from "@usalyt/registry/registry.json" with { type: "json" };
20
+ import schema from "@usalyt/registry/schema/registry.schema.json" with {
21
+ type: "json",
22
+ };
23
+ import packageMetadata from "@usalyt/registry/package.json" with {
24
+ type: "json",
25
+ };
26
+ ```
27
+
28
+ Synchronous CommonJS consumers can load the same files with `require`. The
29
+ registry is data only; the package has no runtime dependencies and no executable
30
+ entry point. JSON import attributes require Node.js 20.10 or newer; the declared
31
+ engine range lives in `package.json`.
32
+
33
+ ## Registry shape
34
+
35
+ Root fields:
36
+
37
+ | Field | Value |
38
+ | -------------------- | ------------------------------------------------------------ |
39
+ | `$schema` | `./schema/registry.schema.json` (local, packaged reference) |
40
+ | `name` | `usalyt` |
41
+ | `version` | `0.0.1` |
42
+ | `license` | `MIT` |
43
+ | `repository` | `{ type, url, directory }` for this package |
44
+ | `dependencyLicenses` | audited license for every direct `@usalyt/ui` dependency |
45
+ | `items` | sorted registry items |
46
+
47
+ Every item declares `name`, `type` (`registry:ui`, `registry:block`, or
48
+ `registry:lib`), `title`, `description`, `license`, `dependencies`,
49
+ `devDependencies`, `registryDependencies`, `dependencyVersions`, and `files`.
50
+ Every file entry declares a source-root-relative `path`, a `type`, and the
51
+ embedded file `content`.
52
+
53
+ The generated data covers 60 primitive components, 13 blocks, and the shared
54
+ `utils` item. `registry.json` is sorted deterministically: items by name,
55
+ dependency lists alphabetically, and files by path. The file is 2-space JSON
56
+ with a trailing newline and contains no timestamps or absolute paths.
57
+
58
+ ## Schema
59
+
60
+ `schema/registry.schema.json` is a JSON Schema Draft 2020-12 document that
61
+ validates the root, item, dependency, license, and file shapes. The schema is
62
+ packaged locally and referenced from `registry.json` as
63
+ `./schema/registry.schema.json`; there is no hosted schema URL. The build fails
64
+ if the generated data does not validate, and the test suite validates the
65
+ committed registry independently with Ajv.
66
+
67
+ ## Generation
68
+
69
+ The generator takes an explicit source root and an explicit output path. The
70
+ monorepo build uses package-relative defaults, so it does not depend on the
71
+ current working directory:
72
+
73
+ ```bash
74
+ pnpm --filter @usalyt/registry build
75
+ ```
76
+
77
+ The default source root is `../ui/src` relative to this package; the default
78
+ output is `registry.json` in this package.
79
+
80
+ Generate from any layout by pointing at a UI source root:
81
+
82
+ ```bash
83
+ pnpm --filter @usalyt/registry exec tsx scripts/build-registry.ts \
84
+ --source /path/to/ui/src \
85
+ --out /path/to/registry.json
86
+ ```
87
+
88
+ The source root must contain `components/`, `blocks/`, and `lib/utils.ts`, and
89
+ the `@usalyt/ui` `package.json` must exist at the source root or its parent
90
+ directory because dependency ranges are read from it. A copied source tree
91
+ produces the same bytes as the monorepo source tree.
92
+
93
+ `USALYT_SOURCE_ROOT` provides an alternative default source root when
94
+ `--source` is omitted; an explicit flag always wins:
95
+
96
+ ```bash
97
+ USALYT_SOURCE_ROOT=/path/to/ui/src pnpm --filter @usalyt/registry build
98
+ ```
99
+
100
+ Use `--help` for the full option list.
101
+
102
+ ### Reproducibility gate
103
+
104
+ `--check` regenerates the registry in memory and compares it with the output
105
+ file. It exits non-zero when the file is missing or differs, without writing
106
+ anything:
107
+
108
+ ```bash
109
+ pnpm --filter @usalyt/registry exec tsx scripts/build-registry.ts --check
110
+ ```
111
+
112
+ The registry build is byte-identical for identical input, so this check is safe
113
+ to run in CI. The package also exposes the recommended `check` script in its
114
+ manifest.
115
+
116
+ ## Dependency and license metadata
117
+
118
+ - `dependencies` lists the npm packages imported by an item's embedded source,
119
+ normalized to package names. `react` and `react-dom` stay peer dependencies
120
+ and are not listed per item.
121
+ - `dependencyVersions` maps each item dependency to the range declared by the
122
+ `@usalyt/ui` `package.json`. Generation fails when an imported package is not
123
+ declared.
124
+ - `registryDependencies` lists other registry items reached through relative
125
+ imports, including `utils` when a source file imports the shared `cn()`
126
+ helper. Generation derives the list from the embedded source instead of
127
+ assuming every item needs every dependency.
128
+ - `dependencyLicenses` records the audited license of every direct `@usalyt/ui`
129
+ dependency (runtime and peer) from `THIRD_PARTY_NOTICES.md`. Generation fails
130
+ when a direct dependency has no audited license entry.
131
+
132
+ Third-party licenses and notices remain in `THIRD_PARTY_NOTICES.md`. The
133
+ inventory is an audit of declared dependency licenses, not a legal
134
+ certification.
135
+
136
+ ## License
137
+
138
+ First-party code in this package is licensed `MIT`; the complete text
139
+ is in `LICENSE`. The package ships the registry data, the generator, and the
140
+ schema, and the embedded item sources are part of `registry.json`. The
141
+ source repository is recorded in `package.json`; `NOTICE` and
142
+ `THIRD_PARTY_NOTICES.md` preserve the upstream licensing status.
143
+
144
+ The commercial Berkeley Mono font is not bundled. Font-related dependencies keep
145
+ their own licenses as recorded in `THIRD_PARTY_NOTICES.md`.
146
+
147
+ ## Tests
148
+
149
+ The package uses the Node.js built-in test runner with the repository's `tsx`
150
+ loader. No additional test framework is required:
151
+
152
+ ```bash
153
+ node --import tsx --test tests/registry-data.test.ts tests/registry-cli.test.ts
154
+ ```
155
+
156
+ The suite covers schema validation, source embedding, source/dependency
157
+ accuracy, license metadata, determinism, `--check`, argument handling, and a
158
+ standalone copied-source fixture under `.tmp/standalone-ui-src/`.
159
+
160
+ ## Version 0.0.1 changelog
161
+
162
+ The initial `0.0.1` release candidate introduces the Usalyt registry identity,
163
+ the deterministic generator, the packaged schema, dependency and license
164
+ metadata, the `--check` reproducibility gate, and the standalone source-root
165
+ contract. See `CHANGELOG.md` for the recorded changelog entry. The package is
166
+ part of the fixed `0.0.1` Usalyt version group; it is not a stability or
167
+ compatibility guarantee.
168
+
169
+ ## Package layout
170
+
171
+ ```
172
+ packages/registry/
173
+ ├── schema/registry.schema.json # Draft 2020-12 schema
174
+ ├── scripts/build-registry.ts # Generator CLI (build and --check)
175
+ ├── src/registry-builder.ts # Deterministic generation logic
176
+ ├── tests/ # node --test suites
177
+ ├── registry.json # Generated registry data
178
+ ├── LICENSE
179
+ ├── NOTICE
180
+ ├── THIRD_PARTY_NOTICES.md
181
+ ├── CHANGELOG.md
182
+ └── README.md
183
+ ```