57_WolveandClaude Opus 5.5 cee528aa83 Record that a person, not the daemon, reprints a job
The owner decided that the daemon never reprints a job by itself. It
cannot tell a receipt that printed from one that is missing: an
uncertain job may have printed, and in two narrow cases a job reads
done before it has printed. A reprint when the cover closes would not
reach the second of those, whose job reads done, and it would print
duplicates, since the printer resumes its own buffer when the cover
closes, as stage 1d's third paper check showed; after a cut-short image
the printer can also still be inside the image command. So those cases
stay as they are, by design.

A person reprints instead, through the API, by ID or by category.
POST /api/v1/jobs/{id}/reprint reprints one stored job, as often as
asked. In place of the ID, last reprints the last completed job, one
that read done and never one still waiting or printing; failed retries
the last failed print; and uncertain reprints every uncertain job. A
job a category reprints is marked, so no category takes it again, and
each answer names the new job, so a person can print it again by its
ID. A reprint takes a job from any source: a print or module route, an
ntfy card or digest, and later a webhook. The routes take no query
parameters: every input goes in the JSON body, an empty body or none
means the defaults, and the printer, with several, is a body field. No
message a source receives, an ntfy message included, makes the daemon
print a job again.

design.md records the decision beside the confirmation and rewords the
open cases as accepted choices; its Planned next item 1 names the
routes and says their questions await the owner. docs/plans/job-store.md
gains decision 24 in phase 2 and open questions 25-39 on its details,
each with an assumed default and its trade-off: last after a reprint,
which failed jobs failed takes, the order of uncertain reprints, when a
job is marked, an age limit for uncertain, several printers, an empty
category, the answer, which jobs an ID may name, the tokens, pruned
content, repeats and the duplicate check, a REPRINT mark, a CLI command
and clearing the printer first. The Status line, the overview and phase
2, its tests and paper check included, take them in, and phase 5 no
longer lists a reprint route. docs/plans/templates.md says that a
webhook replay is the sender's resend, not a reprint command. No code,
route or API document changes until phase 2 builds the routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:28:38 -06:00
2026-11-30 00:04:14 -06:00
2026-12-01 16:48:57 -06:00

Überbringer

Bringer of information. A small daemon that takes print jobs as JSON over a REST API and prints them on an EPSON ESC/POS network receipt printer.

  • Jobs return at once with an ID and print in order on a background worker, with retries while the printer is offline.
  • With a state directory, jobs are kept on disk: waiting jobs print after a restart, and a restart never prints a receipt twice.
  • UTF-8 text is transcoded to the printer's code page and wraps at word boundaries for the paper width.
  • Text styles and sizes, QR codes, barcodes, images and raw ESC/POS.
  • Boxes, rules, key-value rows and lists, laid out for the paper when the job prints.
  • Modules turn a few plain fields, such as a note or a notification, into a laid-out receipt.
  • It can subscribe to ntfy topics and print their messages, with a paper budget and quiet hours.
  • Tokens can be limited to modules, and only tokens issued for it can send raw ESC/POS.
  • A preview shows the lines a job prints without using paper, and /healthz reports the printer's status.

Note

Pre-refactor code: no AI was used. The original Überbringer (v0.1.x), up to commit bb73348 from January 2025, was written without any AI. That commit shows the code as it was before the 0.2 refactor.

Quick start

On a fresh Debian or Ubuntu host whose domain points at it, this installs the latest release as a systemd service behind Caddy, with HTTPS:

sudo ./install.sh printer.example.com you@example.com 192.168.1.245

The arguments are the domain, the email address for the certificate and the printer's address. docs/install.md covers the rest, and docs/docker.md covers the Docker image.

Documentation

Document Covers
docs/install.md Installing on Debian or Ubuntu with install.sh, and upgrading
docs/docker.md Running the Docker image behind your own reverse proxy
docs/configuration.md The config file, environment variables, every setting and the logs
docs/security.md The API secret, tokens and their scopes, and what never reaches the logs
docs/api.md The HTTP API: routes, print elements, blocks, modules and error codes
docs/ntfy.md Printing ntfy topics: subscriptions, digests, quiet hours and securing ntfy
docs/cli.md The command line
docs/development.md Building and testing, the package layout, CI and releases
docs/design.md Why the daemon is shaped as it is
CHANGELOG.md The changes in each release

docs/swagger.json is the OpenAPI 3.1 document of the API, generated from the route table; the daemon serves it at GET /openapi.json.

License

Copyright © 2025-2026 William Gill.

Licensed under the European Union Public Licence v. 1.2 (EUPL-1.2). The full text is in LICENSE.txt, and translations into every official EU language are equally valid. Releases up to and including 0.1.2 were published under the GNU Affero General Public License v3.0.

The binary contains third-party software under licenses of its own: the Go standard library and runtime, and Go modules. THIRD-PARTY-LICENSES.md lists them with their license and notice texts. The file comes with every release archive, and the Docker image keeps it with LICENSE.txt in /usr/share/licenses/uberbringer/. uberbringer licenses prints the same text.

S
Description
EPOS Network Printer via REST API
https://anomalous.dev
Readme EUPL-1.2
8.3 MiB
0 Stars 1 Watchers 0 Forks
v0.1.2
Latest
2025-01-13 04:34:27 +00:00
Languages
Go 98%
Shell 1.6%
Makefile 0.2%
Dockerfile 0.2%