A framework-agnostic, universal document renderer with optional chunked loading
polyrender.wisp.place/
1# @polyrender/example-vanilla
2
3Vanilla TypeScript example for [`@polyrender/core`](../../packages/core/README.md), built with esbuild.
4
5A hosted version of this example is available at **https://polyrender.wisp.place/**.
6
7## Running locally
8
9```bash
10# From the monorepo root, build all packages first:
11pnpm build
12
13# Then serve the example:
14cd examples/vanilla
15pnpm serve
16```
17
18Or use watch mode during development:
19
20```bash
21pnpm dev
22```
23
24## What it shows
25
26- Opening a local file via a file input (PDF, EPUB, DOCX, CSV, code, comic archives, and more)
27- Auto-detecting the document format from the filename
28- Rendering with the built-in dark-themed toolbar
29- Comic book archives (`.cbz`, `.cbr`, `.cb7`, `.cbt`) with JPEG XL and TIFF support enabled via `@jsquash/jxl` and `utif`
30- Word wrap / fit-to-width toolbar toggle (active for code, text, and comic files)