A secure, self-hostable pastebin for Markdown content with enterprise-grade encryption.
So there I was, needing to give my friend a proper telling-off. But WhatsApp? Instagram? Too mainstream. I wanted something with class. Something that says "I'm so mad at you that I encrypted my anger with military-grade security."
I found mdbin - a nice open-source pastebin - but it wasn't fancy enough for my revenge plot. So I:
- Stole it (legally, it's open source)
- Improved it with my own evil genius
- Moved it to Cloudflare Workers (because I'm already there for my other schemes)
- Added encryption so secure that even the Intelligence Bureau (IB) would be impressed
- Finally delivered the roast with password-protected, PBKDF2-secured curse words
Mission accomplished. Friend properly scolded. Relief achieved. π―
- AES-256-GCM encryption β Your secrets are safer than your browser history.
- PBKDF2 password protection β Because brute force is for gym, not for pastes.
- Zero-knowledge architecture β Not even the server knows your drama.
- Custom URLs β Make your roast memorable:
/why-you-suck
. - GitHub Flavored Markdown β Tables, code, lists, and more.
- Live preview & syntax highlighting β See your masterpiece as you type.
- Revision history β Undo your regrets, one version at a time.
- Edit protection β Only those with the code can edit.
- Attachment support β Share files, because sometimes words arenβt enough.
- One-time view option β For messages that self-destruct like your patience.
- Dark/Light themes β For every mood swing.
- Responsive design β Looks good on any device, even your smart fridge.
- Keyboard shortcuts β Because efficiency is next to roastiness.
-
Clone the repo:
git clone https://github.com/kvnlab/ShareBin.git cd ShareBin
-
Install dependencies:
pnpm install
-
Configure Cloudflare:
cp wrangler.example.toml wrangler.toml # Edit wrangler.toml with your Cloudflare details
-
Create a KV namespace:
pnpm wrangler kv:namespace create PASTE_BIN
-
Deploy:
pnpm run deploy
-
Paste, encrypt, and roast away!
- Basic Paste: Write Markdown, hit save, share the link.
- Encrypted Paste: Check "Encrypt", set a password, send the link. Watch them struggle.
- One-Time View: Enable self-destruct for maximum drama.
- Attachments: Add files to your pasteβbecause screenshots speak louder than words.
- Frontend: Vanilla JS, custom CSS
- Backend: Cloudflare Workers
- Storage: Cloudflare KV
- Encryption: Web Crypto API (AES-256-GCM)
- Markdown: Unified/Remark ecosystem
Found a bug? Want to add more ways to roast people? PRs welcome! Just remember: this started as a way to properly scold someone. Keep that energy.
MIT β free and open source.
- mdbin
- My friend's poor life choices
- Military-grade encryption
- Pure spite
"Sometimes the best way to tell someone they messed up is with properly formatted Markdown and enterprise-level security." β Ancient Wisdom (probably)
ROADMAP.md
- API docs: (coming soon, or ask nicely)
- Deployment guide: (coming soon, or bribe with snacks)