This repository is a ready-to-use GitHub template for writing, organizing, and publishing books with modern tooling. It provides a structured directory layout, configuration files, and a Makefile, with all automation powered by the manuscripta library.
Authors can create, format, and export books in multiple formats: PDF, EPUB, DOCX, HTML, and Markdown.
- Structured directory layout for chapters, front matter, back matter, and assets
- Markdown-based writing for clarity and compatibility
- Multi-format export via Pandoc (PDF, EPUB, DOCX, HTML, Markdown)
- Print versions optimized for paperback and hardcover (KDP-ready)
- Audiobook generation with pluggable TTS engines
- Translation support via DeepL and LMStudio
- Manuscript validation and sanitization via manuscript-tools
- All CLI tools provided by manuscripta, no local scripts needed
- Pipeline updates via
poetry update
- Click on the green
Use this templatebutton at the top of this repository page. - Choose
Create a new repositoryand name your book project. - Clone it locally:
git clone https://github.com/YOUR_USERNAME/YOUR_BOOK_REPO.git
cd YOUR_BOOK_REPOmake setupThis will install all dependencies and run the interactive project initializer, which creates the complete folder structure and all required files.
Alternatively, step by step:
make lock-install
make init-bpFull guide: Project Initialization (Wiki)
Replace placeholders in config/metadata.yaml:
poetry run update-metadata-valuesThis loads metadata values from config/metadata_values.json, replaces all placeholders like {{BOOK_TITLE}}, formats
lists to YAML syntax, and deletes the JSON file after successful population.
# Export all formats with cover
make export
# Single formats
make pdf
make ebook
make docx
make html
make markdown
# Print versions
make paperback
make hardcover
# Safe mode (fast drafts, no source modifications)
make ebook ARGS="--safe"The generated files will be available in the output/ folder.
- Add chapters in
manuscript/chapters/ - Edit
manuscript/front-matter/toc.mdfor your table of contents - Add illustrations or diagrams under
assets/
write-book-template/
βββ manuscript/
β βββ chapters/
β β βββ 01-introduction.md
β β βββ 02-chapter.md
β βββ front-matter/
β β βββ toc.md
β β βββ toc-print.md
β β βββ preface.md
β β βββ foreword.md
β βββ back-matter/
β β βββ about-the-author.md
β β βββ acknowledgments.md
β β βββ appendix.md
β β βββ bibliography.md
β β βββ epilogue.md
β β βββ glossary.md
β β βββ imprint.md
βββ assets/
β βββ covers/
β βββ images/
β βββ fonts/
β βββ templates/
βββ config/
β βββ metadata.yaml
β βββ export-settings.yaml
β βββ voice-settings.yaml
βββ output/
βββ pyproject.toml
βββ Makefile
βββ LICENSE
βββ README.md
Run make help for a full list. Key targets:
| Target | Description |
|---|---|
make setup |
Install dependencies and initialize project |
make export |
Export all formats with cover |
make pdf |
Export PDF |
make ebook |
Export EPUB |
make paperback |
Export print version (paperback) |
make hardcover |
Export print version (hardcover) |
make audiobook |
Generate audiobook |
make translate-en-de |
Translate English to German (DeepL) |
make ms-check |
Run manuscript style checks |
make ms-validate |
Full manuscript validation pipeline |
make clean |
Remove output and cache artifacts |
Full documentation: Makefile Overview (Wiki)
The full documentation is available in the Wiki.
Getting Started: Home | Project Initialization | How to Write a Book | Generate Project Structure
Writing Tools: Chapter File Generator | Generate Images | Restructure Chapters
Translation: Translate with DeepL | Translate with LM Studio | Translation CLI Commands
Export: Automatic Book Export | Export Shortcuts | Export to EPUB 2 | Export HTML to PDF (KDP)
Audio: Generate Audiobook
- Metadata: Modify
config/metadata.yamlto personalize your book details - Export Settings: Edit
config/export-settings.yamlto change section order per book type - Voice Settings: Edit
config/voice-settings.yamlfor audiobook TTS configuration
- manuscripta - Book production pipeline (export, translation, audiobook, project management)
- manuscript-tools - Manuscript validation, sanitization, and metrics
Refer to the Makefile Overview (Wiki) for common issues and solutions.
Found a bug or want to contribute? Pull requests and suggestions are welcome!
Released under the MIT License. See the LICENSE file for details.