Skip to content

Releases

v0.2.4

Choose a tag to compare

@Pyr33x Pyr33x released this 15 Nov 13:04

Packages

Every release now publishes the built Workers to GitHub Packages as OCI artifacts (edge.js + edge.wasm):

  • ghcr.io/pyr33x/wisp-gateway
  • ghcr.io/pyr33x/wisp-link
  • ghcr.io/pyr33x/wisp-analytics
oras pull ghcr.io/pyr33x/wisp-gateway:v0.2.4

Full Changelog: v0.2.3...v0.2.4

v0.2.3

Choose a tag to compare

@Pyr33x Pyr33x released this 15 Nov 10:04

Changes

  • Page title (and social card title) is now Wisp
  • README refreshed: web UI, GET / in the API table, optional WISP_DOMAIN, token permissions, manual WAF rate-limit rule, troubleshooting
  • gotest badge output ignored by git

Full Changelog: v0.2.2...v0.2.3

v0.2.2

Choose a tag to compare

@Pyr33x Pyr33x released this 15 Nov 07:51

Changes

Full Changelog: v0.2.1...v0.2.2

v0.2.1

Choose a tag to compare

@Pyr33x Pyr33x released this 15 Nov 07:23

Features

  • Open Graph / Twitter card: sharing https://wisp.pyr33x.top now shows a 1200×630 preview made from the banner (docs/og.jpg, 36 KB), served from GitHub so crawlers cost no Worker requests

Fixes

  • Favicon is now the circular wisp logo (the Apple touch icon stays square, since iOS applies its own mask)

Tests

  • Open Graph tags present with absolute URLs, and the card image committed and under 300 KB

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@Pyr33x Pyr33x released this 15 Nov 07:10

Features

  • Web page at wisp.pyr33x.top, served by the gateway Worker itself (no static assets, routing unchanged):
    • Shorten a link and copy it in one click; API errors shown inline, rate limits with a live Retry-After countdown
    • Click-stats lookup by short link or code
    • Recent links kept only in your browser (localStorage), with on-demand click counts
  • Brand look matching the banner: Cloudflare + Go mark, WISP wordmark, wisp favicon and Apple touch icon
  • Unknown paths now answer the JSON 404 error shape instead of a plain-text one

Security

  • Strict Content-Security-Policy: the inline style and script are allowed by SHA-256 hash only, requests limited to the same origin, no framing
  • No innerHTML: every API or stored value is rendered as text

Tests

  • Page served at / with its headers, JSON 404 for unknown paths, short links and API routes not shadowed by /
  • CSP hashes recomputed from the page on every run, so an edit that breaks them fails CI
  • Edge-router check that / serves the page in the real runtime

Full Changelog: v0.1.1...v0.2.0

v0.1.1

Choose a tag to compare

@Pyr33x Pyr33x released this 15 Nov 06:35

Fixes

  • Gateway crashed on every request with 1101 (Illegal invocation, then Cannot read properties of undefined (reading 'body')).
    The internal HTTP client called fetch and setTimeout as methods of js.Global(), which in a goflare Worker is a Proxy over globalThis; workerd rejects that this, and the thrown error killed the Go instance for the whole isolate.
    The wasm transport now invokes the runtime's fetch directly and times out with AbortSignal.timeout. webtyp.com/fetch is no longer compiled into the Workers.

Tests

  • Regression test: the URL client must call fetch without a this and pass its timeout as an AbortSignal.

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@Pyr33x Pyr33x released this 13 Nov 18:39
49bf488

First release of wisp, a URL shortener in Go on Cloudflare Workers (WebAssembly).

Features

  • Three Workers: wisp-gateway (public), wisp-link and wisp-analytics (internal), each with its own D1 database
  • 7-character base62 codes from a secure random source, collisions retried on the UNIQUE constraint
  • 302 redirects with Cache-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-Internal secret; admin-token-protected soft delete
  • D1 migrations from CI via goflare.NewD1Migrator
  • CI with gotest (native + browser wasm suite) and goflare size; one deploy workflow per Worker

Built with

  • webtyp.com/goflare v0.5.69, webtyp.com/cloudflare v0.0.73, TinyGo 0.41.1, Go 1.26.8