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.
- 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
- 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)
- Plagiarism Detection: Ensure content originality
- Research Assistant: Access comprehensive topic research
- Manuscript Formatting: Export to polished Markdown or PDF
git clone https://github.com/guerra2fernando/libriscribe.git
cd libriscribe
pip install -e .
-
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
libriscribe start
Choose between:
- π― Simple Mode: Quick, streamlined book creation
- ποΈ Advanced Mode: Fine-grained control over each step
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
# 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
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
- 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
We welcome contributions! Check out our Contributing Guidelines to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
- 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
- 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
- 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
- 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
- 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: