Bundle size
Published entry sizes for @zinejs/core, @zinejs/pdf, and pdfjs-dist.
Measured from the published files on jsDelivr (minified + gzip). Pick a version in each row to compare releases.
Image-only books need @zinejs/core only. For PDFs, @zinejs/pdf plus pdfjs-dist is the whole stack: no Three.js, no jQuery, no extra flipbook runtime. pdf.js stays external (not inlined into the plugin bundle).
| Package | Min | Gzip | Version |
|---|---|---|---|
| @zinejs/core Flipbook engine (lazy CSS / WebGL2 chunks) | |||
| @zinejs/pdf PDF source plugin (pdf.js not inlined) | |||
| pdfjs-dist pdf.js runtime (external dependency of @zinejs/pdf) |
@zinejs/core / @zinejs/pdf use dist/index.js; pdfjs-dist uses build/pdf.min.mjs (the worker is a separate file).
Why this matters
- Marketing and catalog pages often already ship heavy assets; the flipbook should not dominate JS.
- Core stays lean; WebGL/CSS renderers load on demand.
- PDF is opt-in via
@zinejs/pdf: pdf.js only, no Three.js or jQuery.