How it works
znverse has four parts: a registry of effects in git, the site you are reading, an isolated preview app that runs the demos, and an install registry that the CLI and shadcn read.
The registry is the source of truth
Every effect is a folder in the registry/effects directory of the znverse repository:
registry/effects/tilt-card/
effect.json name, category, tags, framework, dependencies, playground
README.md the docs you read on the effect page
src/ the source you copy or install
preview/page.tsx the demo the preview app renders
thumbnail.svg the catalog imageGit is the database. Adding or changing an effect is a pull request, so every change is reviewed. A validator checks each manifest, the files it points to, the playground setup and the kits before anything ships.
The site reads the registry
The catalog, the category and tag pages, the search, the effect pages and the docs are all built from the registry at build time. Effect pages are prerendered, so they load fast and an unknown address is a real 404.
Demos run in isolation
Effect demos are arbitrary JavaScript: motion libraries, canvas code, WebGL scenes. They never run on the site itself. A separate preview app on its own origin renders each demo, and the site embeds it in a sandboxed frame.
This has two benefits:
- Safety. Demo code cannot read or change the site, and only the site is allowed to embed the preview app.
- Stability. A broken or heavy demo cannot slow down browsing or search.
The playground talks to the preview frame through a small message protocol. Both sides check where each message came from, and the preview validates every value against the effect's declared controls before using it.
Installing reads the same registry
When the site is built, every installable effect is also written out as a JSON file in the shadcn registry format at /r/<effect>.json, and every kit at /r/kits/<kit>.json. The znverse CLI and the shadcn CLI download those files and write the source into your project.
registry/effects ──build──▶ site pages + /r/*.json ──CLI──▶ your project
│
└──────────────▶ preview app (separate origin, sandboxed)Free and premium
Free effects show their demo, docs and source, and can be installed. Premium effects show a static preview and keep their source and docs locked. Their code is never sent to the browser or published in the install registry.
Read more
- Live preview covers the preview tools.
- Registry API documents the install JSON.
- Manifest reference lists every field an effect can set.