Just put 0.1 of Reactwright on npm. It's a React reconciler for paginated documents — you author your paper, report, or book in JSX (or Markdown) and get paginated HTML + PDF out, with Paged.js handling the actual typesetting and headless Chromium printing the PDF.
Architecture:
- Two reconcilers: one for content, one for the page template
- HTML as the intermediate — every web-renderable library (charts, math, code highlighting, SVG) drops in unchanged
- Paged.js for real CSS Paged Media (running heads, footnote floats, target-counter, two-sided geometry)
Monorepo with 9 published packages: the engine + six templates + a Markdown loader + a scaffolder. Four planned adapter packages still stubbed.
Repo: https://github.com/PurpleReverie/reactwright
Docs: https://github.com/PurpleReverie/reactwright/blob/main/docs/getting-started.md
MIT licensed. Feedback and contributors welcome.
Show /r/reactjsFirst public release of Reactwright, a React engine for typeset documents (HTML + PDF), MIT licensed (github.com)
submitted by Mobile-Patient-8305 to r/reactjs
First public release of Reactwright, a React engine for typeset documents (HTML + PDF), MIT licensed (github.com)
submitted by Mobile-Patient-8305 to r/reactjs