SharzyL/pastebin-worker ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple pastebin app that runs on Cloudflare Workers and is easy to deploy on my own domain.

I want people to be able to paste text or upload files, then get a short shareable link, with the option to choose a custom URL too. It should handle plain text, code with syntax highlighting, markdown that renders nicely in the browser, and client side encryption for private pastes. I also want it to work as a basic URL shortener.

Please make it usable from the website and from a clean HTTP API so I can create, update, fetch, and delete pastes with curl. Large uploads should be handled safely, with sensible chunking if needed. Add smart handling for Content Type and Content Disposition so files display or download the right way.

If it helps, look up the current Cloudflare docs online while you build it. Also include a small command line helper for managing pastes from the terminal, plus a private mode where only uploads require login but reads stay public.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab