Lokendra Singh.
← ALL WRITINGS
// Writing · Nov 30, 2026 · 4 min read

urlpaste: a pastebin alternative with no database

urlpaste: a pastebin alternative with no database

urlpaste is a free, open-source way to share notes, code snippets and small files as a link. The whole note is compressed, optionally encrypted with a password, and packed inside the URL itself, so there is no database, no storage and no account.

I built it because sharing a note usually means uploading it somewhere that keeps a copy, often forever. With urlpaste, the link is the only copy.

How does a link hold a whole note?

  1. Pack: a small header (kind, file name, file type) plus the content
  2. Compress: raw deflate, so normal text shrinks by 50 to 80%
  3. Encrypt (optional): AES-256-GCM with a key from your password (PBKDF2-SHA-256, 600,000 rounds)
  4. Encode: URL-safe base64, added to the link as ?n=...

Opening the link reverses the steps and shows the note. The password is never in the link.

What can you share with it?

  • Code snippets and stack traces, for Slack, Discord or a GitHub issue
  • Config files, such as a docker-compose.yml or nginx.conf
  • Passwords and API keys, locked with a password you send through a different app
  • Markdown notes, shown fully rendered, tables included
  • Small files up to 1 MB, such as screenshots and PDFs, with a download button
  • Terminal output: kubectl logs my-pod | urlpaste encode

Web app, CLI and Python library

urlpaste comes three ways:

streamlit run streamlit_app.py              # the web app
echo "Meeting at 5pm" | urlpaste encode     # the CLI prints a link
urlpaste decode "<link>"                    # opens a link on your own computer
from urlpaste import TextItem, make_link, decode, payload_from_link

link = make_link(TextItem("hello", kind="markdown"), password="optional")

How is urlpaste different from Pastebin, Gist and PrivateBin?

Compared on urlpaste Pastebin GitHub Gist PrivateBin
Where the note lives Inside the link Their servers GitHub's servers The host's server (encrypted)
Database needed No Yes Yes Yes
Password encryption Yes, AES-256-GCM No No Yes
Can be taken down or expire No Yes Yes Yes

How long can a link be?

Link length What to expect
Under 2,000 characters Works almost everywhere
Up to about 2,900 Still fits in a QR code
Up to about 32,000 Fine between browsers; many chat apps cut it
Over about 2 MB Browsers refuse it

About a page of plain text stays under 2,000 characters after compression.

The honest part

  • A link can only hold so much, so urlpaste is for notes, snippets and small files, not big uploads
  • The link travels like any URL: servers may log it, and it lands in browser history. Use a password for anything sensitive
  • You can't delete a shared link. Whoever has the link has the note
  • The web app runs Python on a server, so a password note is decrypted in that server's memory. For true end-to-end encryption, use the CLI on both sides

Safe to open

HTML in Markdown is escaped, changed or broken links are rejected, and decompression stops at 20 MB so a tiny malicious link can't exhaust memory. Pages opened from a note link are marked noindex, so a public link doesn't put your note in Google. There are 42 tests across the codec, the CLI and the app.

FAQ

Is urlpaste a Pastebin alternative? Yes, for short content. Pastebin stores your text; urlpaste stores nothing and puts the text in the link.

Is a urlpaste note stored on a server? No. There is no database and no file storage; the app decodes the link in memory and keeps nothing.

Is urlpaste end-to-end encrypted? The CLI is: it encrypts on your machine and decrypts on the other person's. The web app decrypts a password note in the server's memory when someone unlocks it.

Can I self-host urlpaste? Yes. urlpaste is one Streamlit app with no database, so it runs free on Streamlit Community Cloud or anywhere Python runs.

More of my projects: GitHub.

Sources