---
title: Receipt guestbook — the hardware plan
description: What it takes to turn the receipt-rendering proof of concept into a printer that actually prints.
pubDate: 2026-10-31
draft: true
tags: ['lab', 'printers']
---

The Lab now has a browser proof of concept of the receipt guestbook: the layout, the
barcode, the torn edge — all rendered while you type. This post is the plan for the
half that needs hardware.

**The printer is a compact thermal model with a serial interface.** The payload is small
(under a hundred bytes), so the whole flow can be one request: the web form POSTs
name, message and receipt number to a tiny endpoint on the lab domain; the endpoint
templates ESC/POS command packets — header, feed, alignment, lines, barcode, cut —
and writes them to `/dev/serial0`.

**Failure modes worth designing for.** Paper out must produce a documented error and
an email note, not a silent 200. The guestbook should also keep every signature in the
log file even if printing fails, so the gallery can catch up later.

**The gallery loop.** A cron job photographs the take-up spool daily and appends to the
gallery page. That is the only part guests ever see again; it also gives the printer
an audit trail of everything it has actually printed, which is half the charm of the
project.

Status: endpoint skeleton sketched, printer not yet acquired.
