voucher-md

Voucher · open-source agent skill

Make gift vouchers with unique codes for your shop, café or studio, and keep a list of who redeemed what.

Tell your coding agent about your shop. It writes the vouchers, the sheets to cut, the envelope cards, a register and a till page that works offline.

npx github:isatimur/voucher-md render voucher.json --out-dir vouchers

A boutique foil voucher for an Arabic bakery: gold value on a bottle-green card with a QR code and a tear-off stub A kraft paper voucher for a bookshop café: a green rubber-stamp value of 25 dollars, a handwritten message and a QR code A bright yellow and blue voucher for a climbing gym: 20 percent off on a tilted sticker

How it works

Three steps, no design work.

  1. Tell your agent

    Say what you sell and what the voucher is worth: an amount, a percentage off, or a named experience. Give the expiry date and your own terms.

    “Make 12 gift vouchers for my pottery studio. One wheel-throwing class each, valid until June.”

  2. Pick a look

    The agent writes a small JSON file, checks it, and shows three themes side by side. You choose. It makes every code and every file.

  3. Print and redeem

    Print the sheets, cut along the marks, hand them out. At the counter, open the till page, type the code and mark it redeemed.

What you get

One command, a whole voucher desk.

Every image here is real output, taken in a browser from the files the engine wrote.

A US Letter sheet with four kraft vouchers and cut marks in the margins

Sheets with cut marks

Three DL or four A6 vouchers to a sheet, on A4 or Letter. Print, cut, done.

A calm spa voucher in Portuguese on A6, with a rounded tear-off stub at the foot

DL and A6, with a stub

Tear the stub off at the till. It keeps the code and a tick box.

The till page: a code typed in, a green panel that says valid and not redeemed yet, and a list of one redeemed voucher

An offline till page

One file. Type a code, see the value and the recipient, mark it redeemed. It works without a network, and it warns about unknown, used or expired codes. Try the live demo.

A sheet of small envelope inserts in the spa theme, each with a short message and the shop address

Gift-envelope inserts

A small card with the message, eight to a sheet.

A printable redemption register: a table with a tick box, number, code, recipient, from, value, date and staff columns

A redemption register

The same list as a CSV for your spreadsheet and as a printable table with tick boxes.

Codes

Every voucher gets its own code.

KILN8EHTQPTR8C6N

  • KILN is your prefix.
  • 8EHT QPTR is random, made from a seed. No look-alike letters: no 0, 1, I or O.
  • 8C6N is a check made with your secret, using HMAC-SHA-256.

What the check does, and what it does not

It lets you verify that your shop issued a code. Run verify with your secret and a forged code fails.

It does not stop copying. A photo of a voucher carries the same code. The redeemed mark in the till is what stops a second use.

Your terms and expiry wording print exactly as you write them. The tool adds no legal text. Gift-card rules differ by country, so check what yours require.

Themes

Five looks. Each has its own type and layout.

Any theme works for any shop and any language. Open one to see the full page.

Boutique foil theme on A6: gold lettering on a bottle-green card with a double frame, in Arabic
foilBoutique. Gold on bottle green, a Didone face.
Café kraft theme on A6: brown paper, a green stamp for the value and a handwritten message
kraftCafé. Packing paper and a rubber stamp.
Spa calm theme on A6: mist green with water ripples and light type
calmSpa. Mist green, ripples, light type.
Kids' activity bright theme on A6: yellow and cobalt with a tilted value sticker and thick outlines
brightKids' activities. Stickers and fat type.
Gallery minimal theme on A6: white page, black hairlines and one red dot
galleryMinimal. Hairlines and one red dot.
Gallery minimal voucher on DL for a pottery studio: One wheel-throwing class, with a message and a QR code Spa calm voucher on DL in Portuguese: 60 euros for a massage or a facial

Examples

Five made-up shops. Open any.

The businesses and people are invented. The codes use a public demo secret, so they are samples.

Pottery studio · English · experience

Kiln & Clay Studio

One wheel-throwing class, with a name and a message on each voucher.

Bookshop café · US English · amount

Marginalia Books & Coffee

25 dollars, no expiry, recipients read from a CSV file.

Spa · Portuguese · amount

Spa Água Mansa

60 euros. All labels in Portuguese, dates and money in the Portuguese style.

Climbing gym · English · percent off

Boulder Barn Climbing

20 percent off a junior pass. Twelve blank vouchers with no names.

Bakery · Arabic · amount

فرن الياسمين

100 dirhams. Right to left, with Arabic labels, dates and a foil theme.

Install

Pick the way you work.

Claude Code plugin

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

Any agent, via skills.sh

npx skills add isatimur/voucher-md

Command line

npx github:isatimur/voucher-md render voucher.json --out-dir vouchers

Node 20 or newer. Nothing else to install. The CLI makes a secret for you and saves it as secret.txt. Keep that file and the output folder private.