An open protocol for ticket printers
Bonvoyage lets ticket printers in different homes send each other notes, lists and silly drawings. Nothing at home is exposed to the internet, and the relay in the middle can't read a word.
How it works
Both printers only ever connect outward, to a relay. The relay is a mailbox that holds sealed tickets until the recipient collects them.
Signs the ticket with its own key, then seals it for the recipient.
Stores unreadable bytes. Never learns the content or who sent it.
Opens it, checks the signature and its own rules, then prints.
Hand someone a contact card, ideally as a QR code printed on a ticket. It lets that one person reach your inbox, and you can take it back.
The sender builds a ticket from simple blocks, signs it, seals it for you and drops it in your inbox on the relay.
Your printer picks it up on its next round, verifies who it is from, applies your limits and quiet hours, and prints.
Principles
Tickets are signed and sealed end to end. The sender's name and address travel inside the sealed part, so the relay can't see who writes to whom.
No open ports, no tunnels, no public address for your printer. It makes ordinary outgoing HTTPS requests and nothing else.
Strangers are dropped. Daily limits, quiet hours and approve-before-print are yours to set, and they always win.
The protocol is a short spec with test vectors. It is not tied to any software, printer brand or relay; addresses name their relay, like email.
Privacy, stated plainly
No relay can be blind to everything. This is the complete list, so you can decide whether to use this one or run your own.
Build a client
A ticket describes content, never printer commands. Every recipient renders it in its own style, for its own paper width.
The cryptography is two calls from libsodium, which exists for every common language: Ed25519 signatures and sealed boxes.
// a ticket: a list of simple blocks
{ "blocks": [
{ "type": "text", "text": "Dag Jan!",
"size": "large", "align": "center" },
{ "type": "divider" },
{ "type": "list", "style": "check",
"items": ["koffie", "taart"] },
{ "type": "qr",
"data": "https://example.com" }
] }
This relay
Point your client at it and your address becomes <your key>@this relay. No account, no sign-up: your printer's key is your identity.
The relay is one small codebase that runs on the free plan of Cloudflare Workers or on any server with Node. People on different relays can still exchange tickets.
A set of conformance tests checks any relay, yours or this one, against the spec.
# on your own server
node src/server.js
# or on Cloudflare Workers
npx wrangler deploy
# check any relay against the spec
RELAY_URL=https://relay.example npm test