Bullpen

The self-publishing pipeline for authors who'd rather write than wrestle with tools.

One command, every format

Markdown PDF EPUB MOBI HTML KDP Paperback Cover Wrap

What you get

Write in markdown

One file per chapter, organised by part. No proprietary formats or lock-in.

Two-tier packaging

A "book only" and "book + extras" package for different price points, ready to upload.

Free chapter lead magnet

Generates a standalone PDF of any chapter with a cover page and buy CTA.

KDP print-ready

6x9 inch paperback interior with proper margins, plus a full cover wrap with calculated spine.

Prose linting

Vale integration with sensible defaults for narrative non-fiction.

Output verification

Spot-checks generated PDFs against your source to catch dropped words.

Built for Claude Code

The repo includes a CLAUDE.md that gives Claude full context on the pipeline. Clone it, open Claude Code, and tell it about your book:

"Set up this repo for my book called [title] by [name]. It has [n] parts with [n] chapters each."

Claude Code will update your config, create chapter files, and install dependencies in one go. When you're ready:

"Run the full build pipeline."

Manual quickstart

  1. Install dependencies
    brew install pandoc vale
    brew install --cask calibre  # optional, for MOBI
    pip install -r requirements.txt
    vale sync
  2. Edit config.json with your book's metadata and chapter structure
  3. Write your chapters in manuscript/
  4. Build everything
    ./scripts/build-final.sh
View on GitHub

MIT License. Use it for your own book.