On this page
What it is#
PrintFlow turns online form submissions into paper. A Google Form posts to a webhook, and the Go backend downloads any attachments from Google Drive, renders the response as a printable PDF (a guest registration form, for example) and sends it to a network printer. The same dashboard drives the scanner, and it also picks up pages scanned with the printer's own button.
Stack#
A Go backend with PostgreSQL, a Next.js dashboard that streams job status over server-sent events, and Docker Compose for production. Printing goes over IPP, LPD or a raw socket, or through CUPS; scanning goes through SANE.
The hard part#
Real hardware. The printer and scanner are one device but answer on different protocols, so the backend discovers it once and uses that address for both. Scanners also name their flatbed differently ("Flatbed", "Platen", "Glass"), so an empty document feeder falls back through all three. Jobs move through a state machine (pending, downloading, processing, printing, then done or failed), and anything interrupted by a restart is reset on boot instead of lost. Processed files are archived with a SHA-256 checksum.
Status#
Maintained. The code is private.