skip to content
alanvdev
built
NEXTTS

Kaikyo

four reading modes, two-page view that detects wide spreads, progress by arc, and cache with expiry.

A One Piece reader built for myself. It has no backend of its own: the Next routes query a proxy to the chapter sources, and all reading progress lives in the browser.

It has four reading modes (continuous scroll, scroll with gaps, single page and two-page), plus pinch zoom, fullscreen and keyboard shortcuts.

Two-page mode detects wide spreads

In two-page mode the reader advances two at a time, except when the page is a wide spread: there it advances one. Without that, a single spread throws off the rest of the chapter and you read every pair offset.

Cache in three layers

The client holds chapters for thirty minutes, the Next server for an hour, the latest-chapter count for five minutes, and images for a day. It is a personal reader: there is no reason to ask for the same thing twice.