asciicn is a monochrome component library distributed as a shadcn/ui registry. Drop ASCII-styled UI primitives into any React project with a single CLI command — no package lock-in, just copy-paste components you own.
- shadcn registry — install components with
npx shadcn@latest add @asciicn/{name} - Monochrome aesthetic — terminal-inspired, ASCII-friendly styling
- Live docs — previews and install commands powered by Fumadocs
- Auto-built registry — JSON regenerated from source on every
dev/build
Add the asciicn registry to your consumer components.json:
{
"registries": {
"@asciicn": "https://your-domain.com/r/{name}.json"
}
}Install a component:
npx shadcn@latest add @asciicn/ascii-badgeUse it in your app:
import { AsciiBadge } from "@/components/asciicn/ascii-badge"
export function Example() {
return (
<>
<AsciiBadge>default</AsciiBadge>
<AsciiBadge variant="outline">outline</AsciiBadge>
</>
)
}pnpm install
pnpm devOpen http://localhost:3000/docs to browse components and previews.
pnpm dev and pnpm build regenerate registry JSON from components/asciicn automatically. To rebuild the registry manually:
pnpm registrycomponents/asciicn/ # Registry component source
content/docs/ # Fumadocs documentation
public/r/ # Generated registry JSON
registry.json # Registry manifest
- Create a file under
components/asciicn/ - Register it in
registry.json - Run
pnpm registryor restartpnpm dev - Document it under
content/docs/components/