Author: aezizhu | Repository: https://github.com/aezizhu/ai-reading-assistant
An intelligent, feature-rich reading companion that transforms how you interact with digital books. Built with cutting-edge web technologies and designed for the modern reader.
Transform your reading experience with an application that doesn't just store your booksβit understands them. Whether you're a student, researcher, or avid reader, our AI-powered platform provides the tools you need to read smarter, not harder.
- π§ AI-Powered Insights: Get intelligent summaries, mind maps, and reading recommendations
- π Universal Format Support: PDF, EPUB, MOBI - all in one place
- π― Smart Goal Tracking: Set and achieve your reading objectives with precision
- π Multi-Language Ready: English, Chinese, Spanish with seamless switching
- π Privacy-First: 100% local storage, zero cloud dependencies
- π¨ Beautiful Interface: Modern, responsive design that adapts to any device
- Immersive PDF Reader: Native PDF rendering with zoom, rotation, and smooth navigation
- Smart Highlighting: Multiple colors with contextual notes and easy organization
- Intelligent Notes: Categorized note-taking with automatic linking to book content
- Session Tracking: Monitor reading time, maintain streaks, and build reading habits
- Interactive Q&A: Ask questions about specific chapters or concepts
- Auto-Summarization: Get AI-generated chapter summaries and key points
- Mind Map Generation: Visual concept mapping for better understanding
- Personalized Recommendations: Discover your next great read based on your preferences
- Reading Dashboard: Beautiful charts showing your reading patterns and progress
- Goal Management: Set daily targets, track completion rates, and celebrate achievements
- Export Capabilities: Download your notes, highlights, and reading statistics
- Progress Visualization: See your reading journey with intuitive graphs and metrics
- Complete Internationalization: Every text element translated and localized
- Dynamic Language Switching: Change languages instantly without page reload
- Cultural Adaptation: Date formats, number systems, and reading directions respected
- Next.js 14 with App Router - Server-side rendering and optimal performance
- TypeScript - Type-safe development with excellent IDE support
- Tailwind CSS - Utility-first styling with custom design system
- Zustand - Lightweight, powerful state management with persistence
- react-pdf + PDF.js - Industry-standard PDF rendering and manipulation
- Framer Motion - Smooth, professional animations and transitions
- Recharts - Beautiful, responsive data visualization
- date-fns - Comprehensive date handling with internationalization
ai-reading-assistant/
βββ π¨ app/ # Next.js App Router
β βββ globals.css # Global styles & design system
β βββ layout.tsx # Application shell
β βββ page.tsx # Main dashboard
β βββ demo/ # Interactive demo
β βββ test/ # Development utilities
βββ βοΈ components/ # React components
β βββ BookLibrary.tsx # Library management interface
β βββ PDFReader.tsx # Advanced PDF viewer
β βββ NotesManager.tsx # Note organization system
β βββ AICompanion.tsx # AI chat interface
β βββ ReadingStats.tsx # Analytics dashboard
β βββ AddBookModal.tsx # Book addition workflow
β βββ LanguageSwitcher.tsx # Language selection UI
βββ π contexts/ # React contexts
β βββ LanguageContext.tsx # Internationalization provider
βββ π§ lib/ # Core utilities
β βββ store.ts # Central state management
β βββ fileUtils.ts # File processing utilities
β βββ i18n.ts # Translation system
βββ π£οΈ locales/ # Translation files
β βββ en.json # English translations
β βββ zh.json # Chinese translations
β βββ es.json # Spanish translations
βββ π¦ public/ # Static resources
- Node.js 18.0+ (LTS recommended)
- npm or yarn package manager
- Modern browser with JavaScript enabled
-
Clone & Navigate
git clone https://github.com/aezizhu/ai-reading-assistant.git cd ai-reading-assistant
-
Install Dependencies
npm install # or yarn install
-
Start Development Server
npm run dev # or yarn dev
-
Access Application Open http://localhost:3000 in your browser
chmod +x start.sh && ./start.sh
- Add Your First Book: Click "Add Book" β Upload PDF/EPUB/MOBI β Start reading
- Set Reading Goals: Navigate to Goals β Create target β Track progress automatically
- Take Smart Notes: Highlight text β Add categorized notes β Export when needed
- Chat with AI: Ask questions about content β Get summaries β Generate mind maps
- Keyboard Shortcuts: Arrow keys for page navigation, Ctrl+F for search
- Bulk Operations: Select multiple items for batch actions
- Data Export: Regular exports prevent data loss
- Goal Strategy: Set realistic daily targets for better success rates
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
primary: { /* Custom primary colors */ },
secondary: { /* Custom secondary colors */ }
}
}
}
}
- Create
/locales/[language].json
- Add language to
lib/i18n.ts
- Update
LanguageSwitcher.tsx
# .env.local
NEXT_PUBLIC_AI_API_URL=your_ai_service_url
NEXT_PUBLIC_AI_API_KEY=your_api_key
NEXT_PUBLIC_ANALYTICS_ID=your_analytics_id
- 100% Local Storage: All data remains on your device
- No Cloud Dependencies: Fully functional offline
- Client-Side Processing: Files never leave your browser
- Zero Tracking: No analytics or user behavior monitoring
- Content Security Policy: Protection against XSS attacks
- File Validation: Secure file type checking and processing
- Input Sanitization: All user inputs properly sanitized
- Local Encryption: Sensitive data encrypted in localStorage
We welcome contributions from developers of all skill levels!
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Develop your feature with proper tests
- Commit with clear messages:
git commit -m 'Add amazing feature'
- Push to your branch:
git push origin feature/amazing-feature
- Open a Pull Request with detailed description
- β TypeScript for all new code
- β Follow existing code patterns and style
- β Add proper error handling and logging
- β Include JSDoc comments for functions
- β Test functionality across different browsers
- β Maintain responsive design principles
- π Bug fixes and performance improvements
- β¨ New features and enhancements
- π Translation and localization
- π Documentation improvements
- π¨ UI/UX enhancements
This project is released under a custom non-commercial license with the following terms:
- Personal Use: Individual, non-commercial use
- Educational Use: Academic and learning purposes
- Research: Non-commercial research projects
- Open Source Contributions: Community contributions welcome
- Code Study: Learning from the codebase
- Commercial Use: Any for-profit use without license
- Redistribution for Profit: Selling or monetizing the software
- Commercial Integration: Including in commercial products
- Service Offering: Offering as a paid service
- White-labeling: Rebranding for commercial use
For commercial use, enterprise licensing, or custom development:
Contact Author: aezizhu
- Email: [contact information]
- Business Inquiries: [business contact]
- Custom Development: Available for hire
Licensing Options:
- Enterprise License: Full commercial rights
- OEM License: Integration into products
- Custom Development: Tailored solutions
- Support Contracts: Professional support
Unauthorized commercial use constitutes copyright infringement and will result in:
- Immediate cease and desist demands
- Legal action for damages
- Potential criminal prosecution
- Public disclosure of violations
- Initial Load: < 2s on 3G connection
- Core Web Vitals: Excellent scores across all metrics
- Bundle Size: Optimized with code splitting
- Memory Usage: Efficient state management
- Browser Support: Modern browsers (ES2020+)
- Lazy Loading: Components loaded on demand
- Image Optimization: Next.js automatic optimization
- Caching Strategy: Efficient caching for better performance
- Code Splitting: Reduced initial bundle size
- Tree Shaking: Unused code elimination
- GitHub Discussions: Feature requests and community chat
- Issue Tracker: Bug reports and technical issues
- Wiki: Comprehensive documentation and guides
- Releases: Version history and changelog
- Next.js Team: Revolutionary React framework
- Vercel: Deployment and hosting platform
- Tailwind Labs: Beautiful utility-first CSS
- Mozilla: PDF.js rendering engine
- React Team: Component-based architecture
- Open Source Community: Inspiration and collaboration
- Beta Testers: Early feedback and bug reports
- Contributors: Code improvements and features
- Translators: Multi-language support
- π Documentation: Comprehensive guides in
/docs
- π Bug Reports: GitHub Issues with templates
- π¬ Discussions: Community Q&A and features
- π§ Direct Support: Contact author for urgent issues
- β Star the repository for updates
- π Watch for new releases and features
- π΄ Fork to contribute or customize
- π’ Share with your reading community
π Built with passion by aezizhu
Revolutionizing digital reading, one feature at a time
β Star this project | π΄ Fork & Contribute | π Documentation