Repository navigation
v2.0.0 - Comics Now! 2.0.0
Comics Now! 2.0 Release Notes
Milestone Headline: Cloud GPU Computing
Comics Now! 2.0 marks a transformative architectural leap: liberating self-hosted comic book libraries from local CPU hardware constraints by introducing native Serverless Cloud GPU Acceleration (powered by Modal). Heavy neural network panel segmentation and speech bubble detection workloads that previously took 3–5 minutes on local CPUs are now executed in 15–20 seconds on cloud GPUs — all while utilizing Modal's $30/month recurring free compute tier.
⚡ The 2.0 Headline: Serverless Cloud GPU Computing
Prior to 2.0, extracting Guided View panel coordinates and speech balloon bounding boxes required running deep learning models (western.onnx and manga.onnx) locally. On typical home servers, NAS devices, or mini-PCs, a single 25-page comic could pin the CPU at 100% for 3 to 5 minutes, slowing down other server operations.
Comics Now! 2.0 introduces a hybrid serverless cloud GPU architecture:
Local Server (Admin Web UI / Queue)
│
├─► Modal Cloud Function (NVIDIA T4 / A10G Cloud GPU)
│ ├─► Persistent Volume: comics-now-models (weights cached in cloud)
│ ├─► High-speed ONNX Runtime GPU Inference (15–20s per comic)
│ └─► Returns JSON Panel & Speech Balloon Coordinate Maps
│
└─► Comics Now! Database (Saved permanently for instant, zero-latency reading)
Key Capabilities of Cloud GPU Acceleration:
- 10x–15x Speedup: Complete 25-page comics are fully segmented in 15–20 seconds compared to 3–5 minutes on CPU.
- Parallel Cloud Worker Queue: Process 2 comics concurrently on cloud GPUs without pegging local host resources.
- Persistent Cloud Volume: A managed Modal Volume (
comics-now-models) caches model weights in the cloud, eliminating redundant model uploads after initial setup. - 1-Click Admin Provisioning: A dedicated ⚡ Initialize Modal GPU Environment button in the Web Admin UI creates the volume and provisions cloud worker environments in under a minute.
- Live Credit & Cost Telemetry: Admin dashboard displays real-time available credits, metered cycle spend, and billed cost directly fetched from the Modal API.
- Zero-Downtime Fallback: If cloud compute limits are reached or API tokens expire, Comics Now! displays a clear warning badge and automatically falls back to local CPU processing without failing active jobs.
How to Use the $30/Month Free Tier (With Hard Budget Cap)
Modal provides $30 of free compute credit every single month to all accounts — enough to process approximately 5,000 to 7,500 comic pages per month entirely free.
Setting Your $30 Hard Budget Cap (Guaranteed Zero-Cost Protection)
To ensure that you never incur unexpected charges beyond Modal's free credit allotment:
- Log into your Modal Dashboard.
- Go to Settings → Billing / Usage (or Workspace Settings → Usage Limits).
- Under Monthly Spending Limit, enter:
$30.00 - Configure threshold notification alerts (e.g., at 50%, 80%, and 100%).
- Click Save Changes.
Once this hard limit is reached, Modal immediately halts cloud function invocations instead of charging your credit card. Comics Now! detects the spend limit, shows an advisory badge in the Admin UI, and automatically routes subsequent requests to local CPU detection.
Warning
User Billing Responsibility Notice: It is strictly your responsibility to configure spending limits in your third-party Modal account dashboard and monitor your usage. Comics Now! provides automated budget monitoring and safe fallbacks to local CPU, but cannot control third-party billing accounts or guarantee that third-party services will not bill you if you choose not to configure a spending limit or set a higher limit.
30-Second Setup in Comics Now!
- In your Modal dashboard, navigate to Settings → API Tokens and create a New Token (Token ID
ak-...and Token Secretas-...). - Open Comics Now! and go to Settings → Guided View.
- Check Use Modal GPU Acceleration, enter your credentials, and click Test Connection.
- Click ⚡ Initialize Modal GPU Environment to perform one-time cloud volume setup.
- Set Processing Concurrency to 2 Comics in parallel (Modal GPU) and click Save Settings.
🔀 Companion Innovation: Interactive Continuity DAG Visualizer
Comics Now! 2.0 introduces a first-of-its-kind Continuity Directed Acyclic Graph (DAG) visualizer for reading lists, transforming how readers navigate sprawling crossovers and multi-series story arcs.
flowchart LR
subgraph "Parallel Series Swimlanes"
direction TB
A1["Action Comics #1067"] --> A2["Action Comics #1068"]
B1["Superman #19"] --> B2["Superman #20"]
C1["Batman #152"] --> C2["Batman #153"]
end
A1 -.->|"Crossover Flow"| B1
B1 -.->|"Milestone"| C1
A2 -.-> B2
B2 -.-> C2Highlights:
- Parallel Series Lanes: Automatically organizes multi-title events (e.g., Crisis on Infinite Earths, Absolute Universe, Infinity Gauntlet) into distinct horizontal swimlanes per series.
- Smooth Bézier Curve Flow: Directional connectors render reading flow between narrative milestones across series boundaries.
- Fluid Desktop & Mobile Navigation: Smooth mouse-wheel zoom and pan on desktop, paired with responsive pinch-to-zoom and two-finger drag gestures on mobile tablets and phones.
- Interactive Click-to-Read Nodes: Tap any issue directly within the canvas to inspect metadata, verify read status, or immediately launch the reader.
- Live Search & Filter: Real-time filtering within the DAG canvas to isolate character arcs or sub-series in 100+ issue reading lists.
- 3-Way View Switcher: Instant segmented toggle at the top of every reading list modal:
⊞ Grid View: Visual poster-forward cover grid.☰ List View: Compact 3-line session view with live reading status badges and one-touch actions ([▶ Read], [▶ Resume], Mark Read/Unread, Download).🔀 DAG View: Fullscreen interactive continuity flow graph.
📱 Companion Innovation: Android PWA Doze Self-Healing
On mobile devices (especially Android PWAs / WebAPKs), operating system battery optimization (Doze Mode) suspends background network sockets when the screen locks. In standard PWAs, this causes browsers to get stuck in a false-offline state (navigator.onLine === false) even after reconnecting to high-speed Wi-Fi.
Comics Now! 2.0 implements an active, self-healing connectivity loop:
- Zero-Overhead Health Probe (
/api/v1/health): An unauthenticated, sub-millisecond endpoint dedicated to fast connectivity verification. - Wake-Up & Focus Re-Validation: Whenever the phone is unlocked or the PWA is resumed (
visibilitychangeandfocusevents), Comics Now! immediately probes the health endpoint. - Instant Recovery: Once the probe succeeds, the app clears offline banners, fires an active
onlineevent, and refreshes library and reading list data without requiring you to force-close and restart the app.
📚 Companion Innovation: Grand Comics Database (GCD) Cover Cascade
Comics Now! 2.0 expands metadata and cover extraction with deep integration into the Grand Comics Database (GCD):
- 4-Tier Resilient Cover Cascade:
Local Cache: Instant retrieval of stored covers.Grand Comics Database (GCD) API: High-fidelity historical cover scans with authenticated access.ComicVine API: Broad volume metadata and secondary artwork.Gemini AI Engine: High-accuracy OCR-assisted visual fallback.
- Tiered Rate Limiting & Token Auth: Supports authenticated GCD user accounts with tiered request scheduling to respect community infrastructure.
- Candidate Disambiguation Algorithm: Eliminates false-positive matches for same-titled series across different eras and publication years (e.g., distinguishing between 1963, 1998, and 2018 volumes).
🎞️ Reader Experience Overhaul: Fullscreen Scrubber & Filmstrip
- Horizontal Thumbnail Filmstrip: Touch-scrollable reel displaying all comic page thumbnails inside the fullscreen reader for quick visual scanning.
- Precision Page Scrubber: Bottom slider bar providing smooth scrubbing across 100+ pages with real-time page number feedback.
- Persistent Header Controls: Comic title and close/exit buttons remain sticky and accessible at the top edge, with calibrated z-index layering so zoom overlays never trap or obstruct navigation.
- Instant Continuous Reading Toggle: Seamlessly toggle between single-page and continuous vertical scrolling modes without reloading the reader.
🎨 Modern Visual Styling & Polish
- High-Contrast Comic Styling: Calibrated cover card aspect ratios, bold typographic hierarchy, modern logo wordmark, and publisher vector marks (DC Bullet, Marvel, Image, Dark Horse, 2000 AD, IDW, BOOM!).
- Modal Scroll Locking: Prevents accidental background page scrolling when viewing dialogs or reader settings.
- Model Context Protocol (MCP): Enhanced tooling for inspecting panel coordinates and guided view overlays.
🔒 Security & Privacy Hardening
- Full-Codebase Zero-Secret Guarantee & Masked Telemetry: All 602 tracked files audited and verified clean of hardcoded secrets and personal credentials. All cloud tokens (
ak-...,as-...), ComicVine API keys, Gemini tokens, and GCD credentials are fully parameterized and strictly masked in API responses (hasModalSecret: !!modalSecret), preventing credential leakage over the wire. - Developer Host Path Scrubbing: Eliminated all hardcoded developer paths in favor of portable environment variable discovery (
MODAL_VENV_PATH,MODAL_PYTHON_PATH) and repository-relative virtual environments. - SSRF & Credential Protection on GCD Metadata: Enforced strict
https://*.comics.orgdomain validation before querying external issue links, eliminating Server-Side Request Forgery risks and safeguarding Basic Auth credentials. - LAN-Safe Candidate Cover Shielding: Added loopback and cloud metadata protection to perceptual hash cover downloads (
covers.py) while preserving full reachability for local LAN media servers (192.168.0.*). - Path Traversal Containment & Input Sanitization: Reinforced Guided View sidecar exports with safe basename containment (
pathlib.Path(comic_id).name) and fortified reading list import routes with integer coercion and hash validation (validateComicId).
🛠️ Quality & Verification
Every component of Comics Now! 2.0 was developed under strict Test-Driven Development (TDD):
- Jest Test Suite: 84 test suites, 610 tests passing (100% pass rate).
- Pytest Suite: 150 tests passing (100% pass rate).
- Data Integrity: Zero modifications or deletions to existing user reading lists, reading progress, or custom user data.
Comics Now! 2.0 is ready for deployment. This document is maintained locally for release preparation and is not tracked in git.