Flip a single immediate right into a print-ready Amazon KDP e book — interiors, covers, and KDP-spec PDFs in a single move.
Run it as your personal self-hosted SaaS. Maintain 100% of the income.
IMPORTANT: exterior service prices are NOT included on this buy.
BookraftAI is a self-hosted utility that connects to third-party providers reminiscent of
OpenAI and OpenRouter (for AI textual content and picture era) and fee gateways
like Stripe, PayPal, Razorpay, and Dodo Funds. These suppliers invoice you
immediately for their very own API utilization and subscription charges. The acquisition worth of this merchandise does
NOT embrace any API credit, subscriptions, or utilization prices for these exterior
providers — you (and the tip customers of your SaaS) create your personal supplier accounts and pay them
individually primarily based in your utilization and quantity.
What you are able to do with BookraftAI
- Generate full books (textual content and image-page) from a single temporary in minutes
- Edit any web page or block within the workshop editor with stay AI rewrites
- Export KDP-ready PDFs (full e book, interior-only, cover-only) proper from the browser
- Launch your personal AI book-generation SaaS and cost customers per credit score or per plan
Who that is for
- SaaS founders who need an actual, vertical product to promote subscriptions, not a weekend script
- Businesses and publishers who can productize AI e book era for purchasers below their model
- KDP self-publishers and content material operators who want a quicker path from concept to manuscript
- Operators who need BYOK (deliver your personal keys) so end-user inference prices by no means hit the operator
Browse the complete documentation on-line:
https://bookraft-ai-docs.vercel.app/
The way it works: a real-world move (step-by-step)
- Temporary: a person picks a e book kind (journal, image e book, comedian, planner, devotional, cookbook, and 17 extra) and writes a one-line concept.
- Plan: BookraftAI drafts the construction, web page depend, and (for image-page books) per-page visible briefs.
- Generate: pages stream stay into the workshop utilizing the person’s personal OpenRouter or OpenAI key.
- Edit: regenerate any web page, rewrite particular person blocks, swap cowl types, or pull from the persistent asset library.
- Preview: see the manuscript composed with KDP-style backgrounds, web page numbers, and trim sizes.
- Export: obtain full e book, interior-only, or cover-only PDFs that drop straight into KDP add kinds.
- Invoice: finish customers purchase credit by way of Stripe, PayPal, Razorpay, or Dodo Funds; failed generations auto-refund credit.
Attempt Dwell
Browse a stay deployed occasion of the platform to see the way it behaves in manufacturing. Join on to generate your first e book.
URL: https://bookraft.wixzel.com/
Characteristic highlights
Two AI e book engines
- Textual content books for prose-heavy codecs (non-fiction, journals, planners, examine guides, devotionals, memoirs, self-help)
- Picture-page books for visible codecs (image books, comics, coloring books, sketchbooks, exercise books)
23 e book sorts out of the field
- Non-fiction, fiction, journal, planner, exercise, workbook, coloring e book, puzzle e book, cookbook, poetry, image e book, devotional, memoir, self-help, pocket book, sketchbook, logbook, guidebook, examine information, quote e book, comedian, kids’s fiction, and a free-form “different” kind
- Every kind tunes construction, pacing, tone, and advisable web page depend
Workshop editor with six tabs
- Particulars, Content material, Cowl, Property, Preview, Export — covers the complete e book manufacturing lifecycle
- Regenerate any web page, rewrite single blocks (textual content, heading, image-prompt), insert / duplicate / delete pages
KDP-ready PDF export
- Three export modes: full e book, interior-only, cover-only
- KDP-compliant trim sizes (6×9”, 8.5×11”, customized), safe-zone margins, 0.125” bleed for image-page books
- Configurable web page numbering place, font, colour, and begin offset
Two-phase picture pipeline with character continuity
- Step 1: a planning cross drafts a per-page visible temporary
- Step 2: photos render sequentially with the earlier web page injected as a reference for palette and character continuity
- Three coherence modes: sequential-story, thematic-series, individual-pages
Dwell streaming web page era
- Actual-time SSE streaming so pages seem within the workshop as they’re drafted
- Lets consumers and their finish customers watch progress as a substitute of ready on a spinner
Persistent asset library and canopy styling
- Each generated picture is saved to a per-book asset library and could be reused throughout pages
- Cowl generator with remix and style-guide management to match the e book’s inside
Credit billing with auto-refund
- Pay-per-credit mannequin with admin-defined plans (identify, worth, generations granted, gateway IDs, well-liked flag)
- Failed generations routinely refund the credit score so finish customers are by no means charged for damaged runs
- Full buy audit path (pending, accomplished, failed, refunded)
Admin panel
- Customers (edit credit, toggle lively/deactivated), Plans, Gateways, Purchases, Analytics, Settings
- Workspace foreign money, help electronic mail, contact data, social hyperlinks, and default signup credit all admin-configurable
Fee gateways
- Stripe, PayPal, Razorpay, Dodo Funds — admins allow any mixture per workspace
- Webhooks on every gateway mark purchases full and grant credit routinely
BYOK inference (operator by no means pays for AI)
- Finish customers plug in their very own OpenRouter and elective OpenAI keys from Settings
- Per-user keys override workspace defaults; operators by no means carry inference prices
Self-hosted SaaS with centralized branding
- You management internet hosting, knowledge, and branding
- App identify, tagline, help and authorized emails, logos, and favicon all stay in a single constants file
- System-aware darkish and lightweight themes by way of next-themes
Key options (element)
AI stack and suppliers
- Textual content fashions: any mannequin uncovered by means of OpenRouter (default
anthropic/claude-sonnet-4.6) - Picture fashions: OpenRouter image-capable chat fashions (default
google/gemini-3.1-flash-image-preview), with elective OpenAIgpt-image-1for strict trim sizes (1024×1024, 1024×1536, 1536×1024) - BYOK on the person degree: per-user keys override workspace defaults, with a
forceOpenRouterForImagesescape hatch
Guide workshop
- Particulars tab: title, subtitle, creator, collection, ISBN, publication date, language, age/grade vary, KDP key phrases, Amazon class
- Content material tab: stream new pages, regenerate any web page with a customized immediate, rewrite particular person blocks
- Cowl, Property, Preview, Export tabs: cowl remix, persistent asset library, KDP-style preview, three PDF export modes
KDP export pipeline
- Shopper-side PDF era by way of jsPDF; manuscripts by no means go away the browser throughout export
- Asset deduplication so repeated photos share a single embedded useful resource
- Background picture composition per web page or per page-group
SaaS monetization and administration
- Credit score plans with per-gateway product IDs and a “well-liked” flag
- Fee gateways: Stripe, PayPal, Razorpay, Dodo Funds (configure what you want)
- Branding: app identify, major visuals, logos, favicon, and touchdown expertise all editable in a single place
- Analytics: whole customers, income, buy counts, and last-7-days breakdown
Authentication and safety
- E mail + password with bcrypt hashing and Joi validation
- Google OAuth 2.0 by way of Passport (auto-disables cleanly when OAuth env vars are unset)
- JWT classes with a 30-day expiry
- RBAC: admin and person roles, with the primary signup auto-promoted to admin for protected bootstrap
- Helmet safety headers and express-rate-limit on auth and phone endpoints
- Manufacturing safeguard: backend refuses as well with the placeholder JWT secret
Integrations and extensibility
- SMTP: ship public Contact type messages by way of Nodemailer
- REST APIs: construct customized integrations on prime of the Categorical backend
- BYOK suppliers (select your stack):
- Textual content and picture inference by way of OpenRouter
- Optionally available OpenAI for exact picture sizing
- Optionally available Google OAuth credentials for social sign-in
- Optionally available Stripe, PayPal, Razorpay, and Dodo Funds for monetization
Excellent for SaaS and businesses
- Run BookraftAI as your hosted product along with your branding
- Bundle credit score tiers, implement signup grants, and develop MRR with subscriptions
- Ship AI e book era as a managed service to purchasers (the place your license permits)
- Prolonged License: promote entry as a service below your model per Envato phrases
Necessary discover (exterior service prices)
BookraftAI is a self-hosted utility that integrates with third-party providers reminiscent of OpenRouter, OpenAI, and your chosen fee gateways (Stripe, PayPal, Razorpay, Dodo Funds).
The acquisition worth of this merchandise does NOT embrace any credit, subscriptions, or utilization prices for these exterior
providers.
Consumers (and the tip customers of the SaaS) are required to create their very own accounts and pay individually for utilization primarily based on their wants and quantity.
Pricing varies by supplier.
Self-hosting with BYOK means you keep accountable for suppliers and might optimize spend on your quantity – however these
supplier payments are separate from the license worth.

