BONVOYAGE

An open protocol for ticket printers

Send a ticket to a friend's printer.

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.

BONVOYAGE
ticket from Jan

Koffie om 10u? Ik trakteer.

[ ] ja, graag
[ ] nee, te druk

signed✓ Jan
sealed foryou only

do 26/11 · 10:02

How it works

A sealed note, a mailbox, and two printers.

Both printers only ever connect outward, to a relay. The relay is a mailbox that holds sealed tickets until the recipient collects them.

SenderYour printer

Signs the ticket with its own key, then seals it for the recipient.

→drops
In betweenThe relay

Stores unreadable bytes. Never learns the content or who sent it.

←collects
RecipientTheir printer

Opens it, checks the signature and its own rules, then prints.

  1. Pair

    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.

  2. Seal and drop

    The sender builds a ticket from simple blocks, signs it, seals it for you and drops it in your inbox on the relay.

  3. Collect and print

    Your printer picks it up on its next round, verifies who it is from, applies your limits and quiet hours, and prints.

Principles

Paper comes out in someone's home. That sets the rules.

🔒

Private by design

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.

🏠

Nothing exposed at home

No open ports, no tunnels, no public address for your printer. It makes ordinary outgoing HTTPS requests and nothing else.

✋

The recipient decides

Strangers are dropped. Daily limits, quiet hours and approve-before-print are yours to set, and they always win.

🔧

Open to any printer

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

What a relay can and cannot know.

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.

It can never learn

  • what a ticket says or shows
  • who sent it, or the sender's address
  • who your contacts are
  • how long a ticket really is (tickets are padded to fixed sizes)

It does see

  • that an inbox received something, and when
  • the padded size of each sealed ticket
  • which of your contact cards was used (as an opaque ID)
  • the network address of a connecting client (this relay keeps no request logs)

Build a client

If you have a ticket printer, you can join.

A ticket describes content, never printer commands. Every recipient renders it in its own style, for its own paper width.

  • Read the spec. It is one document.
  • Make your code pass the test vectors: keys, a signed and sealed message, and messages you must refuse.
  • Add your own storage, a loop that collects from your inbox, and your printer.

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

This relay is free to use.

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.

Per ticket
64 KB
Waiting per inbox
50
Kept for
7 days
New inboxes
open

Rather run your own?

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