Skip to content

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.

Notifications You must be signed in to change notification settings

guerra2fernando/libriscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LibriScribe πŸ“šβœ¨

LibriScribe Logo

Your AI-Powered Book Writing Assistant

License Documentation PRs Welcome Python Version Buy Me A Coffee

🌟 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.

Libriscribe Demo

✨ 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

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

  • 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

⭐ Star us on GitHub

If LibriScribe has been helpful for your projects, consider buying me a coffee:

Buy Me A Coffee

About

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.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages