An elegant AI-powered storytelling platform that creates personalized stories across multiple genres using Google's Gemini AI.
- Multiple genres including Fantasy, Sci-Fi, Mystery, Romance, Horror, Historical Fiction, and Adventure
- Customizable themes within each genre
- Dynamic story generation based on selected preferences
- Clean, distraction-free reading interface
- Progress bar tracking
- Estimated reading time
- Infinite scroll for continuous story generation
- Text-to-Speech functionality
- Customizable font settings
- Multiple font families
- Adjustable font size
- Dark/Light theme toggle
- Responsive design
- Touch gestures support
- Swipe navigation for settings
- Mobile-optimized UI elements
- Theme switching (Light/Dark mode)
- Font family selection
- Text size adjustment
- Reading progress tracking
- Python 3.8+
- Flask
- Google Generative AI API key
- Clone the repository
git clone https://github.com/yourusername/lore-keeper.git
cd lore-keeper- Install dependencies
pip install -r requirements.txt- Set up Google Generative AI API key
- Obtain an API key from Google Cloud Console
- Set the
GOOGLE_API_KEYenvironment variable
export GOOGLE_API_KEY='your_api_key_here'- Run the application
python api/app.py- Frontend: HTML5, CSS3, JavaScript
- Backend: Flask (Python)
- AI: Google Gemini 1.5 Flash
- Styling: Custom CSS with CSS Variables
- Fonts: Google Fonts (Crimson Text)
- Select your preferred genre and theme
- Start reading the generated story
- Scroll to automatically generate more content
- Use the settings panel to customize your reading experience
- Toggle Text-to-Speech for audio narration
- Light Mode
- Dark Mode
- Crimson Text
- Georgia
- Palatino
- Baskerville
- Adjustable font size
- Progress tracking
- Reading time estimation
- Text-to-Speech
- Swipe gestures for navigation
- Mobile-optimized layout
- Touch-friendly controls
- Responsive design
Contributions are welcome! Please feel free to submit a Pull Request.
- Google Generative AI for the story generation
- Flask community for the excellent web framework
Made with ❤️ for storytelling enthusiasts
