Skip to content
me-cedricPublic

About

Native comic, manga and ebook readers for iOS and Android — read local files, SMB shares, OPDS catalogues and Kavita servers, offline-first

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

15 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,841 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


The StoryArc mark

StoryArc

Native comic, manga and ebook readers for iOS, Android, macOS, Windows and Linux.

Contract CI iOS CI Android CI Windows CI macOS CI Linux CI MIT License

Swift 6.2 iOS 26.1+ Kotlin 2.4 Android 12+ Latest release Support StoryArc on Ko-fi


StoryArc on iOS: the library showing the generated test corpus, two refusals named above the shelf, and the four destinations    StoryArc on Android: the same library and the same two refusals, rendered in Material 3 Expressive

The iOS reading-theme sheet: a live preview above the presets, each drawn in its own colours and typeface    The Android reading-theme sheet: the same preview and the same presets, in Compose

StoryArc on macOS: the audiobook player with chapters, a sleep timer and the playback speed    StoryArc on Linux: the EPUB reader in GTK 4 and libadwaita, with contents, marks, read aloud and search in the header bar

The same test library on both platforms — including the two files that could not be opened, named rather than counted — and the reading-theme sheet on each: a live preview above six presets, each drawn in its own colours and typeface. Both pairs were taken by the capture harnesses in scripts/, not by hand. Below them, the desktop apps: the Mac audiobook player (a snapshot test reference) and the Linux EPUB reader (a headless capture). No Windows desktop has walked a screen yet.

StoryArc reads what you already own, from wherever you keep it: a folder on the device, iCloud Drive or any Files provider, an SMB share on your NAS, an OPDS catalogue, or a Kavita server. It caches what it finds, downloads what you ask it to, remembers where you stopped, and syncs that back when the source can hold it.

Each app is written for its own system, on purpose. iOS is Swift and SwiftUI with Liquid Glass. Android is Kotlin and Compose with Material 3 Expressive. The Mac app is SwiftUI over the iOS packages, Windows is WinUI 3, and Linux is GTK 4 and libadwaita; the last two share a Rust core that holds no UI. No cross-platform UI layer, ever — the point is that each one feels like it shipped with the operating system.

StoryArc is free and open source, with no paid tier, no accounts and no telemetry. If it helps you, you can support development on Ko-fi.


Download

Every release is on the releases page, built and signed by CI from the tagged commit.

Platform File Needs First start
Android StoryArc-X.Y.Z-android.apk Android 12 Allow your browser or file manager to install unknown apps. Play testers get the same build from Play.
Windows …-windows-x64-setup.exe or …-arm64-setup.exe Windows 11 24H2 Installs for you alone, no administrator rights. SmartScreen warns: More info, then Run anyway.
Windows, portable …-windows-x64-portable.zip or …-arm64-portable.zip Windows 11 24H2 Unzip anywhere and run StoryArc.exe. Its data stays in a data folder beside it.
macOS …-macos.dmg macOS 26, Apple silicon or Intel Drag StoryArc to Applications. It is not notarised yet: open it once, then Open Anyway in System Settings > Privacy & Security.
Linux …-linux-x86_64.flatpak or …-aarch64.flatpak Flatpak flatpak install --user <file>. Flatpak takes the GNOME runtime from Flathub. Arch and Manjaro can build the AUR PKGBUILD in apps/desktop-linux/packaging/aur.

iOS has no public build yet: its TestFlight lane is ready and waits for an Apple Developer account. Nothing is in a public store.

Status

Pre-alpha, and further along than that word suggests. Both apps open a library from a folder, a share, a catalogue or a Kavita server, read comics and EPUBs in their own readers, read aloud, and play audiobooks. What is missing is finish, not surface: docs/openspec/STATUS.md scored all 411 scenarios of the contract against both codebases on 2026-09-12 — 232 built and tested on both, 154 built and asserted by nothing, 17 on one platform only, 8 missing on both — and every capability is partial. The main specs hold 426 scenarios on 2026-10-10. The build that followed is recorded change by change in that document's "Build progress" paragraphs, and its "Completion audit, 2026-10-23" section is the current list of what is done and what each open item needs. None is absent, and the device steps that no simulator answers are in docs/mvp-device-checklist.md.

