Skip to content

pastebin + shadcn = pastecn. Paste your code and get a shadcn-compatible registry URL instantly.

License

Notifications You must be signed in to change notification settings

rbadillap/pastecn

Repository files navigation

pastecn

VS Code Marketplace License Vercel CI AI SDK Tools

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 pastecn.com, get a registry URL.

API

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":[...]}'

VS Code / Cursor

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

AI Agents

Use the AI SDK tools to create snippets programmatically.

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 pastecn.com
  2. Select type (component/hook/lib/block/file) and set filename
  3. Click "Create Snippet" to get your registry URL

Install a snippet

# Using namespace (shorter)
npx shadcn@latest add @pastecn/{id}

# Using full URL
npx shadcn@latest add https://pastecn.com/r/{id}

Learn more

Self-Hosting

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

Contributing

See CONTRIBUTING.md for development setup and guidelines.

Changelog

See CHANGELOG.md for release notes and changes.

License

Licensed under the MIT License

About

pastebin + shadcn = pastecn. Paste your code and get a shadcn-compatible registry URL instantly.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages