Receipt printing for agents and scripts

Print receipts from agents and scripts.

Slipbridge is a local CLI that turns Markdown, text, images, and JSON templates into ESC/POS jobs for thermal receipt printers.

Agent session local
Look up a simple chocolate chip cookie recipe and print it for the kitchen receipt printer.
I found a compact recipe. I’ll format it as Markdown and send it to Slipbridge.
tool call
slipbridge print ./cookies.md \
  --printer tcp://epson-m30:9100 \
  --paper 80mm \
  --json
Print a pickup ticket for order 1842 with the customer name, shelf, and two notes.
I’ll render a short receipt from the order details and print it on the Epson.
tool call
slipbridge print ./pickup-1842.md \
  --printer tcp://epson-m30:9100 \
  --paper 80mm \
  --json
Make a closing checklist for the front counter and print one copy.
I’ll turn the checklist into Markdown and send it to the receipt printer.
tool call
slipbridge print ./closing.md \
  --printer tcp://epson-m30:9100 \
  --paper 80mm \
  --json
01 Markdown Print notes, tickets, and receipts 02 Images Send printer-ready PNGs 03 Templates Render JSON through Handlebars 04 JSON output Stable results for agents and scripts

What it handles

Give it normal files. Slipbridge handles the printer details.

Most automation can already write Markdown, JSON, text, or images. Slipbridge gives that output a path to a thermal receipt printer so every script doesn’t have to speak ESC/POS.

MD

Markdown and text

Print tickets, checklists, kitchen notes, and other receipt-width output.

PNG

Images

Send a PNG through the same print path used by Markdown and templates.

JSON

Templates

Merge JSON data into a Handlebars template before printing or previewing.

Workflow

Find a printer, preview the output, print the job.

$ slipbridge printers list --json
{
  "ok": true,
  "printers": [
    { "id": "tcp://epson-m30:9100", "transport": "tcp" }
  ]
}

Built for automation

A small interface around real printer work.

Stable command output

Pass --json so agents and scripts can read printer ids, resolved drivers, jobs, and errors.

ESC/POS receipts

Talks to thermal receipt printers over USB or TCP. Tested on an Epson TM-m30II-H.

Queued jobs

Queueing and per-printer locks keep concurrent jobs from writing over each other.

Install

Install from a local checkout.

Slipbridge is a local Rust CLI. The public repository is not up yet, and the packages on crates.io and npm are stale snapshots. From a checkout, install with Cargo and run doctor.

cargo install --path . --force
slipbridge doctor --json