Payas Web Kit · Viewer

Payas Reader

A client-side document viewer that handles PDF, EPUB, Markdown, and plain text — all in the browser with no server required. Bookmarks, search, TOC, focus mode, and six accent colours.

id::payas-reader · stable
KitPayas Web Kit
PlatformBrowser · Web
FormatsPDF · EPUB · MD · TXT
PDF enginePDF.js 3.11
EPUB engineepub.js 0.3.93
Accent colours6 swatches
LicenseMIT
Formats
4
PDF · EPUB · MD · TXT
Bookmarks
Persistent
Per file · localStorage
Accent colours
6
Customisable theme tint
Themes
2
Light · Dark
features

What Payas Reader does

Four document formats
PDF via PDF.js (lazy-loaded pages), EPUB via epub.js (TOC extraction, chapter navigation), Markdown via marked.js, and plain text with preformatting.
Persistent bookmarks
Save bookmarks per file — keyed by file hash. Jump back to any bookmark from the sidebar panel. Bookmarks survive browser restarts.
Find & search
Full-text search with match highlighting, match counter (n/m), and keyboard navigation between results. Open with Ctrl+F or the toolbar button.
Focus mode
Press F10 to hide the toolbar, find bar, and status bar for a distraction-free reading experience. Any key or mouse movement briefly reveals the UI.
Table of contents
Automatic TOC extraction for EPUB chapters and Markdown headings (levels 0–3). Click any entry in the sidebar to jump directly to that section.
Typography settings
Font family (DM Sans, Fraunces, JetBrains Mono, Georgia), font size 12–28 px, line height, max content width, justification, hyphenation, and 6 accent colour swatches.
technical · details

Technical details

Entry pointpayas-reader.html — single HTML file
StackHTML5 · CSS3 · Vanilla JavaScript ES2022
DependenciesBootstrap 5.3.3 · Bootstrap Icons 1.11.3 · PDF.js 3.11.174 · epub.js 0.3.93 · jszip 3.10.1 · marked.js 9.1.6 · Google Fonts
StoragelocalStorage — settings (payas_cfg) and bookmarks (payas_bm, keyed by file hash)
PDF renderingPDF.js with lazy IntersectionObserver loading — only visible pages are rendered
SettingsFont family · font size 12–28 px · line height · max width · justify · hyphens · progress bar · PDF zoom 0.5–3× · PDF quality 0.5–2×
Keyboard shortcutsCtrl+F find · Ctrl+B sidebar · F10 focus mode · F11 fullscreen · Ctrl+P print · ←/→ page
DeveloperSaman Wijesinghe
LicenseMIT