Make an ebook reader with Vue and epub.js

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.