Anbabi is a responsive eBook reader built using React.js and EPUB.js, offering state-of-the-art features like annotations, AI assistance, translation, dictionary, and Wikipedia integration. This project elevates the reading experience with modern tools and a user-friendly interface.
- Clean and responsive reader interface.
- Support for EPUB format with seamless navigation.
- Integrated with
react-readerfor an optimized reading experience.
- Highlight specific text or paragraphs with ease.
- Save, edit, and delete annotations.
- Prevent overlapping highlights with intelligent detection.
- Instantly look up word definitions using the built-in dictionary.
- Explore related topics via direct integration with Wikipedia.
- Translate selected text into multiple languages.
- Perfect for readers exploring multilingual content.
- Use AI to summarize chapters or selected text.
- Get context-based explanations for better comprehension.
- Generate insights or ideas based on the content.
- Light mode with a soft yellowish background for enhanced readability.
- Customizable highlight colors to improve text visibility without obscuring content.
- Annotation, dictionary, and translation data persist in the database via backend APIs.
- AI models are integrated with cloud APIs for seamless responses.
- Node.js (v16 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/your-username/anbabi.git
-
Navigate to the project directory:
cd anbabi -
Install dependencies:
npm install
-
Start the development server:
npm run dev
Place your .epub files in the /public/ebooks directory for testing. Update the src/pages/reader component to load your eBook.
- Select text in the reader interface.
- Choose a highlight color or add an annotation.
- Access saved highlights and annotations for editing or deletion.
- Select a word or phrase.
- Right-click or use the context menu to access definitions or related Wikipedia articles.
- Select a sentence or paragraph.
- Click the "Translate" option to view translations in your desired language.
- Highlight a section of text or a chapter.
- Use the "AI Assist" button to summarize or analyze the content.
- React.js: Frontend framework.
- EPUB.js: eBook rendering engine.
- react-reader: EPUB.js wrapper for React.
- Tailwind CSS: Utility-first CSS framework.
- AI API: Integrated for summaries and explanations.
- Translation API: Supports multilingual translation.
- Dictionary API: Fetches word definitions.
- Wikipedia API: Retrieves related Wikipedia content.
Contributions are welcome! Please create a pull request or open an issue to discuss changes or report bugs.
This project is licensed under the MIT License. See the LICENSE file for details.
- EPUB.js
- react-reader
- Modern eBook readers like Kindle and Google Books for inspiration.
- API providers for dictionary, translation, and AI features.