|
| 1 | +# ui8kit CLI documentation |
| 2 | + |
| 3 | +Contract **2.0.0** · Node.js `>=20` |
| 4 | + |
| 5 | +`ui8kit` is a **file-based registry CLI** (shadcn-style): it fetches registry items from a CDN (or local server) and **writes source files into your app**. It does not treat `node_modules` as the kit source of truth, so Tailwind and bundlers see real classes and files. |
| 6 | + |
| 7 | +This docs set covers concepts, configuration, every command, the registry JSON contract, CDN/cache behavior, publishing, end-to-end scenarios, troubleshooting, and migration from v1. |
| 8 | + |
| 9 | +## Guides |
| 10 | + |
| 11 | +| Doc | Contents | |
| 12 | +|-----|----------| |
| 13 | +| [Getting started](./getting-started.md) | Install, first `init` / `add`, verification | |
| 14 | +| [Concepts](./concepts.md) | Mental model, folders, types, runtimes, path remap | |
| 15 | +| [Configuration](./configuration.md) | Full `ui8kit.config.json` reference | |
| 16 | +| [Commands](./commands.md) | Every command, flag, and example | |
| 17 | +| [Registry format](./registry-format.md) | Item / index JSON contract | |
| 18 | +| [CDN and cache](./cdn-and-cache.md) | URL resolution, pinning, offline cache | |
| 19 | +| [Publishing a registry](./publishing.md) | `scan` → `build` → host `/r` | |
| 20 | +| [Troubleshooting](./troubleshooting.md) | Common failures and fixes | |
| 21 | +| [Migration v1 → v2](./migration-v2.md) | Breaking changes checklist | |
| 22 | + |
| 23 | +## Scenarios |
| 24 | + |
| 25 | +| Scenario | Audience | |
| 26 | +|----------|----------| |
| 27 | +| [Consumer app (React)](./scenarios/consumer-react.md) | App teams installing primitives | |
| 28 | +| [Svelte / Solid / Vue](./scenarios/multi-runtime.md) | Multi-runtime digests | |
| 29 | +| [Go Templ / PHP](./scenarios/non-js.md) | Kit on disk without a JS framework | |
| 30 | +| [Private / strict CDN](./scenarios/private-cdn.md) | Locked registry URL + version pin | |
| 31 | +| [Maintain & publish registry](./scenarios/maintain-registry.md) | Authors assembling `packages/registry/r` | |
| 32 | +| [CI dry-run & upgrades](./scenarios/ci-and-upgrades.md) | Automation, `diff`, force updates | |
| 33 | + |
| 34 | +## Quick mental model |
| 35 | + |
| 36 | +```text |
| 37 | + ┌─────────────────────┐ |
| 38 | + │ Registry CDN `/r` │ |
| 39 | + │ index.json + items │ |
| 40 | + └──────────┬──────────┘ |
| 41 | + │ fetch |
| 42 | + ▼ |
| 43 | +┌──────────────┐ ui8kit add ┌────────────────────────┐ |
| 44 | +│ App project │ ◄──────────────── │ files under {dir}/… │ |
| 45 | +│ ui8kit.config│ │ components/ui, utils… │ |
| 46 | +└──────────────┘ └────────────────────────┘ |
| 47 | +``` |
| 48 | + |
| 49 | +Authors use the reverse path: |
| 50 | + |
| 51 | +```text |
| 52 | +source kit → ui8kit scan → registry.json → ui8kit build → packages/registry/r |
| 53 | +``` |
| 54 | + |
| 55 | +## Related |
| 56 | + |
| 57 | +- Package README: [../README.md](../README.md) |
| 58 | +- Maintainer scripts: [../scripts/README.md](../scripts/README.md) |
| 59 | +- Changelog: [../CHANGELOG.md](../CHANGELOG.md) |
0 commit comments