Skip to content

Built end to end, for a non-profit trust

Anwar-e-Khalique Book Reader

Oct to Nov 2026

A free Urdu book reader for a non-profit trust. I rebuilt it end to end after the old Android app went offline, so 1,054 pages work on any phone, with no PDF or download.

Visit app.anwarekhalique.com ↗

Anwar-e-Khalique Book Reader PWA: chapter list and watermarked reader view (book text softly blurred for privacy)

The trust's earlier reader was a Flutter app for Android only. It went offline when the Google Play developer account was locked for inactivity, so readers lost access to the book. The trust needed its Urdu book, 1,054 pages across 16 chapters, to be free to read again on any phone, while keeping access under the trust's control and significantly reducing unauthorized copying and redistribution. That meant a gated reader with admin approvals, no PDF, and no download.

Built end to end, for a non-profit trust, Oct to Nov 2026.

  • Rebuild: I redesigned the reader and rebuilt it end to end as a React PWA (React, Vite, Hono, PostgreSQL), so it works on Android, iPhone and the web without an app store
  • Access control: readers register and sign in; an admin dashboard sets registration to open, approval-required, or closed, and approves, rejects or disables members. Only active members can open the book
  • Per-reader watermarks: page images are stored encrypted at rest (AES-256-GCM). For each signed-in reader the server decrypts the page and tiles a watermark with the reader's name, phone and date, so a leaked screenshot can potentially be traced back to the authenticated reader
  • Page rendering: every page is pre-rendered from the typeset book files into a sharp 1,400 px WebP image, so the Urdu text looks exactly as typeset on any device
See more (4)See less
  • No PDF or download routes
  • Cloudflare Full (strict) SSL with CSP and HSTS
  • Turnstile CAPTCHA and per-user rate limits
  • Encrypted per-user page cache with preloading for fast page turns

Product gallery

Admin

Reader app

Watermarked page

  • Rebuild as a PWA so the book does not depend on a single store developer account
  • Gate access behind member accounts with admin-controlled registration and approvals
  • Serve every page as an image, not text or PDF, so typesetting stays exact and there is no book file to download
  • Watermark on the server for each reader so every page carries who it was served to
  • React
  • Hono
  • TypeScript
  • Vite PWA
  • BetterAuth
  • Drizzle
  • PostgreSQL
  • sharp
  • nginx on Vultr
  • Cloudflare
  • Readers can use the book again on Android, iPhone and the web, without depending on an app store account
  • The trust controls who gets in: open signup for busy days, approval mode afterwards, or closed when needed
  • Median page-image API response of about 0.2s on repeat views
  • Median first-view page response of 0.6 to 0.9s
  • About 1.3s from a fresh login to the first page
  • 1,054 pages across 16 chapters, free to read for approved members, with no PDF or download
  • Live at app.anwarekhalique.com

Timings are from production API benchmarks run on 2 Nov 2026 from the US through Cloudflare (not from Pakistan), measured from the request until the watermarked image arrives, with browser rendering excluded.

Related: CaseFlow PI and Vehicle Daily Check.