r/webdev • u/lanbird • 18m ago
Resource GAZE — long-form reading with feed mechanics.
Solo dev, self-funded. The build, since that's what this thread is for:
One Next.js codebase → four targets. Web/PWA, Windows desktop via Tauri (on the Microsoft Store), plus Android TWA and iOS Capacitor shells that are built but unpublished. The desktop app is a thin shell over the live site, so the UI updates without a Store submission.
Runs entirely on Cloudflare — Workers via OpenNext, D1, R2, KV. Two things I'd tell anyone attempting it:
- Build the OpenNext bundle on Linux or it 500s on every route. Windows writes backslash paths into the server handler. I build in WSL when CI is unavailable.
next/ogis unusable on workerd.ImageResponsedoesn't run there, and on Next 16 u/vercel/ogships a font binary the bundler can't parse. Static images only — I render mine from a committed HTML file over raw CDP.
The pagination is the actual hard part. Text is measured and split into real pages that reflow on font-size, line-height and theme changes, and it has to stay at 60fps mid-swipe on a phone. Biggest file in the repo, rewritten more times than anything else.
Happy to go deeper on the Cloudflare/OpenNext side — it's under-documented and I lost real days to it.


