epub_plus
5.1.0, released a year ago by 4akloon.tech
Epub parser and writer for Dart, usable on server, web, and Flutter.
WASM-ready
What it does
It can read an EPUB file into memory, expose metadata, chapters, images, and other resources, and write an EPUB back to bytes. The API is synchronous and null‑safe.
AI-written summary of version 5.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to parse or generate EPUB files in a Dart/Flutter app.
- You want a pure Dart solution that works on web and desktop without dart:io dependencies.
Skip it when
- You need a fully featured e‑book reader UI; this package only provides data, not widgets.
- You require advanced DRM or encryption support not covered by the parser.
Strengths
- Pure Dart, no dart:io, works on web, desktop, and Flutter.
- Supports EPUB 3 and null‑safe API.
- Provides access to all book resources (images, CSS, fonts).
Weaknesses
- No UI components for displaying books.
- Limited to parsing/writing; no navigation or rendering helpers.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
Add to pubspec dependencies; no special permissions or build_runner needed.
```dart
final bytes = await File('sample.epub').readAsBytes();
final book = await EpubReader.readBook(bytes);
print(book.title);
```Alternatives
Packages that do the same job and could replace epub_plus.
Works with
Packages commonly used together with epub_plus: ones it builds on, ones built on it, and its own family.
- archiveepub_plus depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- xmlepub_plus depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- imageepub_plus depends on itPure Dart library to load, manipulate, encode, and decode various image formats.