Area State
Capability specs ✅ 18 capabilities, 447 scenarios, validating; the 411 of 2026-09-12 audited against both apps with path:line evidence
Design system ✅ OKLCH token source generating Swift + Kotlin, WCAG-gated in CI; the mark and every icon rendered from one SVG
Format layer ✅ CBZ, CBR, CBT, PDF, EPUB and image folders open on both platforms — see below
Test corpus ✅ 26 archives, 2 PDFs, 6 EPUBs and 7 audiobooks, one manifest, asserted by both suites
Sources 🟡 Folders, SMB (SMB 3 encryption included), OPDS and Kavita connect, cache, read every page of a source and diagnose on both; the sources row in STATUS is partial, and close-the-audited-gaps has 278 of 288 tasks done
Readers 🟡 Paged comic reader with a page carousel and reflowable EPUB reader on both, six themes, four page transitions; reader-theming-and-page-transitions has 54 of 59 done and 4 partial, each an owner step or a frame
Playback 🟡 Read-aloud and an audiobook player on both, behind one session; audiobooks-and-playback has 83 of 91 done and 7 partial, and read-aloud-beyond-the-reader 20 of 24
Covers 🟡 One cover ladder on both; a reader may choose a picture for any publication; the opt-in lookup is the last rung of the ladder, and the publication page offers the title and web search. cover-for-every-publication has 25 of 28 done and 2 partial
Portability 🟡 One versioned library document, exported and imported from a screen on both platforms with no secret in it, and synced through a share or a folder. library-portability has 31 of 32 done (3.1c, an Android frame), and library-sync 28 of 30, the two open ones owner steps on real devices
Desktop: macOS 🟡 Reads comics, EPUB and PDF, plays audiobooks with Now Playing and the media keys, reads aloud, and has the sources, downloads, sync and shelves of the phones; 238 tests and an accessibility audit of 23 screens. desktop-clients is the plan
Desktop: Windows 🟡 The same screens compile on CI over the Rust core, and a release build starts and stays up on a Windows runner; no Windows desktop has walked a screen yet
Desktop: Linux 🟡 Reads EPUB and PDF, plays audiobooks with MPRIS, reads aloud through speech-dispatcher; 291 crate tests and headless walks; Flatpak and AUR builds install in CI
Releases ✅ One tag builds every download into a draft GitHub release and a Play internal draft; the owner publishes. A push to the release files rehearses it all without publishing. Specified by release-train, archived 2026-10-23
Interface audit ✅ docs/designs/reviews/ui-audit-2026-10-23.md: every catalogue screen read against the iOS 26 and Material 3 Expressive guidelines, the design system and the reuse rules; 32 rows, applied in two waves on 2026-10-23
Foldables 🟡 Built 2026-10-24 on both: pages keep off the fold, tabletop puts the controls below it, a book-held device shows a spread, and the reader keeps its place when the device opens or closes. iOS builds with Xcode 27.1. The iPhone Duo outer store set is captured; the inner set and the device checks need a person (foldables-and-iphone-duo)

Tests: about 3,570 on iOS across 485 host suites, plus 144 more in StoryArcEpub that need a simulator; on Android, about 4,070 JVM plus 170 instrumented, counted from their @Test attributes. The instrumented ones exist because image decoding, PDF rendering, Room and the RAR decoder cannot run on a host JVM.

Releases are built by CI, never on a laptop. pnpm release writes one version into every client and tags it; the tag builds the APK, the Windows installer and portable zip, the macOS disk image and the Linux Flatpak into a draft GitHub release, and puts the Android bundle on Play's internal testing track as a draft, with the notes of RELEASE_NOTES.md. The owner publishes the release and promotes the Play build. The rules are §10 of AGENTS.md.

