shadcn

Add beautifully designed, accessible UI components as owned source code via a CLI

Tool
npm
v4.22.1
126,385 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
92 /100 Excellent
Development Activity 100
Maintenance 100
Community 76
Maturity 52
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
85 /100 Excellent
Architecture 84
Code Quality 85
Innovation 90
Learning Curve 82

shadcn is the official CLI for shadcn/ui, a code-distribution platform (rather than a traditional npm component library) that copies component source directly into your project via npx shadcn add. Components are built on Radix UI/Base UI primitives and styled with Tailwind CSS, so once added they are fully owned, editable files rather than an opaque installed dependency.

The CLI handles project initialization, adding individual components or third-party registry items, building custom registries, and migrating between framework versions, and it works across React, Next.js, Vite, Laravel, and other supported frameworks.

What You Get

  • A CLI (init, add, build, diff, eject, migrate, search, view) for scaffolding and managing UI components as owned source code
  • A component registry protocol so teams and third parties can publish and consume their own custom component registries, not just the official one
  • Components built on accessible headless primitives (Radix UI, Base UI) styled with Tailwind CSS
  • An MCP (Model Context Protocol) server integration (src/mcp/) for AI coding assistants to browse and install components programmatically
  • Framework support spanning React, Next.js, Vite, and Laravel, with migration tooling between major CLI/component versions

Common Use Cases

  • Bootstrapping a new React/Next.js project’s design system with accessible, pre-built but fully customizable components
  • Adding individual components (buttons, dialogs, forms) to an existing codebase without pulling in an opaque UI library dependency
  • Publishing an internal or public custom component registry for a team or open-source project to consume via the same CLI
  • Letting AI coding assistants discover and install components directly through the CLI’s MCP server integration

Under The Hood

Architecture — The GitHub repo is a pnpm/Turborepo monorepo: apps/v4 hosts the documentation and marketing site, while packages/shadcn is the published CLI (the shadcn npm package), packages/react publishes unstyled primitive components separately, and packages/helpers/packages/tests support the build and test pipeline. Inside the CLI package, src/commands/ holds one file per subcommand (add.ts, init.ts, build.ts, diff.ts, eject.ts, migrate.ts, preset.ts, search.ts, view.ts, mcp.ts), src/registry/ implements the registry-fetching and component-resolution protocol (api.ts, builder.ts, config.ts, address.ts), and src/mcp/ exposes the CLI’s functionality over the Model Context Protocol for AI-assistant integrations.

Tech Stack — TypeScript-first (87% of the codebase), with MDX (9%) for documentation content and CSS (4%) for styles. The CLI itself is a Node.js package (published as shadcn on npm) using standard CLI-building conventions; components depend on Radix UI/Base UI for accessible primitives and Tailwind CSS for styling, with framework adapters targeting Next.js, Vite, and Laravel.

Code Quality — Nearly every command file has a paired .test.ts (add.test.ts pattern seen for apply, build, docs, eject, preset, and others), giving the CLI meaningful automated coverage of its core flows. The project ships over 100 tagged releases across the shadcn and @shadcn/react packages with a consistent, high release cadence (roughly 79 commits/month), and the repo’s RELEASING.md/CONTRIBUTING.md document a mature, structured release and contribution process for a project with 584 contributors.

API Design — The CLI mirrors familiar scaffolding-tool ergonomics (init then add <component>), with diff and eject giving developers escape hatches to inspect or fully detach from CLI-managed updates — a deliberate design choice reflecting the project’s “you own the code” philosophy rather than the typical package-manager update model. The registry protocol (documented separately from the CLI itself) lets third parties extend the same add command to pull from custom sources without CLI changes.

Used by 25 apps in this directory

TypeScript
98%
MIT

sigle

Blogging

489

A decentralized, open-source writing platform that permanently stores your stories on the Stacks blockchain and Arweave — where Web3 content creators own their words forever.

View details
81
Repo Health
78
Technical
69
Dependency
Built with
TypeScript 98%
Updated 2 weeks ago
Ruby
62%
BSD 3

Spree Commerce

CRM · Ecommerce · Marketing

15,774

Open-source headless eCommerce platform with a REST API, TypeScript SDK, and Next.js storefront for B2B, cross-border, and marketplace commerce — no vendor lock-in, no platform fees.

View details
91
Repo Health
84
Technical
75
Dependency
Built with
Ruby 62%
TypeScript 37%
Updated 1 weeks ago
TypeScript
72%
Apache 2.0

Supabase

Authentication · Databases · Developer Tools

113,827

The open-source Postgres development platform that replaces Firebase with authentication, real-time APIs, edge functions, storage, and vector embeddings — all built on PostgreSQL.

View details
90
Repo Health
91
Technical
62
Dependency
Built with
TypeScript 72%
MDX 26%
Updated 6 days ago
TypeScript
98%
Apache 2.0

Tianji

Analytics · Monitoring

3,119

Replace Google Analytics, UptimeKuma, and Prometheus with one self-hosted platform that tracks websites, monitors uptime, and reports server health.

View details
86
Repo Health
76
Technical
64
Dependency
Built with
TypeScript 98%
Updated 1 weeks ago
Python
73%
Apache 2.0

Unsloth

AI Assistants · AI Development

78,493

Run and fine-tune LLMs, diffusion, audio and embedding models on your own hardware, from a native desktop app, a browser UI, or a Python library.

View details
89
Repo Health
83
Technical
70
Dependency
Built with
Python 73%
TypeScript 22%
Updated 6 days ago
Python
50%
AGPL 3.0

VoiceStudio

Mcp · Music Audio · Voice AI

83,641

Open-source, fully local ElevenLabs alternative for voice cloning, voice design, video dubbing, dictation, transcription and audiobooks, with a local API and MCP server for agents.

View details
86
Repo Health
83
Technical
70
Dependency
Built with
Python 50%
JavaScript 22%
TypeScript 21%
Updated 6 days ago
TypeScript
99%
AGPL 3.0

Webstudio

Design Tools · No Code Platforms

9,103

Open source visual development platform with complete CSS control, headless CMS integration, and full infrastructure ownership

View details
91
Repo Health
79
Technical
60
Dependency
Built with
TypeScript 99%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers