pastecn

License
[blocked]

pastebin + shadcn = pastecn

hero

Create shareable shadcn/ui registry URLs. Paste your code, get a URL that works directly with npx shadcn@latest add.

Use pastecn

Web

Paste at , get a registry URL.

API

Create and retrieve snippets programmatically via the .

bash
curl -X POST https://pastecn.com/api/v1/snippets \  -H "Content-Type: application/json" \  -d '{"name":"my-component","type":"component","files":[...]}'

VS Code / Cursor

Share code directly from your editor with Cmd+Alt+S. Works with Cursor, VSCodium, Windsurf, and any VS Code fork.

AI Agents

Use the to create snippets programmatically.

bash
npx shadcn@latest add @pastecn/ai-sdk

Features

  • 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

Quick Start

  1. Paste your code at
  2. Select type (component/hook/lib/block/file) and set filename
  3. Click "Create Snippet" to get your registry URL

Install a snippet

sh
# Using namespace (shorter)npx shadcn@latest add @pastecn/{id}
# Using full URLnpx shadcn@latest add https://pastecn.com/r/{id}

Learn more

  • - Share code directly from your editor
  • - Control snippet lifetime with flexible TTL options
  • - Tools for AI agents to create and retrieve snippets
  • - Share code with selective access
  • - Multi-file components explained

Self-Hosting

Want to run your own instance? See docs/VERCEL.md [blocked] for deployment instructions.

Contributing

See CONTRIBUTING.md [blocked] for development setup and guidelines.

Changelog

See CHANGELOG.md [blocked] for release notes and changes.

License

Licensed under the MIT License [blocked]