What the format layer actually does

Format State How
CBZ ✅ Reads Our own ranged-read ZIP reader (ADR-0008) — no dependency, and it recovers a truncated archive
CBT ✅ Reads Our own TAR reader — 512-byte headers need no library
CBR ✅ Reads Headers parsed by us; entries decompressed by vendored libarchive
PDF ✅ Reads PDFKit on iOS, the platform's PDF module on Android. Selection, search and marks on both — on Android where the device's module has a text API, else it behaves like a scan; the document outline is iOS-only, because that module exposes none (ADR-0012)
EPUB ✅ Reads Package document parsed by us — EPUB 2 and 3, reflowable and fixed-layout — so metadata, contents and covers need no dependency. The text is rendered by Readium on both platforms, the one place HTML is allowed (ADR-0001)
Image folder ✅ Reads A directory of ordered images, same page rules as an archive
Audiobook 🟡 Plays M4B, M4A, MP3, FLAC and Ogg, or a folder of parts, sniffed from bytes; an .aax is refused by name. Specified by audiobooks-and-playback, which has not synced into the main specs yet
CB7 🚫 Refused by name Deferred, not refused for ever: ADR-0013 costs out a 7-Zip decoder and settles the direction without the timing

Two details worth knowing, because they shape everything above:

A CBR is catalogued without being downloaded. Page names, page count, sizes, the cover, and whether the archive is solid all live in RAR headers, which carry no compression — so they are read with ranged reads and no decoder. libarchive is used for exactly one thing: turning a compressed entry's bytes into pixels' worth of bytes. That is why only 27 of its 134 sources are vendored, pinned to one upstream release — and a scheduled workflow raises a hand when upstream moves, because copied sources are invisible to every dependency scanner.

Solid RAR4 is refused, solid RAR5 is not. The only RAR decoder with an OSI-approved licence does not implement solid RAR4 at all, so downloading such a file changes nothing and the app says so plainly. Solid RAR5 reads fine; it just cannot be streamed.

What it does

This is the contract, in prose. Most of it is built on both platforms; STATUS.md says which sentence is asserted by a test, which merely compiles, and which is still a promise.

Sources — Read from a device folder, iCloud Drive or any Files provider, an SMB share, an OPDS catalogue, or a Kavita server. Every source caches locally, so the library opens instantly and stays browsable when a server is unreachable. Offline is a normal state, never an error.

Formats — CBZ, CBR, CBT, EPUB (reflowable and fixed-layout), PDF, and a plain folder of images. Format is detected from content, not the extension, so a mis-named file still opens. Metadata comes from ComicInfo.xml, the EPUB package, or the filename — in that order. CB7 is refused by name rather than half-supported. Audiobooks play on both platforms, specified by audiobooks-and-playback, whose sync into the main specs waits on the owner's device steps.

Reading — A paged image reader with an interactive page curl that follows your finger (ADR-0009), plus slide, fast fade, and continuous scroll for webtoons. Right-to-left for manga, detected from metadata. Double-page spreads in landscape. Chrome that hides itself and never reflows the page. A separate reflowable reader for EPUB with six named themes — Original, Quiet, Paper, Bold, Calm, Focus — and per-axis control over typeface, size, line, character, word and paragraph spacing, margins, alignment and background colour, all with a live preview. The same curl turns a reflowable EPUB page, on a tap, a key or a released swipe. Bookmarks, highlights and read-aloud — the platform's own voices on both sides (ADR-0017).

Library — One view over every source. Search, filter and sort — respecting a reading list's curated order rather than forcing it alphabetical. Collections and reading lists, local or server-backed, presented side by side, and any of them pinned to Home.

Covers — Every publication has a cover. The file's own artwork comes first, then a cover, folder or poster image beside it. Where neither exists, the empty well is a button: choose any picture from your photos, cropped to the cover shape and kept on the device, where a cache clear does not reach it.

