Skip to content

AjaykrishnaA/BookBuilderAI

Repository files navigation

BookBuilder AI

BookBuilder AI is an innovative application that combines artificial intelligence with LaTeX document generation to help users create professional-quality books with ease. Whether you're writing a textbook, technical documentation, or any other structured document, BookBuilder AI streamlines the process through intuitive chat-based interactions.

✨ Features

  • AI-Powered Book Generation: Create complete LaTeX documents through natural language conversations
  • Interactive Refinement: Iteratively improve your content through an AI chat interface
  • Live Preview: See your changes in real-time with a split-view editor and PDF preview
  • Cloud Storage: Securely save and manage your book projects
  • Professional Output: Generate publication-ready PDF documents using LaTeX
  • User Authentication: Secure access to your personal book projects

🚀 Getting Started

Prerequisites

  • Node.js 18 or higher
  • PostgreSQL database
  • Environment variables:
    DATABASE_URL=your_database_url
    NEXTAUTH_SECRET=your_auth_secret
    LATEX_ONLINE_API_URL=latex_compilation_service_url

Installation

  1. Clone the repository:

    git clone https://github.com/AjaykrishnaA/BookBuilderAI.git
    cd BookBuilderAI
  2. Install dependencies:

    npm install
  3. Set up the database:

    npx prisma generate
    npx prisma db push
  4. Run the development server:

    npm run dev

Visit http://localhost:9002 to start creating your books! The development server runs with Turbopack for faster builds.

💡 How It Works

  1. Start a New Book: Begin by describing your book idea in natural language
  2. AI Generation: Our AI generates a complete LaTeX document structure
  3. Interactive Refinement: Chat with the AI to refine your content
  4. Live Preview: See changes instantly in the split-view interface
  5. Export: Download your book as a professional PDF document

🛠️ Built With

  • Frontend: Next.js 13+ with App Router
  • UI: Tailwind CSS & shadcn/ui
  • Authentication: NextAuth.js
  • Database: PostgreSQL with Prisma
  • AI Integration: Gemini LLM
  • PDF Generation: LaTeX with online compilation service

📚 Documentation

For detailed documentation about the project architecture, development workflow, and common tasks, see:

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

An app that lets you build/create a book while chatting with an AI

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Contributors

Languages