Research • Write • Illustrate • Design • Publish
FraudRob's AI Book Factory is not just another text generator—it is a comprehensive, full-stack publishing suite designed to dominate the Amazon KDP market.
Leveraging the raw power of Google's Gemini 2.5 & 3.0 models, this application automates the entire lifecycle of book creation. From identifying high-profit niches using simulated market data to generating full-length manuscripts with high-concurrency threading, custom illustrations, and ready-to-upload KDP metadata.
graph LR
A[🔍 Market Research] --> B[📝 Outline & Structure]
B --> C[⚡ High-Speed Writing]
C --> D[🎨 AI Illustration]
D --> E[🖌️ Cover Design]
E --> F[📦 KDP Export & Auto-Bot]
style A fill:#f9f,stroke:#333,stroke-width:2px
style C fill:#bbf,stroke:#333,stroke-width:2px
style F fill:#bfb,stroke:#333,stroke-width:2px
Don't write blindly. The app analyzes trends before you type a single word.
- Niche Finder: Identifies profitable, low-competition genres.
- Trend Simulation: Generates visual Google Trends data simulations.
- Competitor Analysis: AI agents analyze potential competitors to find market gaps.
- Audience Profiling: Deep dives into demographics, pain points, and interests.
- High-Concurrency Mode: Blasts API requests in parallel threads to generate full books in minutes, not hours.
- Director's Mode: Give surgical instructions ("Make this scene darker," "Add a plot twist") and watch the AI rewrite instantly.
- The Critic Agent: A dedicated "Grand Master Scholar" agent reviews chapters and provides literary critique before rewriting them for quality.
- Humanization Engine: Post-processing algorithms to smooth out AI-sounding prose.
- AI Illustration: Generates scene-specific prompts and renders images for every chapter (Cinematic, Anime, Watercolor, and more).
- Integrated Cover Editor: Full FabricJS-powered drag-and-drop editor.
- AI Stock Photo Search
- Custom Typography Control
- Layer Management
- Author Persona Generator: Creates fake but realistic author bios, headshots, and action shots for pen names.
- One-Click EPUB: Generates formatted
.epubfiles ready for Kindle. - KDP Metadata Suite: Auto-generates SEO-optimized Titles, Subtitles, 7-Backend Keywords, and HTML-formatted descriptions.
- Smart Download: Zips the Manuscript, Cover, and a "Publishing Guide" into a single package.
- Automation Bot (Beta): Includes a backend service (Playwright) to physically automate the upload process to Amazon KDP, complete with CAPTCHA handling.
- Series Generator: Define a genre and generate entire book series (Book 1, 2, 3...) in a single run.
- Mass Production: Queue up to 10 projects and let the factory run in the background.
- Frontend: React 18, TypeScript, Tailwind CSS
- AI Core: Google GenAI SDK (Gemini 2.5 Flash, Gemini 3.0 Pro)
- State Management: IndexedDB (Custom wrapper for massive storage capacity beyond 5MB)
- Graphics: FabricJS (Canvas manipulation), Pollinations.ai (Image Generation)
- Export: JSZip, Epub-Gen-ES
- Backend (Optional Bot): Node.js, Express, WebSockets, Playwright
-
Clone the Repo
git clone https://github.com/yourusername/fraudrobs-book-factory.git cd fraudrobs-book-factory -
Install Dependencies
npm install
-
Configure API Key Create a
.envfile in the root directory:API_KEY=your_google_gemini_api_key_here
-
Run the App
npm start
To use the KDP Auto-Uploader, you need to run the separate backend server.
- Navigate to
server/ npm installnpx playwright install- Set KDP credentials (safe env vars):
export KDP_EMAIL="your@email.com" export KDP_PASSWORD="yourpassword"
npm start
| Market Research | Cover Editor | Manuscript Writer |
|---|---|---|
| Analyze Trends | Drag & Drop Design | Director's Mode |
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This tool is intended for educational and productivity purposes. Users are responsible for adhering to Amazon KDP's Terms of Service regarding AI-generated content. Always review AI output before publishing.
Built with ❤️ by FraudRob