Skip to content
WANCRAFT

Registry Installation

Install components with the shadcn CLI from wancraft.my/r.

The registry endpoint

Every component is published as a shadcn-compatible registry item at https://wancraft.my/r/<slug>.json. The index of all items lives at /r/registry.json. Items contain the complete source and the npm dependencies.

Verified

Installation with shadcn@latest was tested against a fresh Next.js project on 2026-10-13.

Project setup

The CLI needs a components.json. If your project does not have one yet:

npx shadcn@latest init

Add by URL

npx shadcn@latest add https://wancraft.my/r/spotlight-card.json

Optional: a @wancraft namespace

Register Wancraft once in your components.json to use short names:

components.json
{
  "registries": {
    "@wancraft": "https://wancraft.my/r/{name}.json"
  }
}
npx shadcn@latest add @wancraft/spotlight-card

What the CLI changes

  • Writes components/ui/<slug>.tsx (following your ui alias).
  • Installs the listed npm dependencies with your package manager.
  • Nothing else — no CSS variables, no config changes.