···11+# @polyrender/example-basic
22+33+Vite + vanilla TypeScript example for [`@polyrender/core`](../../packages/core/README.md). Demonstrates file-picker based document viewing with the built-in toolbar.
44+55+A live demo is coming soon.
66+77+## Running locally
88+99+```bash
1010+# From the monorepo root, build all packages first:
1111+pnpm build
1212+1313+# Then start the Vite dev server:
1414+cd examples/basic
1515+pnpm dev
1616+```
1717+1818+To build for production:
1919+2020+```bash
2121+pnpm build
2222+pnpm preview
2323+```
2424+2525+## What it shows
2626+2727+- Opening a local file via a file input
2828+- Auto-detecting the document format from the filename
2929+- Rendering with the built-in dark-themed toolbar
3030+- Configuring the `pdfjs-dist` worker URL via Vite's `?url` import
+23
examples/react/README.md
···11+# @polyrender/example-react
22+33+Vite + React example for [`@polyrender/react`](../../packages/react/README.md). Demonstrates the `<DocumentViewer>` component and the `useDocumentRenderer` headless hook.
44+55+> **Note:** This example is still a work in progress. A live demo is coming soon.
66+77+## Running locally
88+99+```bash
1010+# From the monorepo root, build all packages first:
1111+pnpm build
1212+1313+# Then start the Vite dev server:
1414+cd examples/react
1515+pnpm dev
1616+```
1717+1818+To build for production:
1919+2020+```bash
2121+pnpm build
2222+pnpm preview
2323+```
+22
examples/vanilla/README.md
···11+# @polyrender/example-vanilla
22+33+Vanilla TypeScript example for [`@polyrender/core`](../../packages/core/README.md), built with esbuild.
44+55+A hosted version of this example is available at **https://polyrender.wisp.place/**.
66+77+## Running locally
88+99+```bash
1010+# From the monorepo root, build all packages first:
1111+pnpm build
1212+1313+# Then serve the example:
1414+cd examples/vanilla
1515+pnpm serve
1616+```
1717+1818+Or use watch mode during development:
1919+2020+```bash
2121+pnpm dev
2222+```