Skip to content

PagehavenStatic Comic Archive & Search Engine

Pure-static Astro manga reader, browser-side SQLite Wasm dialogue search, and portable multi-host delivery backed by private R2.

Capabilities & Explicit Limits ​

What Pagehaven Delivers

  • Serverless Multi-Target Static Publishing: One site.config.yaml SSOT drives Astro 7.4 to compile one static HTML page per chapter portable across EdgeOne, Alibaba Cloud ESA Pages (<=1,999 app files), GitHub Pages, and Cloudflare Workers, paired with private R2 uploads, live HTTPS proof checks, and ETag If-Match manifest.json activation.
  • Browser SQLite Wasm Dialogue Search & Progressive Reader: Deterministic 5-step normalizeText + FTS5 trigram / LIKE search resolves hits to #p<n>b<i> speech boxes; the progressive reader offers single-page, O(log N) binary-search long-strip, double-page, 100-chapter TOC shards, and optional Comimi enhancement.
  • Local Library & Schema-Checked JSON Migration: Progress, statuses, and 200-char notes live in browser localStorage and migrate cleanly via strict pagehaven-reading-backup JSON validation (up to 5 MiB / 20,000 records).

Explicit Non-Goals & Hard Boundaries

  • No User Accounts, Comments, or Dynamic Backend: Never includes authentication, server-side sessions, web-based media uploads, or persistent VPS processes; personal shelves stay browser-local.
  • Search database size. Enable features.range_search in site.config.yaml and rebuild to read verified SQLite blocks on demand in a dedicated worker. The default build uses a bounded whole-file download (30 MiB by default).
  • Hard Hosting Budgets & Human-Reviewed Search Input: ESA enforces 2,000 total files / 1,024,000,000 B; raw ingest:ocr drafts never enter production search without --accept-reviewed; credentials never enter site.config.yaml or client bundles.

Interactive Pipeline Overview ​

Pagehaven Pipeline: 01 Raw Ingest → 02 Normalized IR → 03 Bundle → 04 Reader Engine (pan & zoom)
Open fullscreen ↗

10-Second Local Verification ​

The repository starts as a clean template catalog. Verify a complete static build locally:

sh
pnpm install --frozen-lockfile
pnpm run build
pnpm run check
pnpm --filter @gallery/site run preview
# Preview opens at http://localhost:4321 (pass DATA_DIR=packages/core/test/fixtures/data for sample chapters)

Documentation Map ​

Jump by Reader Goal