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

Pastebin Worker

SharzyL/pastebin-worker

Share pastes and files with short links, syntax highlighting and a handy CLI.

A self-hosted alternative to Pastebin.

What it sets up in your account

  • KV
    KV namespace
    A key value store for settings and fast lookups.
  • R2
    R2 bucket
    Storage for files and uploads.
  • Cr
    Cron trigger
    Runs scheduled tasks.
Category
Pastebins
Licence
MIT
Stars
1,065
Last commit
3 days ago

Use it with AI or code

  • Markdown for AIPaste into ChatGPT, Claude or any LLM./apps/pastebin-worker.md
    Open
  • JSON APIFree, no key, CORS open./api/v1/apps/pastebin-worker.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/SharzyL/pastebin-worker.git
git pull upstream goshujin
npx wrangler deploy

Pastebin Worker questions

What is Pastebin Worker?

Share pastes and files with short links, syntax highlighting and a handy CLI. 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?

KV namespace, R2 bucket and Cron trigger. 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/SharzyL/pastebin-worker.git as an upstream remote, run git pull upstream goshujin, then npx wrangler deploy.