The flipbook library for modern sites
zinejs turns PDFs and images into a realistic flipbook: smooth, touch-friendly, lightweight, and ready to embed on any website in minutes.
Install
pnpm add @zinejs/core @zinejs/pdfPDF flipbook example with source code .
Images without PDF? Just install @zinejs/core. Click to see images flipbook example .
What you get with zinejs
Lightweight
A small core with lazy renderer chunks. Image books stay light; PDF is a separate package. Built for marketing pages, not only heavyweight apps.
Images & PDFs
Ship catalogs, magazines, lookbooks, and reports as a book your readers can actually flip through.
Feels like paper
Smooth page turns, corner grabs, zoom and pan. The gestures people expect from a real flipbook.
Configurability
Renderer, curl, spreads, zoom, deep links, discoverability hints, context menu, and a full controls bar: tune the book without forking the library.
Extensibility
Plug in curl models, pick control items, or drive the book from your own UI with a typed programmatic API.
Accessibility
Respects prefers-reduced-motion with a simpler, shorter page turn. Built-in controls use labels, focus styles, and a proper share dialog.
Light & dark mode
Toolbar, arrows, and the loading overlay follow the page color-scheme by default. Pin light or dark, or retheme with CSS variables.
Drop it in anywhere
npm, script tag, or CDN. React, Vue, Nuxt, Next, or plain HTML: same API either way.
WebGL with CSS fallback
Realistic curls when WebGL2 is available; a plain CSS renderer when it is not. You can force either path.
RTL ready
Right-to-left reading for Arabic, Hebrew, and other locales, with matching control arrows.
Built-in reader chrome
Optional toolbar and right-click menu: prev/next, zoom, fullscreen, share, search, outline, thumbnails, print, and download when the source supports them. Hide any control with hideControls.
Typed by default
Ships TypeScript types. Autocomplete for options, events, and methods in modern editors.
Ship a flipbook today
Follow the quickstart, try the examples, or grab a commercial license when you’re ready for production.