Offline — Download a publication, a collection, or a whole reading list. Resumable, background-capable, Wi-Fi-only if you want it, with visible storage management and automatic cleanup after finishing.

Progress — Recorded locally first, always, and synced with Kavita in both directions. The same book read from a folder and from a server resolves to one record. Conflicts resolve to the furthest position, and finished stays finished.

Everywhere — English, French, German and Spanish, following your system by default. System, Light, Dark, OLED Dark, plus a textured Natural theme. Dynamic Type and font scale to maximum. VoiceOver and TalkBack. Reduce Motion and Reduce Transparency respected, not ignored.

The full contract is in docs/openspec/specs/ — 18 capabilities, each written as user-observable behaviour with failure and offline paths.

Repository layout

storyarc/
├── apps/
│   ├── ios/                       Swift · SwiftUI · XcodeGen · two SPM packages
│   ├── android/                   Kotlin · Compose · Gradle version catalog · 13 modules
│   ├── desktop-core/              Rust · storyarc-core (no UI) and storyarc-ffi (C ABI for C#)
│   ├── desktop-macos/             Swift · SwiftUI · own XcodeGen project · base only
│   ├── desktop-windows/           C# · WinUI 3 · .NET 10 · base only
│   └── desktop-linux/             Rust · GTK4 + libadwaita · base only
├── Cargo.toml                     Rust workspace: desktop-core and desktop-linux
├── packages/
│   ├── design-tokens/             OKLCH source → generated Swift + Kotlin
│   ├── test-fixtures/             one publication corpus, two test suites
│   ├── fonts/                     five OFL reading typefaces the EPUB reader bundles
│   └── licences/                  the inventory behind THIRD_PARTY_NOTICES.md
├── docs/
│   ├── openspec/
│   │   ├── project.md             product context
│   │   ├── specs/<capability>/    18 capability specs — the contract
│   │   ├── changes/               in-flight proposals, and archive/ for finished ones
│   │   └── STATUS.md              what is built against what is specified
│   ├── decisions/                 ADRs
│   ├── architecture/              layer model, repo map, where the hard problems are
│   ├── diagrams/                  a LikeC4 model: context, containers, components
│   ├── drawings/                  Mermaid, for the flows that earn a picture
│   ├── design.md                  the design system
│   ├── designs/                   the mark, and screenshots of what the apps look like
│   └── agent-compass/             the agent contract this repo imports — a submodule
├── third_party/
│   └── libarchive/                27 of 134 sources, for RAR only
└── scripts/                       the gates, the test library, the mock servers, the cameras

There is no root build for the mobile apps. apps/ios builds with xcodebuild, apps/android with ./gradlew, and neither needs Node to compile. The root Cargo.toml is a Rust workspace for the desktop core and the Linux app only; the macOS and Windows apps build with their own tools (ADR-0018). The workspace at the root is the tooling around them: the spec and token gates, the fixture generator, a library to test against with three servers to serve it, the screenshot harnesses, and pnpm check, which runs all of it and then both apps' lint, tests and test-target builds.

Architecture

Two independent native codebases sharing three declarative artefacts and no code:

Shared Where Enforced by
Behaviour contract docs/openspec/specs/ pnpm spec:validate and pnpm spec:guard in CI
Design tokens packages/design-tokens Generated into both apps; contrast gate in CI
Test fixtures packages/test-fixtures Both suites assert against the same corpus
Vendored C third_party/libarchive One copy, compiled by SwiftPM and by CMake

The fourth row is the newest and the one that needed the most care. Two native codebases sharing C sources is exactly the coupling ADR-0001 avoids everywhere else, so it is allowed only because the alternative — two copies of a RAR decoder — would drift, and because the sources are inert: 26 files, one hand-written config.h, and a single entry point on each side. See VENDORING.md.

Kotlin Multiplatform was the strongest alternative and was rejected for reasons written down rather than assumed — see ADR-0001.

Both apps follow the same layering in their own idiom: a UI-free domain layer, a design system, format and source layers, persistence, then feature modules. The domain is UI-free specifically so the riskiest logic — the progress merge — is testable on the host in milliseconds. Full map in docs/architecture/.

Decisions

ADR Decision
0001 Two independent native cores, not a shared one
0002 One repository for two independent apps
0003 iOS 26 and Android 12 as the minimum versions
0004 Desktop: documented now, built later (superseded in part by ADR-0018)
0005 Format and rendering libraries per platform (proposed)
0006 Local-first progress with content-addressed identity
0007 One OKLCH token source, generated into Swift and Kotlin
0008 Ranged reads over a random-access source, with our own ZIP reader
0009 The page curl is a fragment shader over two decoded pages
0010 An SMB2 client per platform, both pure and permissively licensed
0011 Home-screen widgets wait for a shared snapshot, and for a signing team (deferral)
0012 PDF text on Android comes from the platform's own PDF module
0013 CB7: what a 7-Zip decoder would cost, and three ways to answer it (deferral)
0014 An unpatchable ZIP library ships in the iOS binary, and nothing calls it (risk accepted)
0015 A publication's own network access: deny it, admit it, or narrow it
0016 iOS SMB responses are unsigned and unverified — extends 0010 (risk accepted)
0017 Android reads aloud with the platform engine, not a new Readium artifact
0018 Desktop: macOS in Swift, Windows and Linux on one Rust core — supersedes the timing of 0004
0019 SMB 3 encryption on both platforms: smbj on Android, a vendored SMBClient on iOS

New to the project? 0001 → 0002 → 0003. The rest answer specific questions when you reach them.

Design

Editorial darkroom. The app is a room you read in. Chrome recedes, auto-hides and never tints, so nothing competes with a page of artwork somebody else drew.

  • Neutrals carry a warm ink tilt rather than the clinical blue-grey most reader apps default to. Light theme is book stock, not office paper.
  • The accent is a violet from the middle of the app's own mark, so the icon and the chrome cannot drift apart — not another blue, and not the tonal purple a Material baseline hands out. One value on every appearance: it clears 3:1 on book stock as well as on ink, which the mark's pink does not. Android wears it by default too; colours from the wallpaper are a setting. Inside a publication it defers to a colour derived from the cover art.
  • System sans for every piece of chrome, so the app reads as stock. A serif on publication titles is the whole of StoryArc's typographic voice — inside a book, five bundled OFL families carry the six reading themes.
  • Spacing is deliberately uneven. A cover grid breathes; a metadata stack tightens. Uniform padding everywhere is the fastest way to look like a template.
  • Comic covers keep a 4 pt radius. A comic cover is printed stock — rounding it like an app icon reads as wrong.

The mark itself is generated too, from one SVG. pnpm brand:build renders twenty-four assets from it — per face an .appiconset for the icon and an ordinary .imageset so the in-app chooser has something to draw, plus AccentColor.colorset, the Android adaptive foreground and its monochrome twin, and a plateless PNG for the docs. pnpm brand:check renders the same set and fails if a byte differs, which is what stops a hand-edited icon. The accent hex is read from the same token the apps read, so the icon and the chrome cannot disagree.

Colour, type, spacing, radius and motion are authored once in OKLCH and generated into Swift and Kotlin, so neither app can drift by hand-editing a hex code. Contrast is a build gate: 58 pairs across five appearance ramps, with text below its WCAG floor failing CI, and all six reading themes held to AAA because that text is read for hours rather than glanced at. Both halves of a pair are checked — an accent against its canvas and the label drawn on the accent, because a gate that only checks one of those is checking half.

Full system in docs/design.md.

Build from source

Prerequisites

For Needs
iOS macOS 26+, Xcode 26+, brew install xcodegen swiftlint
Android JDK 21, Android SDK with platform 37 and build-tools
macOS app macOS 26+, Xcode 26+, brew install xcodegen
Windows app Windows 11 24H2, Visual Studio 2026 or the .NET 10 SDK with the winapp CLI, Rust with the MSVC target
Linux app Rust 1.92+, GTK 4.14+ and libadwaita 1.5+ development packages — see Linux
Contract, tokens and the harnesses Node 22 or newer (.nvmrc says 24), pnpm 11, Python 3 for the fixture generator

Everything

git clone --recurse-submodules https://github.com/me-cedric/StoryArc.git
cd StoryArc
pnpm install
pnpm check          # the gates, then both apps' lint, tests and test-target builds

iOS

cd apps/ios
xcodegen generate            # StoryArc.xcodeproj is generated, not committed
open StoryArc.xcodeproj
pnpm test:ios         # StoryArcKit on the host — fast loop, no simulator
pnpm test:ios:epub    # StoryArcEpub, which is iOS-only and needs one
pnpm build:ios:tests  # the UI tests — nothing else compiles them

Android

Gradle needs a JDK 21 and the SDK, and neither is on the path by default on a Mac: Homebrew's JDKs are keg-only, and /usr/bin/java is a stub that reports "Unable to locate a Java Runtime". The pnpm scripts go through scripts/gradle.mjs, which finds both and writes the gitignored apps/android/local.properties a fresh checkout lacks:

pnpm lint:android && pnpm test:android    # or: pnpm gradle :feature:library:testDebugUnitTest
pnpm build:android:tests                  # the instrumented tests — nothing else compiles them

A bare ./gradlew still needs both exported, because the wrapper needs a JVM before it can read any property file:

export JAVA_HOME=$(/usr/libexec/java_home -v 21)
export ANDROID_HOME=${ANDROID_HOME:-$HOME/Library/Android/sdk}
cd apps/android && ./gradlew lint test assembleDebug

macOS

The Mac app is a native SwiftUI app with its own project. It consumes apps/ios/Packages/StoryArcKit by path and leaves apps/ios untouched.

brew install xcodegen
pnpm build:macos          # xcodegen generate, then xcodebuild build, scheme StoryArc

Builds are ad-hoc signed and run locally. apps/desktop-macos/packaging/make-dmg.sh makes the release disk image from a built app. See apps/desktop-macos.

Windows

A WinUI 3 app on .NET 10, over the shared Rust core. Windows 11 24H2 is the floor. The interop library and its tests build and run on any OS that has the .NET 10 SDK and Rust. The release lane publishes it unpackaged and self-contained, and apps/desktop-windows/packaging/StoryArc.iss (Inno Setup 6) makes the installer.

pnpm test:desktop:core        # cargo test -p storyarc-core -p storyarc-ffi
pnpm test:desktop:interop     # builds storyarc-ffi, then dotnet test
pwsh apps/desktop-windows/build.ps1      # on Windows: core, interop tests, WinUI project

See apps/desktop-windows.

Linux

A GTK4 and libadwaita app in Rust, over the same core. The floor is GTK 4.14 and libadwaita 1.5, which is Ubuntu 24.04 and Pop!_OS 24.04. Every other target is newer. You need Rust 1.92 or newer: install it with rustup, because Ubuntu 24.04 packages an older one.

Distro Install the build dependencies
Arch, Manjaro sudo pacman -S --needed base-devel gtk4 libadwaita libarchive rustup, then rustup default stable
Ubuntu 24.04, Pop!_OS 24.04 sudo apt install build-essential pkg-config libgtk-4-dev libadwaita-1-dev libarchive-dev curl, then install rustup and run rustup default stable
Fedora sudo dnf install gcc gcc-c++ make pkgconf-pkg-config gtk4-devel libadwaita-devel libarchive-devel rustup, then rustup default stable

For running, add xdg-desktop-portal-gtk (file picker, dark mode) and gnome-keyring (secrets). Later waves also link WebKitGTK 6.0 (libwebkitgtk-6.0-dev, webkitgtk-6.0, webkitgtk6.0-devel).

pnpm build:linux              # cargo build -p storyarc-linux
cargo run -p storyarc-linux   # run it
pnpm test:desktop:core        # the shared core's tests

Wayland first. The page curl runs on Wayland and is absent on X11. On Hyprland, install xdg-desktop-portal-hyprland, xdg-desktop-portal-gtk and a Secret Service daemon, and set dark mode with gsettings set org.gnome.desktop.interface color-scheme prefer-dark. The window class is com.mecedric.StoryArc. On NVIDIA, GSK_RENDERER=ngl is the fallback. Details for GNOME, KDE Plasma, COSMIC and Hyprland are in apps/desktop-linux.

Prove a distro build inside a container with that distro's own packages:

apps/desktop-linux/scripts/container-build.sh ubuntu-24.04    # or: arch | manjaro | fedora

The Flatpak manifest is a skeleton until cargo-sources.json is generated:

flatpak-builder --user --install --force-clean build-flatpak apps/desktop-linux/build-aux/com.mecedric.StoryArc.json

Accessibility

pnpm check cannot see what a screen reader hears, so there is a second check for that. With the app open on a connected device or emulator:

pnpm a11y:android   # reads the accessibility tree off the device

It reports an actionable control with no name, a name that is a raw value rather than a description, and a target below 48dp. It found all three of those in screens that looked correct in a screenshot.

Run it on every screen a change touches. It reads whatever is on screen at the moment you run it, so navigate first. pnpm smoke:android walks the app's routes and asks logcat whether the process died, and pnpm pseudo:android walks nine of them under a pseudo-locale to find text that leaves its row.

A library to test against

Nothing on a screenshot means much against an empty library, and a folder that only one machine has is not a fixture. This writes one:

pnpm corpus ~/StoryArcCorpus     # or --simulator, into the booted app's Documents

It generates seventeen publications, one per format the app claims to read — CBZ, CBT, a folder of images, reflowable and fixed-layout EPUB, and PDF — with a series to exercise "next in series", pages large enough that a held zoom visibly re-decodes them, a comic in a codec no device decodes, a half-copied one, and two deliberately unreadable files that fail for different reasons, so two refusals have two sentences. --count 200 pads it into a long library, so sectioning has something to section. pnpm corpus:check verifies the bytes it writes, and runs as part of pnpm check.

A catalogue to test against

opds-catalog cannot be verified from a screenshot of a parser. This serves the corpus above as a real OPDS catalogue, so the whole walkthrough — type an address, get past a sign-in, read a book — happens against a server:

pnpm opds ~/StoryArcCorpus       # port 4444 unless --port says otherwise
Route What it exercises
/opds A navigation feed, OPDS 1.2
/opds/all, /opds/series An acquisition feed, paginated, with a language facet; a navigation feed of series
/opds2 The same catalogue as OPDS 2.0 JSON
/private A 401 answered by Basic ada / lovelace
/bearer A 401 answered by Bearer storyarc-token
/page, /empty The two refusals the spec requires by name
/files/<name> The publication itself, byte-ranged — and, on demand, ranged badly, the way a NAS sometimes does
/redirect/<name> A 302 to the file, so a redirect mid-stream is reachable
/flaky/… Fails twice with 503 then succeeds, so the retry-with-backoff can be watched

There is a Kavita mock beside it, for the parts of kavita-server that OPDS cannot express:

pnpm kavita ~/StoryArcCorpus

It answers on port 5000 with API key storyarc-test-key, reporting version 0.8.3, two libraries and the corpus arranged as series and chapters. It is not a reimplementation of Kavita — it is the shape of the endpoints StoryArc calls, so the walkthrough can be watched. StoryArc's Kavita client is built against Kavita's documented API and this mock, not against a live server. Anyone who points it at a real Kavita and finds a difference should correct the mock as well as the client, so the next person inherits the correction.

And a real SMB server, because network-share deserves a real one:

pnpm smb ~/StoryArcCorpus        # Samba on 4445, share "Comics", your user, password "lovelace"
pnpm smb --encrypted             # the same on 4446 with encryption required, to watch the refusal

It needs Homebrew's Samba. impacket was tried first and rejected: it derives its signing key without NTLM key exchange, so every correct client refuses its answers and the authenticated path could not be proved.

The simulator and the emulator both reach these: http://localhost:4444/opds on iOS, and http://10.0.2.2:4444/opds from an Android emulator. iOS permits plain HTTP here because NSAllowsLocalNetworking is set for self-hosted servers; a catalogue on the public internet still has to be HTTPS.

Photographing a screen

A change a reader can see owes a screenshot, and both platforms have a camera that walks to the screen rather than photographing whatever happens to be in front of it:

pnpm capture:android --list                                          # the routes
pnpm capture:android Downloads --out shot.png --dark                    # one frame, and it puts the device back
pnpm capture:ios --out .build/screens/after-x --appearance dark   # drives ScreenshotTests, lifts every frame out of the result bundle

--out is a file on Android and a directory on iOS, because one drives a route and the other a whole UI-test walk. The Android one restores the font scale and the appearance even when the capture fails, which is the part a person forgets.

Contributing

docs/openspec/STATUS.md says how much of each specified capability exists, scenario by scenario, and its "Completion audit, 2026-10-23" section is the current list of what is done and what is not. Every mobile capability is built on both platforms; what stays open is owner device steps, frames, and the desktop walks that need a Linux or a Windows desktop. Twelve changes are in flight (foldables-and-iphone-duo, built on 2026-10-24, waits on owner steps) and twenty-seven are archived under docs/openspec/changes/.

The rule that shapes everything else: every behaviour is specified before it is built. If what you want to add is not in docs/openspec/specs/, propose it first rather than implementing it and writing the spec afterwards.

The OpenSpec root is docs/openspec, so the CLI resolves it only from docs/. Run cd docs first, or use the pnpm spec:* scripts, which do it for you.

pnpm openspec:workflows   # if your agent tooling is not set up yet
# then, in Claude Code or Codex:
/opsx:propose "add support for <thing>"

Not openspec init: it writes the agent directories beside the root, and this root is docs/openspec while .claude/ and .github/ are at the top. pnpm openspec:workflows renders the same twelve workflows from the installed CLI's own templates into the right place, and pnpm lint fails when they drift from it. /opsx:apply implements an approved change; /opsx:verify reads the code against the requirements before /opsx:archive retires it.

pnpm spec:validate checks that the artifacts a change has are well-formed. pnpm spec:guard checks that it has the ones it should — the two are not the same question, and a change holding only a proposal passes the first. pnpm delta:drop and pnpm partial:tasks, both in pnpm lint, catch the two ways a change has quietly deleted a requirement or announced itself finished here.

A change a user can see also owes a screenshot from a booted simulator or emulator — a #Preview or @Preview is not proof. On Android it owes a clean pnpm a11y:android on the screens it touched, for the same reason: a screenshot shows what the screen looks like and says nothing about what it announces. Details in CONTRIBUTING.md and AGENTS.md.

Privacy

StoryArc has no backend. There is no account, no analytics, no crash reporting and no telemetry of any kind. Data leaves your device only to the servers you configured yourself. Credentials go to the iOS Keychain or the Android encrypted store, and are redacted from every log and diagnostic before the string leaves memory. One switch is the exception, and it is off until you turn it on: a cover lookup that asks the open catalogues the switch names — Open Library, Cover Art Archive, Audnexus, AniList and MangaUpdates — and no host besides them. It is not connected to the library yet. What a publication's own HTML may reach is decided in ADR-0015, and SECURITY.md says how to report a problem.

Licence

MIT.

Author

Built by Cédric Meyer — github.com/me-cedric.

StoryArc is completely free, with no paid tier and no advertising. If it is useful to you, a coffee on Ko-fi is always appreciated and never required.

About

Native comic, manga and ebook readers for iOS and Android — read local files, SMB shares, OPDS catalogues and Kavita servers, offline-first

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

15 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages