Skip to content
F

Foliate JS

Render e-books in the browser

by johnfactotumFree

#235in Reading
0In stores

Description

foliate-js is a JavaScript library for displaying e-books in a web browser, created by the author of the Foliate e-book reader and used in i…

Highlights

  • Renders EPUB, MOBI, AZW3, FB2 and CBZ
  • Experimental PDF support via PDF.js
  • Native ES modules with no build step or hard dependencies
  • Does not load whole files into memory
  • Extensible through a book interface
  • Demo reader included

Ratings & Reviews

No ratings yet

Be the first to rate Foliate JS.

People also visit

F

Foliate

Read e-books in style

Reading
Launch
E

Epub.js

Enhanced eBooks in the browser

Utilities
Launch
1

1paragraph

A browser-based, offline-first ePub reader

Reading
Launch
F

Foliate

A simple and modern eBook viewer

Reading
Launch
R

React Reader

An ePub-reader for React, powered by Epub.js

Utilities
Launch
B

Book Story

Book's Story — Material You eBook reader built with Jetpack Compose

Reading
Launch

Foliate JS FAQ

Which formats does it support?

EPUB, MOBI, KF8 (AZW3), FB2 and CBZ. PDF support is experimental and requires PDF.js.

Is it stable?

It works reasonably well and is used in stable Foliate releases, but the library itself is not stable. The API may change at any time.

How should I add it to my project?

There is no release yet, so the author recommends including it as a git submodule. It uses native ES modules, so you can import files directly without a build step.

Is there a demo?

Yes. Serve the repo and open reader.html, or use the online demo on GitHub. It is incomplete and lacks features such as keyboard shortcuts.

Why do fonts need HTTPS?

Deobfuscating fonts uses SHA-1 via Web Crypto, which only works in secure contexts. Without HTTPS you must supply your own SHA-1 implementation.

What are the best Foliate JS alternatives?

Popular alternatives to Foliate JS include Foliate, 1paragraph and Foliate. See all Foliate JS alternatives

Developer Stuff

Badges