Changelog

jsr-io/jsr · · 3 commits

API split lands in the Worker front

JSR moved read-only stats/metrics into workers-rs, added Hyperdrive Postgres connectivity, and began proxying all other paths to compute.

Worker now serves /api/stats and /api/metrics (crowlbot7ccc412)

The front Worker now owns two read-only metadata endpoints instead of sending them to Cloud Run. The commit also extracts the shared JSON wire types into jsr_types so both runtimes can serialize the same response shapes, which is key to keeping the API split behavior identical.

Worker gains a live Postgres connectivity path via Hyperdrive (crowlbot92953f5)

This proves the wasm database path end-to-end: the Worker can open a Postgres connection through Cloudflare Hyperdrive and successfully run SELECT 1. It’s a foundational step for moving more API logic into the edge runtime without relying on the native compute service.

Unmatched API routes now proxy to the compute service (crowlbot33fdd94)

The Worker’s fallback no longer returns 501; it forwards any unhandled request to the Cloud Run compute service while preserving method, path, query, headers, and body. That closes the front-proxy seam for the split and lets migrated and unmigrated routes keep working during the transition.

Other misc changes

  • Added Worker-side Postgres/db plumbing and local dev docs.
  • Dependency/Cargo.lock updates for Hyperdrive and wasm support.