parse
Self-hosted read-it-later app on Cloudflare's free tier that turns web pages and newsletters into clean, offline-ready articles with AI summaries and on-device narration.
- Status
- Live
- Platform
- PWA · Android
- Built with
- TypeScript · Hono · SvelteKit
- Backend
- Workers · D1 · R2 · Queues · AI
- Decision records
- 6 ADRs
- Gate
- Android release workflow
- Harness
- Claude · Cursor · Antigravity CLI
- Started
- May 2026

Overview
Save a URL or forward a newsletter to store a clean Article with images, optional one-time Workers AI summaries, and sentence-level on-device narration—all mirrored offline.
A single Hono Worker runs the backend while one static SvelteKit build powers both the PWA and Capacitor Android app (with ADR-0006 planning a native Kotlin client over a shared typed API contract).
Stack
Backend
- Hono on Cloudflare Workers
- API, Google sign-in, and inbound newsletter email handler in one Worker.
- Browser Rendering + Queues
- Async headless Chromium extraction so JS-heavy pages work and saves return fast.
- D1 + R2
- Metadata in D1; extracted images mirrored to R2 on the app's domain.
- Workers AI (Gemma)
- Generates one stored summary per article from a single prompt module.
Client
- SvelteKit + service worker
- One static build serves both the Worker PWA and Capacitor Android wrapper.
- Readability + linkedom
- DOM-based article extraction shared between the Worker and unit tests.
- Capacitor (Android)
- Adds native TTS and a configurable self-hosted server URL.
Quality
- Vitest (Workers pool)
- Tests extraction, rescue hooks, media, storage, summaries, and caching in-runtime.
- Playwright
- End-to-end checks for reader layout and narration timing.
Engineering highlights
One extraction spine, many sources
Web and email adapters feed a single
extractArticlepipeline: tidy DOM, run Readability, rescue wrongly dropped hero or newsletter images, mirror media to R2, and save.The whole library, offline
After loading online, the app syncs missing active articles and images into the service worker cache and evicts archived items—sharing one cache-rules module so client and worker never diverge.
On-device narration in the right language
Sentence-by-sentence narration runs locally via Web Speech (PWA) or native Android TTS behind one interface, strictly requiring a voice installed for the article's language.
Moving from WebView wrapper to native Kotlin
ADR-0006 replaces the Capacitor wrapper with native Kotlin/Compose to avoid WebView OAuth blocks and share the Android quality toolchain, keeping the PWA and mobile app aligned via a typed Hono API contract.
Architecture
From link or newsletter to an offline article
- IngestEnqueue saved URLs or receive forwarded mail via the Worker email handler.
- FetchRender JS pages in headless Chromium or parse the email HTML.
- ExtractRun Readability, rescue dropped media, and copy images to R2.
- Store & summariseSave to D1 with an optional one-time Workers AI summary.
- ReadMirror the library offline and narrate locally on-device.