@papyrus-sdk/engine-cbz
v0.1.2
Published
Web engine for comic book ZIP archives (`.cbz`). Pages are loaded lazily from the archive and rendered as images.
Maintainers
Readme
Papyrus Engine CBZ
Web engine for comic book ZIP archives (.cbz). Pages are loaded lazily from
the archive and rendered as images.
Install
npm install @papyrus-sdk/engine-cbz @papyrus-sdk/core @papyrus-sdk/typesUsage
import { CBZEngine } from "@papyrus-sdk/engine-cbz";
const engine = new CBZEngine({ maxCachedPages: 12 });
await engine.load({ type: "comic", source: { uri: "https://example.com/book.cbz" } });maxCachedPages limits the number of extracted page images kept in memory.
The default is 12.
Rust/WASM experiment
The repository also contains @papyrus-sdk/engine-cbz-rust, an experimental
adapter that uses the Rust/WASM archive core and falls back to this zip.js
implementation if the WASM runtime cannot initialize. The regular CBZEngine
remains the stable comparison path.
