All Projects → eGust → epub-package.dart

eGust / epub-package.dart

Licence: MIT License
A dart package to parse EPUB files

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to epub-package.dart

Leanify
lightweight lossless file minifier/optimizer
Stars: ✭ 694 (+3204.76%)
Mutual labels:  zip, epub
zzlib
zlib-compressed file depacking library in Lua
Stars: ✭ 44 (+109.52%)
Mutual labels:  zip, deflate
mkepub
Simple minimalistic library for creating EPUB3 files
Stars: ✭ 68 (+223.81%)
Mutual labels:  epub, epub-files
comi
ComiGO:Simple, cross-platform manga reader。简单、跨平台的漫画阅读器。シンプルな漫画リーダー。
Stars: ✭ 34 (+61.9%)
Mutual labels:  zip, epub
compress
compress and uncompress for Deno
Stars: ✭ 29 (+38.1%)
Mutual labels:  zip, deflate
box
Box - Open Standard Archive Format, a zip killer.
Stars: ✭ 38 (+80.95%)
Mutual labels:  zip, deflate
pmvvm
A clean & simple MVVM solution for state management using Provider package.
Stars: ✭ 33 (+57.14%)
Mutual labels:  flutter-package
HtmlOrMarkdownConvertedToPdf
📚 NodeJS爬虫 + percollate获取网络教程并转成PDF电子书,持续更新
Stars: ✭ 62 (+195.24%)
Mutual labels:  epub
aspZip
A classic ASP zip and unzip utility class that uses the native zip support from Windows (XP and above) - no components needed
Stars: ✭ 24 (+14.29%)
Mutual labels:  zip
nativeweb
Build your Own Plugin using (PlatformViews) Demo for Flutter Live 2018 Extended Event - Hyderabad
Stars: ✭ 26 (+23.81%)
Mutual labels:  flutter-package
flutter page transition
A rich, convenient, easy-to-use flutter page transition package
Stars: ✭ 55 (+161.9%)
Mutual labels:  flutter-package
bookworm
The Universally Accessible document Reader
Stars: ✭ 50 (+138.1%)
Mutual labels:  epub
flutter-docset
Community driven Flutter Docset for Dash.app
Stars: ✭ 56 (+166.67%)
Mutual labels:  flutter-package
Flutter-Apps
🌀 This is mainly focus on a complete application for production
Stars: ✭ 18 (-14.29%)
Mutual labels:  flutter-package
ZipWriter
Library for creating ZIP archive for Lua
Stars: ✭ 15 (-28.57%)
Mutual labels:  zip
dart-package-analyzer
GitHub Action that uses the Dart Package Analyzer to compute the Pub score of Dart/Flutter packages
Stars: ✭ 44 (+109.52%)
Mutual labels:  flutter-package
editable
This library allows you to create editable tables and spreadsheets with ease, either by providing initial row and column count to display an empty table or use it with predefined rows and column data sets.
Stars: ✭ 85 (+304.76%)
Mutual labels:  flutter-package
credit card validator
A Dart package that validates credit card numbers, expiration dates, and security codes (CVV/CVC) based on the type of credit card
Stars: ✭ 19 (-9.52%)
Mutual labels:  flutter-package
python-zipstream
Like Python's ZipFile module, except it works as a generator that provides the file in many small chunks.
Stars: ✭ 117 (+457.14%)
Mutual labels:  zip
zipread
Fast and memory efficient ZIP reader for Node.js
Stars: ✭ 12 (-42.86%)
Mutual labels:  zip

epub_package

Yet another EPub package for Flutter.

Why another EPUB package?

You may already noticed, there is an awesome epub package on pub that works for all dart platforms. Why I created another EPub package only for Flutter?

Here is the story:

When I started my 2nd experimental Flutter project which is a reader for EPub, I immediately installed epub package. Soon I realized the package depends on archive to handle ZIP format. Everything was fine until I found I have a huge EPub file which is over 120MiB. It requires a lot of memory because archive has to read all data into memory. That's unacceptable to a mobile app.

And here we are. This package also has implemented a very simple reader requires 16KiB memory buffer to parse Zip files.

According to a fantastic answer from stackoverflow:

The ISO/IEC 21320-1:2015 standard for file containers is a restricted zip format, such as used in Java archive files (.jar), Office Open XML files (Microsoft Office .docx, .xlsx, .pptx), Office Document Format files (.odt, .ods, .odp), and EPUB files (.epub). That standard limits the compression methods to 0 and 8, as well as other constraints such as no encryption or signatures.

My implementation is just good enough for EPub files.

Another issue I noticed later was the disk speed of some devices. My low-price Android phone from 2016 spends ~10s to parse the Zip file. Unfortunately, Zip format just bundles files one by one. There is no a single block to hold all files information. That means the internal storage has only ~10M/s reading speed. No wonder it's cheap! Even the files had just been read, it still required 4s+. So I had to find a way to avoid parse large files every time. That's why I introduced another functionality to load from json when it's unchanged.

So this is basically an EPub reader with small memory consumption.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].