All tags

TAG

#cloudflare-workers

3articles

🔑Retrofitting Firebase auth and a JSONkeeper-compatible API onto codh-mirror so IIIF Curation editing actually works — walking back the earlier `won't work` claim

A follow-up to the earlier codh-mirror post, which explicitly called Firebase auth and the curation save backend out of scope. This time I went back and wired them up: reusing a Firebase project (Authorized domains and sign-in providers), discovering that FirebaseUI 3.x's default redirect signInFlow silently fails on GitHub Pages subpaths, swapping the curationJsonExportUrl in 9 places across five tools, and pointing the iiif-curation-manager submenu links at the sibling tools via relative URLs. Server-side details (Cloudflare Workers + D1 as mainline and PythonAnywhere Flask as upstream-faithful fallback) live in two separate posts; this one covers only the codh-mirror client side.

codhiiiffirebasefirebaseui

🪣Rewriting JSONkeeper on Cloudflare Workers + D1 — A 360-Line Hono + jose Replacement for the IIIF Curation Viewer's Save Backend

A from-scratch rewrite of JSONkeeper — the save backend for the IIIF Curation Viewer — not on top of the original Flask code, but as a Cloudflare Workers + D1 service. Covers Firebase ID-token verification with Hono + jose (no Admin SDK, no service-account key needed), the D1 SQLite schema, top-level + nested JSON-LD `@id` rewriting, a minimal Activity Stream collection, CORS and Viewer-compatible headers, a wrangler-based deployment runbook, and a feature-by-feature diff against upstream JSONkeeper.

cloudflarecloudflare-workersd1hono

💳Building a Personal Tech Blog Membership on Cloudflare Workers + better-auth + Stripe

Notes from migrating tech.ldas.jp from Hugo to Next.js (Cloudflare Workers + OpenNext) and adding a Stripe-backed membership with members-only post gating. Covers Workers Free plan CPU limits, Stripe SDK on Workers, SSG/dynamic interplay, and Japan-specific business onboarding details — the parts that the official docs don't quite spell out for this combination.

cloudflare-workersstripebetter-authnextjs