Skip to content
Hazine

Docs

Get started

Hazine is a shadcn registry. Any project set up with the shadcn CLI can install items in two steps.

1. Add the registry

Add the @hazine namespace to the registries key of your components.json. The entry is needed for free items too: items depend on each other as @hazine/name, and the CLI resolves that namespace through it.

{
  "registries": {
    "@hazine": "https://api.hazine.dev/r/{name}.json"
  }
}

2. Add an item

pnpm dlx shadcn@latest add @hazine/metric-card

The source lands in components/hazine or components/blocks as plain TypeScript you own, not a package you depend on.

Pro items

Pro items install with the same command. The registry entry carries your token in a header, read from the environment so it never lands in the repository.

{
  "registries": {
    "@hazine": {
      "url": "https://api.hazine.dev/r/{name}.json",
      "headers": { "Authorization": "Bearer ${HAZINE_TOKEN}" }
    }
  }
}

Use from an AI agent

Hazine works with the shadcn MCP server. Once the registry is in your components.json, agents can search and install Hazine items directly.

pnpm dlx shadcn@latest mcp init