Install a component
Add a component from the asciicn registry with the shadcn CLI:
pnpm dlx shadcn@latest add @asciicn/ascii-badgeConfigure your consumer components.json with the registry URL when you host this project:
json
{
"registries": {
"@asciicn": "https://your-domain.com/r/{name}.json"
}
}Local development
bash
pnpm install
pnpm devOpen http://localhost:3000/docs.
pnpm dev and pnpm build regenerate registry JSON from components/asciicn automatically.
Add a component
Create a file under components/asciicn, then restart dev or run:
bash
pnpm registryBrowse the updated list on the Components page.