pastebin + shadcn = pastecn
Create shareable shadcn/ui registry URLs. Paste your code, get a URL that works directly with npx shadcn@latest add.
Paste at pastecn.com, get a registry URL.
Create and retrieve snippets programmatically via the REST API.
curl -X POST https://pastecn.com/api/v1/snippets \
-H "Content-Type: application/json" \
-d '{"name":"my-component","type":"component","files":[...]}'Share code directly from your editor with Cmd+Alt+S. Works with Cursor, VSCodium, Windsurf, and any VS Code fork.
Install from VS Code Marketplace
Use the AI SDK tools to create snippets programmatically.
npx shadcn@latest add @pastecn/ai-sdk- VS Code Extension - Share code directly from your editor with keyboard shortcuts
- Link Expiration - Set automatic expiration times (1h, 24h, 7d, 30d, or never)
- AI SDK Tools - Let AI agents create and retrieve snippets programmatically
- Password Protection - Bcrypt hashing, rate limiting, seamless CLI integration
- Multi-file Blocks - Share complex components with multiple files via
registry:block - Instant Registry URLs - Convert any code into shadcn-compatible endpoints
- Zero Config - No auth, no signup, just paste and share
- Immutable URLs - Once created, snippets never change
- Paste your code at pastecn.com
- Select type (component/hook/lib/block/file) and set filename
- Click "Create Snippet" to get your registry URL
# Using namespace (shorter)
npx shadcn@latest add @pastecn/{id}
# Using full URL
npx shadcn@latest add https://pastecn.com/r/{id}- VS Code Extension - Share code directly from your editor
- Link Expiration - Control snippet lifetime with flexible TTL options
- AI SDK Tools - Tools for AI agents to create and retrieve snippets
- Password-Protected Snippets - Share code with selective access
- Understanding Registry Blocks - Multi-file components explained
Want to run your own instance? See docs/VERCEL.md for deployment instructions.
See CONTRIBUTING.md for development setup and guidelines.
See CHANGELOG.md for release notes and changes.
Licensed under the MIT License
