Installation
Set up the registry once. After that, every block and component installs with one command, with the files it needs.
- 1
Set up shadcn/ui
Skip this if your project already has a
components.jsonfile.Terminal npx shadcn@latest init - 2
Add the registry
This tells the CLI where to find
@libitems, including the ones that blocks depend on.Terminal npx shadcn@latest registry add @lib=https://shadcn.srv1505958.hstgr.cloud/r/{name}.jsonOr add it to the file yourself:
components.json { "registries": { "@lib": "https://shadcn.srv1505958.hstgr.cloud/r/{name}.json" } } - 3
Add components and blocks
The CLI copies the files into your project and installs what they need.
Terminal npx shadcn@latest add @lib/stat-card
Pro blocksPro
Pro is a one-time payment: your key never expires and keeps unlocking every update and new block. Pro items are served only with a license key linked to your account: sign in and copy it from your account page. Put the key in your project's .env.local, then send it from components.json. The CLI reads the variable when it installs a block, so the key never lands in your code.
LIB_LICENSE_KEY=your-license-key{
"registries": {
"@lib": {
"url": "https://shadcn.srv1505958.hstgr.cloud/r/{name}.json",
"headers": {
"Authorization": "Bearer ${LIB_LICENSE_KEY}"
}
}
}
}Use this entry in place of the one from step 2: it installs free and Pro items alike. Projects without a key keep the entry from step 2, which installs free items only.
Blocks put their content in cells: a feature, a plan, a question, a dashboard panel. The cells come from @lib/cells, installed with the first block that needs it, and they take their look from your theme: shadcn cards in every look, set apart or joined on one rule by the theme's Gap, inside the library's frame or tiles, or in the stock shadcn/ui look without a frame. Set it in the theme editor, or paste a look's variables into globals.css. Blocks take the --radius of your shadcn theme for their corners:
:root {
--section-width: 1152px;
--section-line: 0px;
--section-line-style: solid;
--section-corners: 0;
--section-framed: 0;
--section-tiles: 0;
--section-band-height: 0px;
--section-band-lines: 0;
--section-band-dots: 0;
--section-band-grid: 0;
--section-band: none;
--section-band-size: auto;
--section-band-on: 0;
--section-gap: 3rem;
--cells-gap: 16px;
--cells-joined: 0;
--section-inset: 24px;
--section-edge: 0;
--app-inset: 24px;
--app-edge: 0;
--menu-space: 8px;
--menu-joined: 0;
--radius-control: var(--radius);
--radius-badge: min(var(--radius), max(2px, calc(var(--radius) * 0.5)));
}Your own components can use the same cells, so they change with the blocks. A cell places itself with className, lays out its content with contentClassName, and takes a header, a footer and a padding:
import { Activity } from "lucide-react"
import { Cell, Cells } from "@/components/cell"
export function Stats() {
return (
<Cells className="grid-cols-1 sm:grid-cols-3">
<Cell header={<><Activity /> Uptime</>} footer="Last 30 days">
<p className="text-2xl font-semibold tabular-nums">99.98%</p>
</Cell>
{/* … */}
</Cells>
)
}Which box to use where:
Since cells.tsx is in your project, a change there (a mark in each corner, another border) reaches every block at once.
Start with the skill: one command writes it into your project, and your assistant then knows how to choose, install, integrate and update the blocks. It works with Claude Code, Cursor, Codex, Gemini CLI, Windsurf and the other agents the skills CLI knows.
npx skills add https://shadcn.srv1505958.hstgr.cloudThen connect the MCP server and ask for what you need, like “add a pricing section with a yearly toggle”. Your assistant searches the blocks and components, reads their code and installs them with the CLI. Add your license key to the connection to include Pro items; your account page shows the same setup with your key filled in.
It works with the coding agents that write into your project (Claude Code, Cursor, VS Code with Copilot, Codex, Gemini CLI, Windsurf) and with the Claude and ChatGPT apps, which search the blocks and show their code. The snippets below include a placeholder key: leave it out to browse and install free items only.
claude mcp add --transport http lib https://shadcn.srv1505958.hstgr.cloud/mcp --header "Authorization: Bearer your-license-key"Every block and component has a version, and every change is in the changelog. The last line of each installed file says what you have:
export { Pricing01 }
// @lib/pricing-01@1.2.0 · changes: https://shadcn.srv1505958.hstgr.cloud/changelogWith the MCP connected, ask your assistant to “check my @lib blocks for updates”. It reads those lines, calls check_updates and tells you which items are behind, what changed in each version, and how to update. Updating is a careful step, not a blind overwrite: a new version may change props or markup, and the file is yours once installed. Your assistant shows the diff, applies it, brings your own edits back and checks the pages that use it.