openflarestack Star this repo
  1. Catalog
  2. Pastebins
  3. Pastebin Worker
Ranked 123 of 234

Pastebin Worker

xiadd/pastebin-worker

Share code snippets and files with syntax highlighting, passwords and expiry times.

A self-hosted alternative to Pastebin.

What it sets up in your account

  • D1
    D1 database
    A SQL database for the app’s records.
  • R2
    R2 bucket
    Storage for files and uploads.
Category
Pastebins
Licence
MIT
Stars
241
Last commit
7 months ago

Use it with AI or code

  • Markdown for AIPaste into ChatGPT, Claude or any LLM./apps/pastebin-worker-xiadd.md
    Open
  • JSON APIFree, no key, CORS open./api/v1/apps/pastebin-worker-xiadd.json
    Open

More in the API docs and llms.txt.

Keeping it up to date

The Deploy button copies the repo into your GitHub. Run this in your copy whenever a new version comes out.

terminal
git remote add upstream https://github.com/xiadd/pastebin-worker.git
git pull upstream main
npx wrangler deploy

Pastebin Worker questions

What is Pastebin Worker?

Share code snippets and files with syntax highlighting, passwords and expiry times. It’s an open-source, self-hosted alternative to Pastebin. It runs on Cloudflare Workers in your own account.

What does Pastebin Worker set up in my Cloudflare account?

D1 database and R2 bucket. They are created in your account, so the data stays yours.

How do I deploy Pastebin Worker?

Press Deploy to Cloudflare. Cloudflare copies the repository into your GitHub account, creates what it needs and deploys it with Workers Builds.

Is Pastebin Worker free and open source?

Yes. It’s published under the MIT licence. Running it uses your own Cloudflare account, and small setups usually fit in the free plan.

How do I update Pastebin Worker?

Pull from the original repository and redeploy: add https://github.com/xiadd/pastebin-worker.git as an upstream remote, run git pull upstream main, then npx wrangler deploy.