flipturn.

AN INDEPENDENT PAGE-TURNING LIBRARY

A new chapter
for your content.

Give your PDFs and images the feeling of a book. A page-turning library for catalogs, portfolios and publications on the web.

npm install flipturn

v0.1.0Free & open sourceMIT license

One library. Your way to build.
  • JavaScript
  • React
  • Next.js
  • Standalone HTML
TypeScript definitions included
A REAL BOOK, RIGHT HERE

Go on. Turn a page.

The open web · Sample PDFDrag a page or click to turn
Loading book…

Your files stay in your browser. The demo does not upload them.

Make it yours: open a PDF or select several images above. For keyboard navigation, focus the book and use the left and right arrow keys.

Fits into your project.

Use an ESM import, a React component or a standalone script. You own the surrounding UI; FlipTurn handles the pages.

Two sources. One reader.

A PDF becomes a book. An image list becomes a catalog, with an optional separate cover. JPEG, PNG and WebP are supported.

Room for every screen.

Automatic single and double page layouts, on-demand rendering and a bounded canvas cache. Touch, mouse and keyboard navigation.

FROM ZERO TO FIRST PAGE

A small API.
A good place to start.

Choose your content and your stack. Copy an example that matches the book you want to make.

What are you opening?
PDF.js renders the pages. FlipTurn makes them turn.
reader.js
Loading example…

THE REFERENCE

Your reader, your rules.

Pages start at 1. The same book handle is available in JavaScript and through a React ref.

React view props update in place and retain the current page. Changing the source opens a new document.

BUILT IN THE OPEN

Know what
you’re building on.

MIT-licensed library code. PDF rendering by Mozilla PDF.js, with its licenses included in the distribution.

Browser verification

Chromium, Firefox & WebKit
Automated browser checks
iPhone & Pixel profiles
Emulated mobile checks
Physical iOS & Android devices
Verification pending
React & Next.js
SSR / lifecycle checks and example builds

WebKit automation is not a physical Safari test. Image formats depend on browser support; JPEG, PNG and WebP are covered by fixtures.

A FEW GOOD QUESTIONS

Before you turn
the first page.

The essentials, without a trip through the source code.

Is it free for commercial projects?

Yes. FlipTurn is MIT licensed, including for commercial use. Keep the copyright and license notices when distributing it. PDF.js and its bundled assets include their own license notices.

Do my documents get uploaded?

This demo opens files locally in your browser and does not upload them. In your own app, FlipTurn reads the URLs or files you provide; you choose how to host and deliver that content.

Can I use it without React or a build tool?

Yes. Use the standalone browser script and stylesheet from the package’s dist/ directory. Choose HTML in the examples above for the setup. PDF books also need the matching worker and pdf-assets/ directory.

Show the HTML example
Can I use a custom cover for images?

Pass an ordered image array as src and an optional image as cover. The separate cover is added before the list. Without it, the first image is the cover. Try both in the image catalog demo.

What’s outside the first release?

Zoom/pan, RTL, thumbnails, search, text selection and interactive annotation layers are not included yet. Keyboard navigation and page announcements are available; PDF content is not yet exposed as an accessible text layer.

YOUR CONTENT. A NEW CHAPTER.

A page worth turning.

Start with a PDF or a few images. Make the reader your own.