Description
Pastebin Worker is a pastebin you can run on your own Cloudflare account. You paste text or code and share a link to it. Pastes can be syntax-highlighted in many languages, including JavaScript, TypeScript, Python, Go, C and C++, JSON, YAML, Markdown, CSS and shell scripts. You can also upload files of up to 25 MB, protect a paste with a password, and set it to expire after a period from one minute up to one month. A RESTful API lets scripts and other programs create pastes. The backend uses the Hono framework on Cloudflare Workers, with Cloudflare D1 (SQLite) and Drizzle ORM for data, and Cloudflare R2 for file uploads. The React and TypeScript front end is built with Vite, Tailwind CSS, Radix UI and the Monaco editor. Setup needs Node.js 18 or later, Yarn, a Cloudflare account and the Wrangler CLI, plus a D1 database created in the Cloudflare dashboard. The project suits people who want a private, fast paste service that runs on edge infrastructure they control.…
Highlights
- Shares text and code with syntax highlighting
- File uploads up to 25 MB
- Password protection and expiry from one minute to one month
- RESTful API for scripts
- Runs on Cloudflare Workers with D1 and R2
Ratings & Reviews
No ratings yet
Be the first to rate Pastebin Worker.
People also visit
Pastebin Worker FAQ
What is Pastebin Worker?
A pastebin for sharing text, code and files, built to run on Cloudflare Workers.
What can I share?
Text and code with syntax highlighting for many languages, and files up to 25 MB.
Can pastes expire or be private?
Yes. You can set an expiry from one minute to one month and protect a paste with a password.
What do I need to run it?
Node.js 18 or later, Yarn, a Cloudflare account, the Wrangler CLI and a Cloudflare D1 database.
Is there an API?
Yes. The README describes a RESTful API for programmatic access, such as creating pastes from scripts.
What are the best Pastebin Worker alternatives?
Popular alternatives to Pastebin Worker include pacebin, snips.sh and 0bin. See all Pastebin Worker alternatives