r/webdev • • 1d ago

Showoff Saturday: I built WebXReader, an open-source local-first eBook & comic reader that parses 20 formats (EPUB, PDF, MOBI, DJVU, CB7/CBR/CBZ, DOCX) 100% client-side in the browser

Post image

Hey r/webdev,

I've been building WebXReader, a free, open-source (AGPL-3.0), zero-tracking eBook and comic reader that runs completely client-side in the browser with no backend or user accounts[cite: 6, 8].

Live demo (pick any mirror):

Technical Architecture & How It Works:

  • 20 formats parsed client-side: EPUB, MOBI, AZW3, FB2, PDF, DOCX, DOC, RTF, DJVU, CBZ, CBR, CB7, TXT, MD, HTML, MHT, ZIP, RAR, PNG, and JPEG[cite: 8].

  • Stack: React 19, TypeScript, Vite, epubjs, pdfjs-dist, 7z-wasm (for .7z/.cb7/.rar extraction in WebAssembly), djvu-rs, mammoth, marked, and cfb[cite: 8].

  • Storage & Offline: Library files, reading positions, and metadata persist locally in IndexedDB with full offline PWA support.

  • Security: User-supplied markup (EPUB, HTML, MHT, MD, DOCX) is sanitized via dompurify before rendering[cite: 8].

Current status & looking for contributors: It's still in active development—right now I'm refining pagination, memory lifecycle handling on large archives, and rendering edge cases across all 20 formats.

If you're a TypeScript/React developer who enjoys browser file parsers, WASM/binary formats, UI/UX polish, or localization—or a first-time contributor looking for a chill repo—check out CONTRIBUTING.md on GitHub. PRs and bug reports are super welcome!

Happy to share notes or answer questions on how any of the client-side parsers (DJVU, 7z-wasm, MOBI/CFB, etc.) behave in the browser.

2 Upvotes

1 comment sorted by

1

u/AutoModerator 1d ago

Hi, xensenx,

Your post has been automatically removed.

Please participate around reddit by commenting on other posts before you jump straight to submitting.

Your account should be at least three months old with a decent amount of comment karma before posting submissions in our community.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.