---
name: "@pastecn"
slug: "pastecn"
description: "A pastebin service purpose-built for the shadcn/ui registry format. Paste any component, hook, lib, or multi-file block and instantly receive a registry-compatible URL usable directly with npx shadcn@latest add. Features include link expiration (1h-30d or never), optional password protection with bcrypt hashing, multi-file block support via registry:block, a REST API for programmatic creation, VS Code/Cursor extension for keyboard-shortcut sharing, and AI SDK tools for agent-driven snippet creation. Zero config, no signup required; MIT-licensed. Use for: quickly sharing custom shadcn components across projects or teams without setting up a personal registry server."
category: "Hooks/utilities"
tags: ["ai", "blocks", "components", "forms", "hooks", "media"]
framework: "react"
license: "MIT"
author: "rbadillap"
website: "https://pastecn.com"
github: "https://github.com/rbadillap/pastecn"
registry: "https://pastecn.com/r/registry"
pro: false
pro_url: null
github_stars: 128
component_count: 1
generated_at: "2026-07-28T08:59:05.895Z"
---

# @pastecn

A pastebin service purpose-built for the shadcn/ui registry format. Paste any component, hook, lib, or multi-file block and instantly receive a registry-compatible URL usable directly with npx shadcn@latest add. Features include link expiration (1h-30d or never), optional password protection with bcrypt hashing, multi-file block support via registry:block, a REST API for programmatic creation, VS Code/Cursor extension for keyboard-shortcut sharing, and AI SDK tools for agent-driven snippet creation. Zero config, no signup required; MIT-licensed. Use for: quickly sharing custom shadcn components across projects or teams without setting up a personal registry server.

## Links

- Website: https://pastecn.com
- GitHub: https://github.com/rbadillap/pastecn
- Registry JSON: https://pastecn.com/r/registry
- Directory page: https://sh4dcn.vercel.app/registry/pastecn
- This file: https://sh4dcn.vercel.app/md/pastecn.md

## Install

```sh
# add the whole registry (shadcn CLI)
npx shadcn@latest add https://pastecn.com/r/registry
pnpm dlx shadcn@latest add https://pastecn.com/r/registry
bunx shadcn@latest add https://pastecn.com/r/registry
# clone the source repo
git clone https://github.com/rbadillap/pastecn.git
# fetch the raw registry index
curl -s https://pastecn.com/r/registry
```

## Components (1)

| name | type | description | install |
| --- | --- | --- | --- |
| ai-sdk | registry:file | AI SDK tools for creating and reading pastecn snippets | `npx shadcn@latest add https://pastecn.com/r/ai-sdk` |

## For AI agents

```text
You are adding components from @pastecn to a shadcn-compatible project.
1. Read this file (https://sh4dcn.vercel.app/md/pastecn.md) for the component list.
2. Fetch the machine-readable index: https://pastecn.com/r/registry
3. Install a single component with its install command from the table above.
4. Full structured record: https://sh4dcn.vercel.app/json (library slug: pastecn).
```
