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.
- 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
- 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
-
Clone the repository:
git clone https://github.com/AjaykrishnaA/BookBuilderAI.git cd BookBuilderAI -
Install dependencies:
npm install
-
Set up the database:
npx prisma generate npx prisma db push
-
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.
- Start a New Book: Begin by describing your book idea in natural language
- AI Generation: Our AI generates a complete LaTeX document structure
- Interactive Refinement: Chat with the AI to refine your content
- Live Preview: See changes instantly in the split-view interface
- Export: Download your book as a professional PDF document
- 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
For detailed documentation about the project architecture, development workflow, and common tasks, see:
Contributions are welcome! Please feel free to submit a Pull Request.