← All projects

PROJECT NOTES / FULL-STACK & SYSTEMS

Webnovel Reader

Stay in the story.

Built for my love of books: a self-hosted reader and audiobook platform in my Proxmox homelab, with a JavaScript web reader, native Swift iPhone client, cached narration and durable progress.

  • Python
  • Flask
  • Swift
  • JavaScript
  • SQLite
  • Docker
Webnovel Reader demo library with two original sample stories
Standalone demo library · original stories and cover artwork

The problem

I enjoy reading novels and books, and wanted to make it easier to keep reading—and especially listening—throughout my day. That meant building more than a text viewer: narration needed to resume reliably, while my reading and listening positions stayed independent.

What I built

The result is a self-hosted reader and audiobook platform running on Ubuntu Server in my Proxmox homelab. Dockerized Flask APIs and SQLite support EPUBs, chapter importing, cached neural narration, and durable, independent reading and listening progress. I use a JavaScript web reader and a native Swift iPhone client, which combines WKWebView with AVQueuePlayer, background audio, lock-screen controls and server checkpoint synchronization.

TOOLS & ENGINEERING

Built with.

  • Python
  • Flask
  • Swift
  • JavaScript
  • SQLite
  • Docker
  • SQL
  • Docker Compose
  • REST APIs
  • Full-Stack Development
  • iOS Development
  • WKWebView
  • AVQueuePlayer
  • Text-to-Speech
  • Audiobook Processing
  • EPUB Processing
  • Persistent Storage
  • Responsive Web Design
  • Checkpoint Synchronization
  • Background Jobs
  • Automated Testing
  • GitHub Actions
  • CI/CD
  • Linux
  • Ubuntu Server
  • Self-Hosting

These skills describe the Flask application and native Swift client. The isolated browser demo uses static sample content. Public-source CI validates tests and builds; private production deployment safeguards are documented separately.

HOW IT FITS TOGETHER

The architecture.

SIMPLIFIED LOGICAL ARCHITECTURE
  1. Web reader · JavaScript
  2. Swift iOS · WKWebView + AVQueuePlayer
  3. Flask API · validation + synchronization
  4. SQLite · library + independent checkpoints
  5. Durable jobs · imports + chapter discovery
  6. Edge / Piper workers · protected audio cache
  1. 01

    Web and iPhone clients share the reading experience. WKWebView connects the native Swift client to the reader, while AVQueuePlayer owns native playback and lock-screen transport controls.

  2. 02

    Flask validates library, chapter, audio and progress requests. SQLite stores books, durable jobs, settings, and independently versioned reading and listening checkpoints.

  3. 03

    Source adapters support bounded chapter discovery and importing. Scheduled checks are opt-in per book; durable jobs and stable chapter identities prevent duplicate imports.

  4. 04

    Edge neural TTS and optional local Piper workers publish reusable audio segments. Checksums, measured durations and stream protection keep caching and playback consistent.

  5. 05

    A native append-only checkpoint journal persists playback intent and position before synchronization. Sequence numbers and conflict checks prevent stale server responses from rewinding listening.

  6. 06

    Docker runs the application and workers on Ubuntu Server. Private remote access remains separate from the public demo. Backups, health checks, integrity verification and guarded rollback support releases.

ENGINEERING DETAILS

Decisions that matter.

Two clients, one coherent place

Reading and listening positions are separate. A user can read ahead without moving the audiobook, then explicitly return to narration or start listening from the current passage.

Native audio survives interruptions

AVQueuePlayer queues cached segments, supports background and lock-screen playback, and reconstructs durable checkpoints after interruption. Acknowledgements, playback generations and sequence numbers keep native and server state aligned.

Imports are bounded work

EPUB ingestion and source-aware chapter adapters feed a durable queue. Per-book automatic discovery is opt-in, append-only updates use stable identities, and existing bookmarks, sections and progress are preserved.

Cached audio with honest timing

New Edge recordings can carry checksum-bound word cues; legacy cached audio remains chunk-precision. The system avoids inventing timings or regenerating a user’s cache simply to change highlighting.

Reliability is part of the product

Regression suites cover import validation, cache integrity, pagination, playback transitions and checkpoint conflicts. Guarded promotion verifies backups, database compatibility, media integrity and application health; rollback retains current user data.

Recorded release evidence

The October 30 release record for runtime dd9f410 reports 287 Linux tests passed with one skip, 39 native simulator tests passed with one physical-only skip, and 18 portable Swift tests passed. It records nine matching listening checkpoints and preservation of 37,936 existing media files. These are historical release results, not test suites rerun for this portfolio.

A deliberately isolated demonstration

The public browser demo uses original fiction, static sample narration and browser-local state. It does not connect to the private server, personal library, live import jobs, production TTS, or native signing workflow. The native app is privately distributed; no App Store availability is claimed.

Reviewed against current native and backend source at 95b2698 and the recorded dd9f410 reliability release. Web captures show the isolated public demo. Native captures show the actual Swift application in an iPhone simulator with original demo fiction, original cover artwork and synthetic cached test audio. No personal library or production checkpoints were used.

UP NEXTCloud Coordination Hub