postcard-md

Open-source agent skill

Turn a short JSON file into print-ready postcards, front and back.

Tell your coding agent who the card is for. It writes the file, checks it, and makes two pages: the front, then the back. Print them at home or send them to a printer.

npx github:isatimur/postcard-md render card.json

A holiday card in the riso theme: blue headline Warm wishes, a pink and blue halftone sun, wavy blue lines The back of a travel postcard: a message on the left, a stamp box and four address lines on the right A vintage travel postcard in the letterpress theme: Greetings from Saltmarsh Bay over a mustard sun and navy hills

How it works

Three steps, one small file.

  1. Say what you need

    “A thank-you card for my candle shop.” The agent asks only for what is missing: the words, the place, the paper size.

  2. Pick a theme

    It shows your card in three themes side by side. You choose. Nothing is invented: it uses your words.

  3. Print it

    You get one file: page 1 is the front, page 2 is the back. Add bleed and crop marks, or put two or four on a sheet.

{
  "theme": "letterpress",
  "front": { "greeting": "Greetings from", "headline": "Saltmarsh Bay" },
  "back": {
    "message": "Dear Ada, the tide goes out for a mile here...",
    "address": ["Ms Ada Wren", "14 Larkspur Lane"]
  }
}

Five themes

Each one is its own print.

Every image here is real output from the engine, front and back. Open one to see the page itself.

Letterpress theme front: Greetings from Saltmarsh Bay in a fat display serif under a mustard sun Letterpress theme back: ivory paper, a navy double frame, a divider with a diamond
letterpressVintage travel print. Navy ink, a mustard sun, a fat display serif. travel-greeting
Swiss theme front: a huge condensed 14 June beside a red disc on a hairline grid Swiss theme back: sans-serif message, a red outlined stamp box, ruled address lines
swissModernist. Flush-left condensed type, a hairline grid, one red disc. save-the-date
Botanical theme front: Fernbrook Candles in italic serif among soft watercolour leaves and blossom Botanical theme back: a thank-you message, a dotted stamp box and a watercolour sprig
botanicalWatercolour feel, made in pure CSS and SVG. Soft washes, an italic serif. thank-you
Riso theme front: a blue headline with a pink shadow, a halftone sun and wavy lines in two inks Riso theme back: blue text on speckled paper, pink and blue edge bars, a tilted stamp box
risoBold two-ink duotone. Halftone dots, slight misregistration, speckled paper. holiday-card
Gallery theme front: a dusk painting full bleed with a white museum label bottom left Gallery theme back: white wall, hairline divider, a quiet grotesque and italic serif address lines
galleryMinimal. A white wall, a large quiet serif, a museum label. art-print

Full-bleed pictures

Bring a picture, or let the type do the work.

Add front.image and each theme turns it into a front in its own way: a letterpress plaque, a Swiss tab, a duotone print. The picture here is an illustration made for the examples.

Letterpress theme with a picture: a dusk illustration under an ivory plaque and a double frame
letterpressivory plaque
Swiss theme with a picture: a dusk illustration with a white tab and a red edge
swisswhite tab
Riso theme with a picture: the dusk illustration printed as a blue and pink duotone
risolive duotone

Made for printing

  • Two sizes. A6 (148 × 105 mm) and US 4×6 in. Page 1 is the front, page 2 is the back.
  • Bleed and crop marks. --bleed --marks runs the art past the cut and draws the marks for a trimmer.
  • 2-up and 4-up sheets. --sheet 2 fits A4 or Letter. --sheet 4 fits A3 or Tabloid. The backs are mirrored so they land behind the fronts when you flip the sheet.
  • Text that fits. Long messages shrink to fit their box, and the print check keeps every line inside the safe area.

Install

Pick the way you work.

Claude Code plugin

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

Any agent, via skills.sh

npx skills add isatimur/postcard-md

Command line

npx github:isatimur/postcard-md render card.json --bleed --marks

Node 20 or newer. Nothing else to install. PDF export needs Playwright, and is optional: you can also print the HTML from any browser.

Examples

Five cards, all fictional.

  • Travel greetingA seaside postcard with a handwritten-style message.letterpress · A6
  • Small-business thank-youA candle maker thanks a first-time customer.botanical · 4×6
  • Save the dateA wedding date, a hall and an RSVP address.swiss · A6
  • Art print cardA studio card with a full-bleed picture.gallery · A6
  • Holiday cardA family note to friends, ready to address.riso · 4×6