@lib

Installation

Set up the registry once. After that, every block and component installs with one command, with the files it needs.

What your project needs

React 19, Tailwind CSS v4 and shadcn/ui on Radix. That covers Next.js, Vite, React Router, TanStack Start, Astro with the React integration (add client:load to interactive blocks) and Laravel with the React starter kit. Projects still on React 18, such as Remix v2 or Gatsby, are not supported.

  1. 1

    Set up shadcn/ui

    Skip this if your project already has a components.json file.

    Terminal
    npx shadcn@latest init
  2. 2

    Add the registry

    This tells the CLI where to find @lib items, including the ones that blocks depend on.

    Terminal
    npx shadcn@latest registry add @lib=https://shadcn.srv1505958.hstgr.cloud/r/{name}.json

    Or add it to the file yourself:

    components.json
    {
      "registries": {
        "@lib": "https://shadcn.srv1505958.hstgr.cloud/r/{name}.json"
      }
    }
  3. 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 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.

.env.local
LIB_LICENSE_KEY=your-license-key
components.json
{
  "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:

app/globals.css
: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:

components/stats.tsx
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:

UseFor
CellThe boxes of a layout, which the look restyles: a dashboard panel, a metric, a plan, a feature, a question, a photo. In a Cells group they join, close into a panel, come apart or sit in front of a card.
CardBoxes inside the content, which keep their shape: a product mockup in a feature, a choice in a form, a preview, a popover. They take the look's background, border and corners, never its title tray or joining. A Cell inside a Cell is one of these too.
NothingWhat sits on the page: headings, text, a form without a frame, and the interface itself (buttons, fields, menus, dialogs, table rows, chat bubbles).

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.

Terminal
npx skills add https://shadcn.srv1505958.hstgr.cloud

Then 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.

Terminal
claude mcp add --transport http lib https://shadcn.srv1505958.hstgr.cloud/mcp --header "Authorization: Bearer your-license-key"
ToolWhat your assistant gets
search_itemsFind blocks by words, category or tier.
get_itemAn item's code, version, dependencies, recent changes and install command.
check_updatesWhich of your installed items have a newer version, and what changed since yours.
get_changelogRecent releases: new, updated, fixed and removed items with their versions.
list_categoriesEvery block category with its number of blocks.
get_accessWhether your connection unlocks Pro blocks, and what Pro costs.
get_setupThe components.json entry for free and Pro items.

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:

components/pricing-01.tsx
export { Pricing01 }

// @lib/pricing-01@1.2.0 · changes: https://shadcn.srv1505958.hstgr.cloud/changelog

With 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.