Documentation
Everything you need to install CodeBlocks blocks into your project.
Setup the CodeBlocks registry
Add the CodeBlocks registry namespace to your components.json. Learn more about registry config from the shadcn registry docs.
{
"registries": {
"codeblocks": {
"url": "https://codeblocks.dev/r/pro/{name}",
"headers": {
"Authorization": "Bearer <your-registry-token>"
}
}
}
}Your account page has this exact snippet pre-filled with your real token — copy it from there rather than typing it by hand.
Free blocks
Free blocks install directly with the shadcn CLI, no account or token required.
npx shadcn@latest add https://codeblocks.dev/r/hero-1Pro blocks
Pro blocks live under /r/pro/ and require your registry token, sent as a Bearer token:
npx shadcn@latest add https://codeblocks.dev/r/pro/dashboard-1 \
--header "Authorization: Bearer <your-registry-token>"If you set up the registry namespace above, you can install pro blocks with the shorter codeblocks/{name} syntax instead, and the CLI applies the token automatically.
Browsing blocks
Every block has its own install command on its category page under Blocks — copy it straight from there rather than typing block names by hand.