The README had grown to 658 lines. It is now a short overview: what Überbringer is, a quick start, a table of the docs and the licence. Each topic it held has a document of its own: - docs/install.md: install.sh, what it leaves behind, and upgrading. - docs/docker.md: the image behind a reverse proxy, the env file, health checks, and the ntfy state volume and token file. - docs/configuration.md: loading, environment variables, a table of every key in every section, and what is logged. The list of log messages becomes a summary of what is logged and reported. - docs/security.md: the API secret, issuing tokens and their scopes, the header-file recipe that keeps tokens off command lines (moved from docs/api.md), the reverse proxy, image URLs, and what is never logged. - docs/ntfy.md: the ntfy subscriptions, securing the topics and the printer's token, with the token scripts unchanged. - docs/cli.md: the command line. - docs/development.md: running from source, the Go version, make targets, the gate, generated files, the layout, CI and releases. CLAUDE.md names the new docs: a config key is now documented in docs/configuration.md, and the layout and Go version in docs/development.md. docs/api.md, design.md and the job-store plan point to the docs that now hold what they referred to in the README. The release archives also carry the docs on running the daemon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
76 lines
3.5 KiB
Markdown
76 lines
3.5 KiB
Markdown
# Ü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.
|
|
- 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](https://ntfy.sh) 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`](https://git.anomalous.dev/57_Wolve/uberbringer/src/commit/bb73348433de1604c839de5fb8f8b2793e0e9518)
|
|
> 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:
|
|
|
|
```sh
|
|
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](docs/install.md) covers the rest,
|
|
and [docs/docker.md](docs/docker.md) covers the Docker image.
|
|
|
|
## Documentation
|
|
|
|
| Document | Covers |
|
|
|----------|--------|
|
|
| [docs/install.md](docs/install.md) | Installing on Debian or Ubuntu with `install.sh`, and upgrading |
|
|
| [docs/docker.md](docs/docker.md) | Running the Docker image behind your own reverse proxy |
|
|
| [docs/configuration.md](docs/configuration.md) | The config file, environment variables, every setting and the logs |
|
|
| [docs/security.md](docs/security.md) | The API secret, tokens and their scopes, and what never reaches the logs |
|
|
| [docs/api.md](docs/api.md) | The HTTP API: routes, print elements, blocks, modules and error codes |
|
|
| [docs/ntfy.md](docs/ntfy.md) | Printing ntfy topics: subscriptions, digests, quiet hours and securing ntfy |
|
|
| [docs/cli.md](docs/cli.md) | The command line |
|
|
| [docs/development.md](docs/development.md) | Building and testing, the package layout, CI and releases |
|
|
| [docs/design.md](docs/design.md) | Why the daemon is shaped as it is |
|
|
| [CHANGELOG.md](CHANGELOG.md) | The changes in each release |
|
|
|
|
[docs/swagger.json](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](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](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.
|