GameCN

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-bar
npx shadcn@latest add @gamecn/player-hud

For local development, use the direct JSON URLs:

npx shadcn@latest add http://localhost:3000/r/health-bar.json

Notes

  • GameCN follows the shadcn copy-owned model.
  • Registry source lives under registry/new-york.
  • Installable payloads are generated into public/r with npm run registry:build.
  • Command examples support npm, pnpm, pnpx, bun, and yarn runners.

On this page