Skip to content

Add a React PDF starter with automatic previews and cleanup - #20

Merged
krflol merged 1 commit into
mainfrom
examples/react-browser
Oct 6, 2026
Merged

krflol merged 1 commit into
mainfrom
examples/react-browser

Conversation

@krflol

@krflol krflol commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

React applications currently have to assemble their own input-to-preview lifecycle around the browser SDK. This adds a complete React/TypeScript starter using the published Fullbleed 0.3.0 package: automatic or on-demand rendering, editable invoice/report templates, previews and PDF downloads.

The reusable hook aborts superseded work, hides stale downloads, ignores obsolete results, and releases workers and Blob URLs on cancellation or unmount. The project supports nested static deployment paths and preserves the existing document designs.

Validation: strict TypeScript/production builds; 35 real-browser checks each in Chrome, Firefox and Playwright WebKit; the same 35 checks in a React development build with StrictMode. Checks cover real PDF text/page sizes, byte equality with the installed Node package, rapid edits, manual mode, cancellation/recovery, unmount/remount, resource cleanup and 1440/390/320px layouts. A dedicated CI workflow retains PDFs, screenshots and lifecycle observations. WebKit is not branded Safari certification; worker counts describe API handles, not native thread exits.

The engine and npm package versions are unchanged. This is an MIT-licensed example, not a new SDK release.

@krflol
krflol merged commit 9c5c680 into main Oct 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant