All Startup Ideas

One-Click Book Formatting for Self-Publishers

Turn a plain manuscript into a print-ready PDF and validated EPUB in one click. AI structure detection, pro templates, KDP-ready exports for self-publishers.

A first-time novelist finishes a manuscript she has been writing for two years, opens Kindle Direct Publishing to upload it, and hits a wall she never saw coming: the file has to be formatted. Chapter breaks need consistent styling, the table of contents has to be clickable, margins and gutters must match the trim size, page numbers have to reset after the front matter, and the same document has to render correctly as a flowing ebook and as a fixed print PDF. What should be a victory lap becomes a weekend lost to fighting Microsoft Word styles, watching YouTube tutorials, and re-uploading proofs that come back with the page numbers in the wrong place.

Built for Creators, Solo Founders, Side Hustlers.

Suggested stack: Next.js 14 + Vercel, Document parsing (Mammoth.js + custom AST), Paged.js + Puppeteer (print) and epub-gen (ebook), OpenAI gpt-4o-mini, Supabase (Auth + Postgres) + S3/R2 storage, Stripe Billing. Weekend scope: about 12 hours.

The Problem

A first-time novelist finishes a manuscript she has been writing for two years, opens Kindle Direct Publishing to upload it, and hits a wall she never saw coming: the file has to…

The Solution

FormatFlex is a browser-based app whose entire promise is one click. An author uploads a plain manuscript — a `.docx` file or Google Doc export — chooses a style template, and the…

Market Research

The self-publishing and books market is projected to reach 192.1 billion dollars by 2030, up from roughly 151 billion in 2024, with self-publishing driving a disproportionate…

Competitive Landscape

Vellum — The design-quality leader among serious indies, with beautiful templates and live previews. But it is Mac-only and priced as a premium one-time license: about 199.99…

Business Model

Free (0 dollars) — Format one book with a watermark on the preview and a limited template set. The lead-gen wedge that lets an author see a professional interior before paying.

Recommended Tech Stack

Next.js 14 + Vercel — App Router for the dashboard and upload flow, serverless functions for the render jobs, and edge caching for the marketing site. One repo, minimal infra.

AI Prompts to Build This

Copy these build prompts into Claude, Cursor, or your AI coding tool. Create a free account to unlock the full research behind them.

  1. 1. Project Setup

    Build the weekend MVP of "FormatFlex": upload a.docx manuscript and get a formatted EPUB with a working table of contents and a paginated print preview you can save as a PDF. One template and three trim sizes this weekend.
    
    Stack: Next.js (App Router, TypeScript), Tailwind, Supabase (Postgres, Row Level Security, Storage, Auth with email magic link), Mammoth to read the.docx, Paged.js in the browser for the print preview, JSZip to build the EPUB, the Anthropic API only when a manuscript has no real headings. Deploy on Vercel.
    
    Tables (Row Level Security on, each user reads only their own rows; templates are read-only):
    - projects(id, user_id, title, template_id, trim_size, status, structure jsonb) trim_size is 5x8, 5.25x8 or 6x9
    - exports(id, project_id, format, file_path, created_at) format is epub
    - templates(id, name, css, metadata jsonb, trim_sizes text[])
    
    Screens: /login, /projects, /projects/[id] (upload, template and trim size, live preview), /projects/[id]/export.
    Env vars (names only): NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY (server only), ANTHROPIC_API_KEY.
    
    Do not build: billing, per-book or yearly plans, watermarks, a server PDF renderer or Puppeteer, more than one template, children's or romance templates, Google Docs import.
    Done when: npm run dev starts, you can sign in, and the three tables exist with Row Level Security on.
  2. 2. Core Feature

    Build the one feature that proves FormatFlex: a manuscript becomes a clean EPUB and a believable print preview without hand layout.
    1. Accept a.docx up to 10 MB. Read it with Mammoth into HTML that keeps headings, italics, block quotes and images.
    2. Detect structure in code first: a Heading 1 starts a chapter, a line of only asterisks or a centered ornament is a scene break, and the front matter ends at the first chapter. Only when there are no headings, ask the Anthropic API for JSON { chapters: [{ title, start_index }], scene_breaks: number[], front_matter_end: number } and check that every index is in range and in order, or reject it. Save the structure so the result is reproducible.
    3. Build the EPUB 3 with JSZip: one file per chapter, a navigation document with a hyperlinked table of contents, the template's stylesheet and the book's metadata. Save it and offer a download.
    4. The template is a CSS Paged Media stylesheet for literary fiction. The trim size selector sets the page size, margins and gutter. Running heads show the title and the chapter, and page numbers restart at 1 after the front matter.
    5. The live preview paginates the first chapter with Paged.js in the browser within a couple of seconds of any change. A Print button opens the browser's print dialog so the author can save the pages as a PDF.
    6. Save template_id and trim_size on the project.
    7. In a test script, validate a sample EPUB with the EPUBCheck command line tool (it needs Java) and fail on any error.
    Rules: do not claim the files meet any printer's or store's rules; say "built to common print specs, check your printer's current requirements". Never rewrite the author's words.
    Empty state: with no projects, show the upload box and the file size limit.
    Done when: a sample manuscript produces an EPUB that passes EPUBCheck, every table of contents link opens its chapter, the preview shows page numbers restarting after the front matter, changing the trim size changes the page layout and an invalid structure from the model is rejected.
  3. 3. Landing Page

    Build a one-page landing site for FormatFlex, book formatting for self-publishers.
    Hero: "Upload your manuscript. Get a book." Sub: "A clean EPUB and a print-ready preview from a Word file, with chapters, a table of contents and page numbers handled for you." One button: Join the waitlist.
    Sections: a before and after of a manuscript page and its formatted page, how it works in four steps (upload, pick a template and trim size, check the structure, export), and an FAQ on which files work (.docx), what the files are built to (common specs, check your printer's rules) and what is coming (more templates and a PDF download).
    Waitlist: store the email in a waitlist table in Supabase. No other service.
    Style: Geist, a warm paper background, ink type, one burgundy accent.
    Done when: the page renders on a phone and a submitted email appears in the waitlist table.
  4. 4. Branding Package

    Use a design or image tool for this one. A coding agent cannot draw a logo.
    Brand for FormatFlex: a wordmark and an icon that suggest a page whose lines straighten into a column.
    Colors: warm paper, ink and one burgundy. Type: Geist for the interface and a book serif for sample pages.
    Deliverables: wordmark, icon, a template card style, a trim-size chip set (5x8, 5.25x8, 6x9) that differs by shape as well as color, and one launch graphic.
    Done when: each deliverable is saved in one folder and the trim-size chips are distinguishable without color.