Repository navigation
v0.1.0
First release of wisp, a URL shortener in Go on Cloudflare Workers (WebAssembly).
Features
- Three Workers:
wisp-gateway(public),wisp-linkandwisp-analytics(internal), each with its own D1 database - 7-character base62 codes from a secure random source, collisions retried on the
UNIQUEconstraint 302redirects withCache-Control: private, max-age=0, best-effort click counting via an atomic upsert- Per-IP rate limiting on link creation (10/min, D1 fixed window, fails open)
- URL validation and redirect-loop protection
- Internal calls authenticated with a shared
X-Wisp-Internalsecret; admin-token-protected soft delete - D1 migrations from CI via
goflare.NewD1Migrator - CI with
gotest(native + browser wasm suite) andgoflare size; one deploy workflow per Worker
Built with
webtyp.com/goflarev0.5.69,webtyp.com/cloudflarev0.0.73, TinyGo 0.41.1, Go 1.26.8