~/apps/pastepin
pastepin — info

PastePin

archived

Pastebin-style app backed by Sia decentralised storage — paste text, get a shareable link, content encrypted client-side and pinned to the Sia network. Built for a Sia grant application; not funded.

writeup-onlyprototypeweb3decentralized storagedeveloper tools
built: 2026

PastePin

June 2026. A Pastebin-style app backed by Sia decentralised storage. Built as a demo for a Sia grant application — not funded.

what it does

Paste text, get a shareable link. Content is encrypted client-side and stored on the Sia network instead of a centralized database.

architecture

Framework: Next.js

Storage: Sia network — paste content lives there, encrypted, addressed by object ID

Database: Supabase (Postgres) — stores only metadata (title, owner, Sia object ID, size, timestamp), never the paste content itself

Auth: Supabase email/password

The Sia App Key never reaches the browser — it's server-only, used exclusively inside Next.js API routes. The client only ever sees paste UUIDs from Supabase.

demo

notes

Every paste occupies a full Sia slab (~40 MB minimum) regardless of text length — a known limitation of the demo. Production use would batch small pastes with uploadPacked() instead of writing one slab per paste.

the grant

Applied to a Sia storage grant to fund further development. Wasn't successful — the slab-per-paste inefficiency was likely part of it; a grant-worthy version would need real batching before it's viable at any scale.