Status: ✅ Complete · Priority: High · Created: 2026-03-16 · Tags: server, infra
Overview
A minimal server that stores poll snapshots for public/offline viewing. This is the only server-side component — intentionally thin. No user accounts, no directory, no auth beyond signature verification.
Design
Tech Stack
Runtime: Cloudflare Workers (or a simple Bun server if self-hosting)
Storage: Cloudflare KV (or SQLite for self-hosted)
Auth: Snapshot writes are signed with the poll owner's Ed25519 private key
API Endpoints
PUT /api/polls/:id/snapshot — Store/update snapshot (signed by poll owner)