Installation
Configure the GameCN registry namespace and install components with the shadcn CLI.
Add the GameCN namespace to components.json:
{
"registries": {
"@gamecn": "https://your-domain.com/r/{name}.json"
}
}Then install components:
npx shadcn@latest add @gamecn/health-barnpx shadcn@latest add @gamecn/player-hudFor local development, use the direct JSON URLs:
npx shadcn@latest add http://localhost:3000/r/health-bar.jsonNotes
- GameCN follows the shadcn copy-owned model.
- Registry source lives under
registry/new-york. - Installable payloads are generated into
public/rwithnpm run registry:build. - Command examples support npm, pnpm, pnpx, bun, and yarn runners.