User Guide

Reading and Built-in Readers

Read CBZ chapters, volumes, EPUB books, and PDF documents directly in Bunko, switch between chapter and volume progress, and map custom Kavita file layouts.

Bunko includes two built-in browser readers so you can read immediately from your local library or linked reading sources without leaving the interface.

CBZ chapter and volume reader

Comics, manga, manhwa, and manhua open in the image reader (/read/<chapter>), serving pages either from your local Kavita archives under /library or through Bunko's authenticated Suwayomi page proxy:

  • Automatic reading direction — Defaults to the work's registered direction: right-to-left (rtl) for manga, vertical continuous strip (vertical) for manhwa and manhua, and left-to-right (ltr) for comic. You can override the mode inside the reader.
  • Fast local caching — Pages are streamed with strong ETag / 304 headers and share a bounded per-tenant disk cache with the chapter downloader.
  • Safe local reads — Every archive path is validated against your account's reserved /library media root with realpath containment checks before any byte is read.
  • Progress persistence — Your exact page position saves automatically (PUT /api/reader/progress) and flushes on chapter completion or exit. Starting a PLANNING work automatically moves it to READING.

EPUB and PDF book reader

Books, light novels, and web novels owned in Kavita open directly in the built-in book reader (/book/<file>?media=<id>):

  • EPUB rendering — Bunko reads the archive's spine order, table of contents (EPUB 3 nav or NCX), and relative assets (/api/books/file/<media>/<file>/<path>). Before rendering inside a same-origin frame, Bunko strips scripts, inline event handlers, nested frames, <base>, and meta-refresh tags, serving XHTML under Content-Security-Policy: script-src 'none'.
  • PDF rendering — Served with HTTP byte-range (206 Partial Content) support so large documents load page by page, with an optional direct download flag.
  • Reader preferences — Theme, font family, text size, line spacing, column width, and paginated vs. scroll layout are stored locally per device in your browser.
  • Continue reading — Reaching 99.5% of a numbered volume increments your read volume count and feeds the Pick up where you left off shelf (/api/continue).

Chapter vs. volume modes

Some series are collected as individual chapters while others are stored as complete volumes (tomes). Bunko tracks both cleanly without guessing or renaming files:

  • Conservative volume detection — Importing a single chapter that happens to carry a volume tag does not mark the entire volume owned. Only archives whose filename explicitly represents a volume without a chapter number count as complete volumes automatically.
  • Manual volume declaration (ownedAsVolumes) — If your existing Kavita files are numbered 1, 2, 3… but represent full volumes rather than chapters, switch the work's progress unit and declare the current stock as volumes in the work's settings. Bunko retypes that inventory cleanly without renaming or rewriting a single file on disk.
  • Separate progress counters — ownedChapterCount, ownedVolumes, chapterRead, and volumeRead are tracked independently so switching units never corrupts your history.

Manual Kavita file mapping

When an existing Kavita series uses irregular filenames, split omnibuses, or mismatched numbering, open the work's Kavita file mapping (kavitaMap):

  1. Bunko lists every chapter (c:<n>) and volume (v:<n>) indexed by Kavita along with its actual filename.
  2. Assign each file to a chapter or volume range (from–to) or exclude bonus files (null).
  3. Owned counts, missing chapter badges, and the built-in reader immediately follow your custom mapping without moving files in Kavita.

External reading progress source

Under Settings, you can choose whether external reading progress syncs from Suwayomi (default) or Kavita (Settings.progressSource):

  • suwayomi — Reads the highest chapter marked read across linked sources and marks chapters you finish in Bunko's reader as read in Suwayomi.
  • kavita — Pulls completed numeric chapters from Kavita's reading progress API (pagesRead >= pages) while keeping partial reads reflected in lastReadAt.

Bunko's own built-in reader progress always counts regardless of which external progress source you pick.