Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imedadel/flaub
EPUB parser and reader for the browser
https://github.com/imedadel/flaub
epub epub-reader parser react reader vite
Last synced: 5 days ago
JSON representation
EPUB parser and reader for the browser
- Host: GitHub
- URL: https://github.com/imedadel/flaub
- Owner: imedadel
- License: mit
- Created: 2021-10-20T22:46:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-23T20:23:00.000Z (about 3 years ago)
- Last Synced: 2024-12-22T10:34:23.310Z (12 days ago)
- Topics: epub, epub-reader, parser, react, reader, vite
- Language: CSS
- Homepage: flaub.vercel.app
- Size: 5.87 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flaub
> EPUB parser and reader, built using React, Vite, and the lovely DOMParser.
Flaub is a browser-based EPUB parser and reader. It unzips, parses, and caches your EPUB file and allows you to easily read it. It's still a work in progress as I read more books and unravel more bugs. **[Try it out!](https://flaub.vercel.app)**
Feel free to fork it or contribute.
## Backstory
I couldn't get a single EPUB reader to work on my Ubuntu, and you know what's the smartest thing to do when that happens? Yes—creating your own reader.
The parser is inspired by [epub-parser](https://github.com/gaoxiaoliangz/epub-parser), except that it doesn't offer as many options and it relies on the browser's DOMParser. The latter turned out to be really sweet to work with since all you need to know is how to use `querySelector`.
It's named Flaub 'cause Flaubert. Here's a moustache. I couldn't find one that looks like Flaub's.
## Features
- Dark mode (thanks to Radix UI Colors and next-themes)
- Caching (uses IndexedDB to avoid parsing files again)
- Saving scroll position
- Pretty reading experience (thanks to Raster.css)## License
MIT License © 2021 [Imed Adel](https://github.com/imedadel)