A framework-agnostic, universal document renderer with optional chunked loading
polyrender.wisp.place/
1# @polyrender/example-basic
2
3Vite + vanilla TypeScript example for [`@polyrender/core`](../../packages/core/README.md). Demonstrates file-picker based document viewing with the built-in toolbar.
4
5A live demo is coming soon.
6
7## Running locally
8
9```bash
10# From the monorepo root, build all packages first:
11pnpm build
12
13# Then start the Vite dev server:
14cd examples/basic
15pnpm dev
16```
17
18To build for production:
19
20```bash
21pnpm build
22pnpm preview
23```
24
25## What it shows
26
27- Opening a local file via a file input
28- Auto-detecting the document format from the filename
29- Rendering with the built-in dark-themed toolbar
30- Configuring the `pdfjs-dist` worker URL via Vite's `?url` import
31- Comic book archives (`.cbz`, `.cbr`, `.cb7`, `.cbt`) with JPEG XL and TIFF support enabled via `@jsquash/jxl` and `utif`
32- Word wrap / fit-to-width toolbar toggle (active for code, text, and comic files)