brochure-md

Open-source agent skill

Turn a short JSON file into folded brochures that print and fold right.

Tell your coding agent about your business. It writes a small JSON file and renders two print-ready pages: the outside and the inside. Print them back to back, fold, and you have a brochure.

npx github:isatimur/brochure-md render brochure.json

Page 2 · inside
The inside page of a guesthouse brochure: three panels with a picture, a heading and short text each, and a red call-to-action panel on the right
Page 1 · outside
The outside page of the same brochure: the inside flap, the back cover with a sketch map and contact details, and the front cover with an arched picture of the sea

Made for the printer

  • Two pages, one sheet.Outside and inside, imposed so the panels land behind each other. Flip on the short edge.
  • Folds that fit.The folded-in panel is 2 mm narrower, so the brochure closes flat. Letter fold, roll fold or bi-fold.
  • A4 and US Letter.Both landscape. The text shrinks a little before it ever runs out of room.
  • No dependencies.One Node script. Text is escaped, and Arabic or Hebrew mirrors both pages.

How it works

Three steps. You do the first. Your agent does the rest.

  1. Say what you need

    Describe the business, the offer and how to reach you. The agent asks for what is missing and never invents a fact.

    “Make a tri-fold for our guesthouse. Six rooms, breakfast at eight, book by phone.”

  2. Pick a look and check the flat preview

    The agent shows three themes side by side. Then it opens a flat preview with the panels in reading order.

  3. Print and fold

    Print both pages double-sided, margins none, flip on the short edge. Fold the flap in first, then the cover over it.

The flat screen preview of the guesthouse brochure: six panels in a row, front cover, inside flap, three inside panels and the back cover, each numbered
The screen preview. Six panels in reading order, rendered by the engine from one JSON file.

Why the flap is narrower

When a panel folds in, it needs a little room. Make every panel the same width and the edge of the flap pokes out, or the cover will not close. The engine takes the room from the folded-in panel.

Letter fold · A4 · inside page

Roll fold · A4 · inside page

Bi-fold · A4 · inside page

Optional fold marks print as small ticks at the top and bottom edge, so you can crease in the right place.

Five themes

Each theme has its own type, colour, shapes and layout. These are front covers, straight from the engine.

  • Voyage theme cover: a fat didone title under an arched picture of the sea, on deep teal with gold rules
    voyageVintage travel poster. Didone titles, sand paper, a vermilion stamp.
  • Calm theme cover: a light serif title above a stack of soft stones, on pale mist with a peach accent
    calmClinic calm. Light serif, soft shapes, teal and one peach accent.
  • Studio theme cover: a black and white elevation drawing of a building above a tight grotesk title
    studioArchitecture mono. Grotesk titles, mono text, hairlines, black and white.
  • Festival theme cover: a pink, blue and yellow sunburst picture above a giant condensed blue title on yellow
    festivalBold colour. Condensed capitals, hard shadows, tilted stickers.
  • Grove theme cover: a large flower in an arched window above a soft italic title, on pale sage
    groveWellness organic. Soft italic serif, arched windows, moss and fig.

Five example brochures

Every business here is invented. Open one to see the flat preview and the two printed pages. Each example also renders in all five themes.

  • Inside page of the guesthouse brochure in the voyage theme

    Gull Quay Guesthouse

    • Tri-fold
    • Letter fold
    • A4
    • Fold marks on

    A harbour bed and breakfast. Three sections, a booking panel, a sketch map and opening hours.

  • Inside page of the dental clinic brochure in the calm theme

    Brindle Lane Dental

    • Tri-fold
    • Roll fold
    • US Letter

    A family clinic. Short, reassuring sections and a clear way to book.

  • Inside page of the architecture studio bi-fold, with a hand-drawn building section

    Tolland Studio

    • Bi-fold
    • A4
    • Local SVG image

    A small architecture firm. A bi-fold with its own line drawing, loaded from a file next to the JSON.

  • Inside page of the street festival brochure in the festival theme

    Tuckermarsh Street Festival

    • Tri-fold
    • Letter fold
    • A4

    A one-day community festival. Music, food, families, and a call for volunteers.

  • Inside page of the yoga retreat brochure in the grove theme

    Hollow Oak Retreat

    • Tri-fold
    • Letter fold
    • US Letter

    A three-day yoga retreat in a wood. Arched pictures, leaf bullets and a quiet call to action.


Install

Claude Code plugin

/plugin marketplace add isatimur/brochure-md
/plugin install brochure-md@brochure-md

Any agent, via skills.sh

npx skills add isatimur/brochure-md

Command line

npx github:isatimur/brochure-md render brochure.json --out brochure.html

Node 20 or newer. Nothing else to install. PDF export works when Playwright is already on your machine.