The tech stack
- Backend: Node.js and Categorical 5 (streaming-friendly API structure, SSE for web page streaming)
- Frontend: Subsequent.js 16 (App Router, Turbopack), React 19, TypeScript, Tailwind CSS v4
- UI elements: shadcn/ui over Radix UI primitives, Framer Movement 12 for transitions
- Database: MongoDB by way of Mongoose 9 for customers, books, plans, purchases, and configuration
- Authentication: Passport.js with Google OAuth, electronic mail and password, JWT
- AI SDK: OpenAI v6 shopper (additionally used because the OpenRouter shopper)
- Funds: Stripe, PayPal (REST), Razorpay, Dodo Funds
- Picture processing: Sharp 0.34
- PDF: jsPDF (client-side)
- E mail: Nodemailer (SMTP)
- Safety: Helmet, express-rate-limit
What’s within the field?
- Full backend supply code (Node.js / Categorical 5)
- Full frontend supply code (Subsequent.js 16 / React 19, TypeScript)
- Full documentation (interactive index.html with visible guides and screenshots)
- Surroundings templates (
.env.instancefor each backend and frontend)
Begin constructing your AI book-generation SaaS as we speak. Ship extra titles. Cost per credit score. Scale quicker.
Changelog
Model 1.0.0 | Preliminary launch
- NEW: Two AI e book engines (textual content and image-page) - NEW: 23 e book sorts out of the field (journal, planner, image e book, comedian, coloring e book, devotional, cookbook, and extra) - NEW: Six-tab workshop editor (Particulars, Content material, Cowl, Property, Preview, Export) - NEW: KDP-ready PDF export (full e book, interior-only, cover-only) with client-side jsPDF - NEW: Two-phase picture pipeline with character continuity and three coherence modes - NEW: BYOK inference by way of OpenRouter with elective OpenAI for exact picture sizing - NEW: Dwell SSE web page streaming within the workshop - NEW: Pay-per-credit billing with Stripe, PayPal, Razorpay, and Dodo Funds - NEW: Admin panel with customers, plans, gateways, purchases, analytics, and settings - NEW: E mail + Google OAuth authentication, JWT classes, RBAC (admin / person) - NEW: Centralized branding constants (app identify, tagline, help emails, logos, favicon) - NEW: Contact type with Nodemailer SMTP supply - NEW: Helmet + express-rate-limit on auth and phone endpoints - NEW: Manufacturing safeguard - backend refuses as well with placeholder JWT secret




