gitmyhub

scn-stack

TypeScript ★ 21 updated 2d ago

Scaffold a complete shadcn component registry with documentation in minutes. Interactive CLI — choose framework, docs engine, starter components.

A command-line tool that scaffolds a complete shadcn component registry in minutes through an interactive wizard, handling all configuration and documentation setup automatically.

TypeScriptNode.jsshadcn/uiReactsetup: easycomplexity 2/5

scn-stack is a command-line tool that sets up a complete shadcn component registry in minutes. A shadcn registry is a hosted collection of reusable interface components (like buttons, cards, and forms) that developers publish once and then share with others via a single install command. Setting one up from scratch involves configuring multiple tools, writing boilerplate files, and wiring up a documentation site. scn-stack handles all of that through an interactive setup wizard.

When you run the tool, it asks a series of questions: what framework you want to use (Next.js, Vite, React Router, or TanStack Start), whether you want a documentation site and which engine to use, which visual style you prefer, whether to include starter components, and where the registry will be hosted. Based on your answers, it generates the full project structure including the registry configuration file, component source files, documentation pages, and a build script.

After the initial setup, the tool provides commands to add new components, hooks, blocks, and themes one at a time. Each add command creates the source file, updates the registry configuration, and generates the matching documentation page. There is also a remove command that reverses the process completely, and a build command that compiles the registry into a format ready to serve.

Once the registry is deployed, other developers can install your components with a single command by pointing the shadcn installer at your hosted URL. The tool supports private registries with token-based authentication and can be deployed to Vercel, Netlify, Cloudflare, or any self-hosted server. The project is MIT licensed.

Where it fits