Skip to content

shadcn-registry-template

A GitHub template for publishing your own components so others can install them with the shadcn CLI.

github.com/vantezzen/shadcn-registry-template

shadcn-registry-template website screenshot
Added
GitHub stars
42

About

About shadcn-registry-template

shadcn-registry-template is a starting repository for anyone who wants to distribute components through the shadcn CLI. You describe each component in a typed registry.ts file, develop it against a local demo page, and let the build step generate the registry JSON that the CLI reads. A GitHub Pages workflow can then publish the result.

The flow is: use the repository as a GitHub template, clone it, set your own repository URL in package.json, add components under src/components/ui, and edit registry.ts. Run npm run dev to work locally, npm run build to produce the registry, and npm run dev:server to test installs from another project. The README demonstrates a cool-text component installed with the shadcn CLI. GitHub shows no license, and the last push was in August 2024.

shadcn-registry-template features

6 features

  • Typed registry.ts configuration
  • Demo page for developing components
  • Automatic registry file generation
  • GitHub Pages deployment
  • Local registry server for testing installs
  • Works with the shadcn CLI add command

Install shadcn-registry-template

1 command

Terminal

$ npx shadcn@latest add https://raw.githubusercontent.com/vantezzen/shadcn-registry-template/main/registry/cool-text.json

What you can build with shadcn-registry-template

3 use cases

  • Shipping a personal component library through the shadcn CLI
  • Packaging internal team components for easy installation
  • Publishing a single widget as an installable registry item

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What shadcn-registry-template is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro