Every shadcn registry, in one place.
The shadcn CLI can install components from any registry that publishes the right JSON, and hundreds do — but there is no way to see them side by side. This project crawls the public registry ecosystem, works out what each item needs to render, actually renders it in a browser, and serves the result as a site where you can search, preview (screenshot or live) and copy the install command. Nothing is re-hosted: the install command always points at the registry that owns the item.
![]() |
![]() |
| Browse — 17k items, faceted, filters in the URL. | Registry — one wall per registry, live where possible. |
![]() |
![]() |
| Item — live preview, source, install command. | ⌘K — semantic search, entirely in the browser. |
The pipeline is a chain of shx commands, one package per stage.
flowchart TD
SRC(["ui.shadcn.com/r/registries.json"]) -->|"HTTP"| CRAWL
CRAWL["<b>crawl</b> · @shx/catalog"] -->|"data/raw/registries/<id>/<br/>registry.json + items/*.json"| ANALYZE
ANALYZE["<b>analyze</b> · @shx/analysis"] -->|"data/meta/analysis.jsonl<br/>one classified item per line"| SAMPLE
SAMPLE["<b>sample</b> · @shx/analysis"] -->|"the render set"| HARNESS
HARNESS["<b>harness</b> · @shx/renderer"] -->|"data/harness/<br/>fixtures, item copies, entries, manifest"| RENDER
RENDER["<b>render</b> · @shx/renderer + Playwright"] -->|"data/render/<br/>screenshots + render-results.json"| EXPORT
EXPORT["<b>export</b> · @shx/db"] -->|"public/site-index.json"| SITE
EXPORT -->|"data/site-files/**<br/>one JSON doc per item"| SITE
SITE(["<b>The site</b> · apps/web"])
Every arrow is a directory, not a function call. No stage imports another
stage's modules — the files under data/ are the contract, and that
contract is typed in @shx/core.
| Stage | Package | Reads | Writes |
|---|---|---|---|
| crawl | @shx/catalog |
https://ui.shadcn.com/r/registries.json |
data/raw/registries/<id>/{registry.json, items/*.json}, data/meta/{sources,stats,failures,run}.json |
| analyze | @shx/analysis |
data/raw |
data/meta/analysis.jsonl (one classified item per line), analysis-report.json |
| harness | @shx/renderer |
sample set + data/raw |
data/harness/ — core shadcn fixtures, per-item files with imports rewritten, one entry per item, generated/manifest.json |
| render | @shx/renderer |
data/harness via the harness dev server |
data/render/screenshots/<key>.png, data/meta/render-results.json |
| export | @shx/db |
everything above | apps/web/public/site-index.json (the catalog the site reads), apps/web/data/site.db, apps/web/data/site-files/** (one document per item, baked into its page by next build; not in git) |
Analyze is deterministic and has no AI in it: every bucket is a plain function of the item's declared type, files and dependency list. It decides, per item, whether the renderer should bother — and if not, exactly why.
flowchart TD
IT["item JSON"] --> V{"visual type<br/>with a renderable file?"}
V -- no --> SKIP["<b>nothing to mount</b><br/>not-visual · no-renderable-file"]
V -- yes --> NX{"Next.js-only APIs?"}
NX -- yes --> B1["<b>next-specific</b><br/>369 items"]
NX -- no --> RD{"registry deps from<br/>another registry?"}
RD -- yes --> B2["<b>needs-external-registry-deps</b><br/>322 items"]
RD -- no --> PR{"needs a provider<br/>or env var?"}
PR -- yes --> B3["<b>needs-provider-or-env</b><br/>320 items"]
PR -- no --> B4["<b>directly-renderable</b><br/>14,112 items"]
/about reports these counts live, so the coverage numbers on the site are
the classifier's own output rather than a claim.
Harness copies an item's files into a shared Vite + React app and
rewrites its imports: @/components/ui/* resolves to stock shadcn
primitives, same-registry imports resolve to the registry's own files,
npm packages must be in the harness's preinstalled set or the item is
recorded as unresolved (never installed per item).
Render mounts each entry with no props in headless Chromium, waits for the harness to report a status, and screenshots what painted. Compile success and visual success are recorded separately: an item that mounts but paints nothing is not a preview.
Export judges each screenshot — did the item paint, and how big a tile does it make — and builds the catalog the site ships with. The screenshot itself never reaches the site.
Nothing runs per request. next build pre-renders every page from
public/site-index.json and each item's source document into static files,
and an assets-only Worker serves them — no script, so no CPU per request,
and asset requests are free and unlimited on Cloudflare's Free plan.
flowchart LR
U(["Browser"])
subgraph Build["This machine"]
direction TB
EXP["shx export<br/>site-index.json · site-files/**"]
NB["next build<br/>~15,000 HTML pages"]
EXP --> NB
end
subgraph CF["Cloudflare · assets only"]
direction TB
SITE[["<b>Site</b><br/>static files<br/>shx.app"]]
PAL[["palette-index.json<br/>embeddings.bin<br/><i>⌘K, similarity in the browser</i>"]]
HARN[["<b>Harness</b><br/>static files<br/>preview.intelligo.dev"]]
end
NB -->|"wrangler deploy"| SITE
U -->|"page"| SITE
U -->|"fetched once"| PAL
U -->|"sandboxed iframe<br/>separate origin"| HARN
Three deliberate choices are worth calling out.
The catalog ships with the code. It used to be D1, which bills rows
scanned — one unfiltered /browse cost 82,510 rows and exhausted the
free tier's daily allowance in hours — and then a Worker rendering each page
on request, which cost ~27 ms of CPU against the Free plan's 10 ms. Now the
index and the palette's two assets are tracked in git and every page is a
file. The tradeoff: publishing content is a commit and a deploy —
pnpm shx export && pnpm shx embed, then pnpm web:deploy — and
pnpm check:release refuses an export with fewer rows than production.
Item source code is not in the index. It is 90% of the corpus by size
and no list query ever wanted it. shx export writes one document per item,
already syntax-highlighted, and next build bakes each into its own page. A
build refuses to start if any document is missing or from another export
format (apps/web/scripts/check-item-documents.mts).
Third-party code never runs on the site's origin. Live previews are
served by a separate assets-only Worker (NEXT_PUBLIC_PREVIEW_ORIGIN,
localhost:5183 in dev) inside a sandboxed iframe, so registry code cannot
touch this site's cookies or storage. The harness posts its mounted size and
whether it painted back to the embedding page; an item that fails says so,
never a picture standing in, and only the tiles nearest the viewport run.
apps/web, Next.js. Four kinds of page:
- Browse
/browse— full-text search across every item, faceted by kind, registry and framework. Results are a masonry wall of tiles that load more as you scroll; filters live in the URL. - Registry
/r/<registry>— one registry, every item, on a single wall. No clicking into cards: live frames for items the harness can mount (nearest the viewport), the kind glyph and description for the rest. Plus thecomponents.jsonsnippet the registry needs. - Item
/r/<registry>/<item>— live preview with viewport switcher, source files with syntax highlighting, install command in every package manager, dependencies, and the examples, dependants and siblings that relate to it. - Registries
/registriesand About/about— the index itself, including an honest breakdown of why items do or don't have previews, computed from the catalog.
![]() |
![]() |
| Source files are baked into each page, not the index. | Ranked by render coverage, not by quality. |
![]() |
![]() |
| Every facet is a URL you can share. | Coverage, stated honestly. |
⌘K runs semantic search with no server call. shx embed runs an embedding
model locally in Node (~40 s for the whole catalog) and writes two static
assets, public/palette-index.json and public/embeddings.bin; the browser
loads the model once from a CDN, caches it, and does the similarity math
itself. It costs the Worker's 10 ms request budget nothing. Skipping shx embed
isn't fatal — the palette degrades to keyword filtering — but the semantic
results are gone.
pnpm install
# Full pipeline — the crawl takes ~30 minutes, the rest minutes.
pnpm shx crawl
pnpm shx analyze
pnpm shx sample # pick what to render
pnpm shx harness
pnpm shx render
pnpm shx licenses # each registry's license, from its repository
pnpm shx export
pnpm shx embed # ⌘K semantic search assets
# Run it
pnpm harness # Vite harness on :5183 — needed for live previews
pnpm web # Next.js sitepnpm shx works from any directory in the workspace; all paths resolve
from the workspace root. Point it at another corpus with
SHX_DATA_ROOT=/path. After shx export the site picks up the new catalog on
its next build; next dev reads it straight off disk.
Checks: pnpm verify:code — typecheck and tests across every package, ESLint
(only apps/web has a config), pnpm test:rules for the architecture rules
ESLint can't express, and the site's design-token guard. pnpm verify adds the
release-size, harness-drift and built-site smoke checks; pnpm web:deploy and
pnpm harness:deploy run them first.
shx crawl [--limit-registries=N] [--limit-items=N] [--only-registry=<id>]
[--retry-failed] [--concurrency=N] [--timeout=<ms>] [--retries=N]
shx stats print the last crawl's stats
shx recompute recompute stats from what is on disk
shx analyze classify every item
shx sample pick which items to render
shx harness [--sample=<file>] [--entries-only] [--all-entries]
shx render render every manifest entry
shx licenses [--all] resolve each indexed registry's license from its GitHub repository
(never guessed: a registry it can't tie to one repository stays "not tracked")
shx export build the site catalog and each item's source document
shx embed embed every indexed item for the ⌘K palette (run after export)
shx all analyze, sample, harness, render, export
apps/
web/ Next.js site
packages/
core/ Domain types, artifact I/O, every path under data/ (paths.ts)
catalog/ crawl
analysis/ analyze, sample
renderer/ harness, render (Playwright lives here)
harness/ The Vite app that mounts items
db/ Drizzle schema, DDL, the site.db builder, site-index, embed
intelligence/ judge — offline classification of what an item is for (`shx judge baseline` sends nothing)
cli/ `shx`
data/ Corpus artifacts — gitignored except meta/ reports and reference/
docs/images/ README screenshots
Dependency direction is one way and enforced by what each package lists:
flowchart LR
renderer["<code>@shx/renderer</code>"] --> analysis["<code>@shx/analysis</code>"]
analysis --> catalog["<code>@shx/catalog</code>"]
catalog --> core["<code>@shx/core</code>"]
web["<code>@shx/web</code><br/><i>standalone — types only, in a test</i>"] -.-> db["<code>@shx/db</code>"]
db --> core
cli["<code>@shx/cli</code>"] --> renderer
cli --> db
harness["<code>@shx/harness</code><br/><i>standalone Vite app</i>"]
Arrows point at what a package imports. Nothing depends on cli or web.
The harness has no workspace dependencies at all — its inputs are generated
into data/harness by shx harness. Neither, any more, does the site: the
dashed edge is a type-only devDependency used by a single test, which
asserts that the shape the site declares for the catalog and the shape the
pipeline writes have not drifted. Everything the site actually builds and
ships is its own.
Packages are consumed as TypeScript source (exports point at src/*.ts,
tsx runs them, Next transpiles them). Tests are node:test files next
to the code.
The renderer generates thousands of files — fixtures, item copies, one
entry per item. They live under data/harness, not inside the harness
package, so they stay out of the editor, lint and typecheck. The harness
aliases @ there and imports a generated entries map — only keys that
compiled in the last render, so deliberately broken items never enter
the dependency scan or vite build — and shx harness symlinks data/harness/node_modules to
the harness package's so bare imports resolve. React is deduped so the two
paths don't yield two copies.
pnpm shx export && pnpm shx embed && pnpm web:deploy # the site (shx.app)
pnpm harness:deploy # live previews (preview.intelligo.dev)Both deploys go through pnpm --filter … run deploy. Note the run:
pnpm --filter X deploy silently invokes pnpm's own deploy builtin
instead of the package script and fails with ERR_PNPM_INVALID_DEPLOY_TARGET.
The index currently covers a chosen subset
of registries (see packages/core/src/site-subset.ts) and the renderer has
run on a sample of each, which is why coverage is well below item counts.
The full corpus is 28k items across ~250 registries; the pipeline is
built to run on all of it, and /about reports exactly what has and
hasn't been rendered and why.
Every item belongs to its registry's authors and carries their license. Previews are shown to help you find things; check the registry before you ship.
Issues and pull requests are welcome — see CONTRIBUTING.md for setup and the rules the code keeps, and SECURITY.md for reporting a vulnerability privately.
The code in this repository is licensed under the GNU Affero General Public License v3.0. The registry items the site indexes are not part of it: each belongs to its registry's authors under that registry's own license, and this repository never re-hosts their source.








