EPUB Reader on your website.
You can publish EPUB books on the web, with full-featured viewer running on web browser. And you can embed it in other webpages (like YouTube videos).
- EPUB 3+ and 2 compliant. Supports both fixed-layout and reflowable books of various language.
- Made with JavaScript. Works compatibly with all major web browsers on various OS/devices.
- Open source software released under the MIT License.
- How to Setup & Read/Publish EPUB Books (for Users/Publishers)
- How to Arrange Development Environment (for Developers)
- License
- Special Thanks
- Supported and Sponsored by
Bibi supports 3 ways to read/publish EPUB books:
- Read in browsers on your offline machine.
- Publish on the web to have your books read by someone.
- Use as an online EPUB viewer for your or visitors' local EPUBs.
In all cases,
- Download Bibi from GitHub release page or Bibi website.
- And unzip it at first.
The folder structure and default public URL has changed in Bibi v1.0.0. But don't worry. You still can use not only the new style URL but also the same old style URL as before.
If you already published books on the web with BiB/i which version is older than v1.0.0, and want to update Bibi to v1.0.0 or newer, but do not want to change the public URLs of the books,
- Please download
Bibi-vX.Y.Z_with_BackCompatKit.zip
, and follow the document in it.
- Open
bibi/index.html
in your browser, and - Drag an EPUB book and drop it into the window.
- That's all!
Demo.
You can publish both unzipped folder and zipped EPUB archive.
Using unzipped folder is recommended for the book which is heavy or contains many files. Using zipped EPUB file is recommended for the book which is light and contains less files.
In both ways, at first, upload bibi
and 'bibi-bookshelf' folders to the same directory on your web server.
bibi
contains all programs of Bibi, and 'bibi-bookshelf' is for the storage of the books you upload.
You can use different directory for the bookshelf instead of 'bibi-bookshelf' by editing "bookshelf" option in 'bibi/presets/default.js'.
- Upload
bibi
and 'bibi-bookshelf' folders to the same directory on your web server. - Unzip an EPUB book,
- Change the file extension from
.epub
to.zip
(BOOKNAME.epub
->BOOKNAME.zip
), and - Unzip the file with some tool.
- Change the file extension from
- Upload the unzipped folder
BOOKNAME
intobibi-bookshelf
directory, and - Access to
https://your.web.site/somewhere/bibi/?book=BOOKNAME
by your browser. (note that it has no extension) - Or embed code below into your blog entry or other webpages, and visit the entry.
<a href="https://your.web.site/somewhere/bibi/?book=BOOKNAME" data-bibi="embed" data-bibi-style="[[ CSS for embeded Bibi frame, as you like ]]">[[ Title of the Book ]]</a><script src="https://your.web.site/somewhere/bibi/and/jo.js"></script>
- Upload
bibi
and 'bibi-bookshelf' folders to the same directory on your web server. - Upload your EPUB book (ex.
BOOKNAME.epub
) tobibi-bookshelf
directory, and - Access to
https://your.web.site/somewhere/bibi/?book=BOOKNAME.epub
by your browser. - Or embed code below into your blog entry or other webpages, and visit the entry.
<a href="https://your.web.site/somewhere/bibi/?book=BOOKNAME.epub" data-bibi="embed" data-bibi-style="[[ CSS for embeded Bibi frame, as you like ]]">[[ Title of the Book ]]</a><script src="https://your.web.site/somewhere/bibi/and/jo.js"></script>
- Upload
bibi
folder on your web server. - Navigate visitors to
https://your.web.site/somewhere/bibi/
. - Visitors can read one's local EPUBs by draging and dropping EPUBs into the window.
If you want to terminate this feature, set "no" to "accept-files" in bibi/presets/default.js
.
- Clone this repository.
- $
cd <the local repository>
- $
npm install
And files and folders are generated in __dist
folder.
- $
npm start
- webpack generates development version of Bibi to
__dist
folder, and start to watch changes of the files in__src
folder. - BrowserSync webserver launches and navigate your browser to
http://localhost:61671/bibi/?book=
.
- webpack generates development version of Bibi to
- Edit source files.
- If you modify source files in
__src
folder, development version of the file(s) are updated in__dist
folder automaticaly. - BrowserSync reloads your browser(s) or inject changes of CSS.
- If you modify source files in
Files in __dist
folder generated with npm start
are development version.
Please don't forget to run npm run build
and build production version before you upload.
Distribution | Source |
---|---|
__dist/bibi/*.html |
__src/bibi/*.html |
__dist/bibi/and/jo.js |
__src/bibi/and/jo.js + __src/bibi/and/jo.scss |
__dist/bibi/extensions/** |
__src/bibi/extensions/** |
__dist/bibi/presets/*.js |
__src/bibi/presets/*.js |
__dist/bibi/resources/scripts/bibi.js |
__src/bibi/resources/scripts/*.js + __src/bibi/resources/scripts/bibi.book.scss |
__dist/bibi/resources/styles/bibi.css |
__src/bibi/resources/styles/*.scss |
__dist/bibi/wardrobe/**/*.css |
Read documents in __src/bibi/wardrobe/README-DRESS_ja (Sorry..., currently README is Japanese only) |
Files in the Distribution
column of the table are overwritten with the files updated by npm start
or npm run build
.
If you want to modify them, please edit files in the Source
column instead of editing these files in __dist
directly.
- $
npm run build
- webpack generates production version of Bibi to
__dist
folder. - You can upload them to your online webserver.
- webpack generates production version of Bibi to
- $
npm run make:distribution-package
- webpack generates production version of Bibi to
__dist
folder. - gulp generates zipped archive to
__archives
folder.
- webpack generates production version of Bibi to
- Copyright © Satoru MATSUSHIMA (@satorumurmur)
- Licensed under the MIT License.
- Core:
- sML.js ... Copyright © Satoru MATSUSHIMA (Licensed under the MIT License.)
- Material Icons ... Copyright © Material Design Authors / Google Inc. (Licensed under the Apache License version 2.0.)
- Extensions:
- Bibi Zip Loader ... Copyright © Lunascape (Licensed under the MIT License.)
- JSZip ... Copyright © Stuart Knightley (Dual licensed under the MIT License or the GPLv3.)
- JSZipUtils ... Copyright © Stuart Knightley (Dual licensed under the the MIT License or the GPLv3.)
- JS-YAML ... Copyright © Vitaly Puzrin (Licensed under the MIT License.)
- Polyfills:
- classlist-polyfill ... by Yola Inc. (Released into the public domain under the Unlicense)
- text-encoding-utf-8 ... by Erik Arvidsson (Released into the public domain under the Unlicense.)
- IntersectionObserver polyfill ... Copyright (c) W3C (Licensed under the W3C Software and Document License.)
- document.currentScript Polyfill ... Copyright © Adam Miller (Licensed under the MIT License.)
- custom-event-polyfill ... Copyright © Evan Krambuhl (Licensed under the MIT License.)
- Native Promise Only (NPO) ... Copyright © Kyle Simpson (Licensed under the MIT License.)
- Polyfill Array.prototype.includes ... Copyright © Kevin Latusinski (Licensed under the MIT License.)
- String.prototype.padStart ... Copyright © Khaled Al-Ansari (Licensed under the MIT License.)
- url-polyfill ... Copyright © Valentin Richard (Licensed under the MIT License.)
Thanks to the contributors and the users around the world.
- Bibi v1.0.0 was developed with greateful support and sponsoring from Lunascape (and their parent company MEDIA DO Co.,Ltd. who absorbed and merged them).
- Lunascape also developed Bibi Zip Loader especially for Bibi, which realized fast progressive loading of zipped EPUBs.