Libriscribe
Libriscribe is an AI-powered open-source book creation system. The system is designed to help you write your book, from initial concept to a polished manuscript. It uses a multi-agent approach, where specialized AI agents collaborate to handle different stages of the book creation process.
Install / Use
/learn @guerra2fernando/LibriscribeREADME
LibriScribe 📚✨
<div align="center"> <img src="https://guerra2fernando.github.io/libriscribe/img/logo.png" alt="LibriScribe Logo" width="30%">Your AI-Powered Book Writing Assistant
</div>🌟 Overview
LibriScribe harnesses the power of AI to revolutionize your book writing journey. Using a sophisticated multi-agent system, where each agent specializes in specific tasks, LibriScribe assists you from initial concept to final manuscript.

✨ Features
Creative Assistance 🎨
- Concept Generation: Transform your ideas into detailed book concepts
- Automated Outlining: Create comprehensive chapter-by-chapter outlines
- Character Generation: Develop rich, multidimensional character profiles
- Worldbuilding: Craft detailed universes with rich history, culture, and geography
Writing & Editing 📝
- Chapter Writing: Generate chapter drafts based on your outline
- Content Review: Catch inconsistencies and plot holes
- Style Editing: Polish your writing style for your target audience
- Fact-Checking: Verify factual claims (for non-fiction)
Quality Assurance 🔍
- Plagiarism Detection: Ensure content originality
- Research Assistant: Access comprehensive topic research
- Manuscript Formatting: Export to polished Markdown or PDF
🚀 Quickstart
1. Installation
git clone https://github.com/guerra2fernando/libriscribe.git
cd libriscribe
pip install -e .
2. Configuration
-
LLM API Key: Get an API key from one of the following services:
- OpenAI: Get API Key
- Anthropic: Get API Key
- DeepSeek: Get API Key
- Google AI Studio (Gemini): Get API Key
- Mistral AI: Get API Key
Create a .env file in the root directory and fill the api key of the LLM that you want to use:
OPENAI_API_KEY=your_api_key_here
GOOGLE_AI_STUDIO_API_KEY=your_api_key_here
CLAUDE_API_KEY=your_api_key_here
DEEPSEEK_API_KEY=your_api_key_here
MISTRAL_API_KEY=your_api_key_here
3. Launch LibriScribe
libriscribe start
Choose between:
- 🎯 Simple Mode: Quick, streamlined book creation
- 🎛️ Advanced Mode: Fine-grained control over each step
💻 Advanced Usage
Project Creation
python src/libriscribe/main.py start \
--project-name my_book \
--title "My Awesome Book" \
--genre fantasy \
--description "A tale of epic proportions." \
--category fiction \
--num-characters 3 \
--worldbuilding-needed True
Core Commands
# Generate book concept
python src/libriscribe/main.py concept
# Create outline
python src/libriscribe/main.py outline
# Generate characters
python src/libriscribe/main.py characters
# Build world
python src/libriscribe/main.py worldbuilding
# Write chapter
python src/libriscribe/main.py write-chapter --chapter-number 1
# Edit chapter
python src/libriscribe/main.py edit-chapter --chapter-number 1
# Format book
python src/libriscribe/main.py format
📁 Project Structure
your_project/
├── project_data.json # Project metadata
├── outline.md # Book outline
├── characters.json # Character profiles
├── world.json # Worldbuilding details
├── chapter_1.md # Generated chapters
├── chapter_2.md
└── research_results.md # Research findings
⚠️ Important Notes
- API Costs: Monitor your LLM API usage and spending limits
- Content Quality: Generated content serves as a starting point, not final copy
- Review Process: Always review and edit the AI-generated content
🔗 Quick Links
🤝 Contributing
We welcome contributions! Check out our Contributing Guidelines to get started.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🗺️ LibriScribe Development Roadmap
🤖 LLM Integration & Support
- [X] Multi-LLM Support Implementation: Anthropic Claude Models - Google Gemini Models - - Deepseek Models - Mistral Models
- [ ] Model Performance Benchmarking
- [ ] Automatic Model Fallback System
- [ ] Custom Model Fine-tuning Support
- [ ] Cost Optimization Engine
- [ ] Response Quality Monitoring
🔍 Vector Store & Search Enhancement
- [ ] Multi-Vector Database Support: ChromaDB Integration, MongoDB Vector Search, Pinecone Integration, Weaviate Implementation
- [ ] Advanced Search Features: Semantic Search, Hybrid Search (Keywords + Semantic), Cross-Reference Search, Contextual Query Understanding
- [ ] Embedding Models Integration: Multiple Embedding Model Support, Custom Embedding Training, Embedding Optimization
🔐 Authentication & Authorization
- [ ] Cerbos Implementation: Role-Based Access Control (RBAC), Attribute-Based Access Control (ABAC), Custom Policy Definitions, Policy Testing Framework
- [ ] User Management System: User Registration & Authentication, Social Auth Integration, Multi-Factor Authentication, Session Management
- [ ] Security Features: Audit Logging, Rate Limiting, API Key Management, Security Headers Implementation
🌐 API Development
- [ ] Core API Features: RESTful Endpoints, GraphQL Interface, WebSocket Support, API Documentation (OpenAPI/Swagger)
- [ ] API Management: Version Control, Rate Limiting, Usage Monitoring, Error Handling
- [ ] Integration Features: Webhook Support, Event System, Batch Processing, Export/Import Functionality
🎨 Frontend Application
- [ ] Dashboard Development: Modern React Interface, Real-time Updates, Progressive Web App Support, Responsive Design
- [ ] Editor Features: Rich Text Editor, Markdown Support, Real-time Collaboration, Version History
- [ ] Visualization Tools: Character Relationship Graphs, Plot Timeline Visualization, World Map Generation, Story Arc Visualization
Made with ❤️ by Fernando Guerra and Lenxys
If LibriScribe has been helpful for your projects, consider buying me a coffee:
</div>