About EPub
EPub is a standard format for e-books, and most of the e-books I read are usually in this format. On the phone I generally use "read more" Reading EPub ebook, on Windows can not find the use of the software, so a long time ago want to toss a bit, to develop an EPub ebook reader. These two days, while free, made a simple reader. Although there are some bugs, the basic functionality is complete. Own development has many advantages, as long as slightly modified, you can export HTML or export Markdown functions, convenient to save reading notes, which is more useful than most software.
Epub.js Introduction
EPub, as a standard format, naturally has a lot of open source implementations. Javascript-based libraries are few, and Epub.js is the best. The use is relatively simple, the official examples and third-party examples are also rich, interested in their own to see, there is not much to say.
IndexedDB
The first time you use IndexedDB in your project, you have used Localstorage as a storage scheme. The reason for using IndexedDB is because Localstorage only has 5 m of storage space and can only select IndexedDB.
I want to use Promise package IndexedDB, but the ability is not enough, no success. Feel IndexedDB compatibility or not how, wasted half a day in the debugging above, or did not succeed, the result of upgrading the browser to solve, but also drunk. Project to do a good time to find a package library localforage, feel good, can avoid less mining pits, recommended here.
Project Introduction
Epub-front is a Web-version EPub ebook reader, developed using Vue, Epub.js, IndexedDB, and rangy.
You can click here to use this reader to read EPub ebooks.
Some features may be added in the near future, such as exporting Markdown, editing ePub, and watching the mood.
Welcome to star, PR.
Make an ebook reader with Vue and epub.js