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 point | payas-reader.html — single HTML file |
| Stack | HTML5 · CSS3 · Vanilla JavaScript ES2022 |
| Dependencies | Bootstrap 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 |
| Storage | localStorage — settings (payas_cfg) and bookmarks (payas_bm, keyed by file hash) |
| PDF rendering | PDF.js with lazy IntersectionObserver loading — only visible pages are rendered |
| Settings | Font 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 shortcuts | Ctrl+F find · Ctrl+B sidebar · F10 focus mode · F11 fullscreen · Ctrl+P print · ←/→ page |
| Developer | Saman Wijesinghe |
| License | MIT |