No app, no account, no server
- No app. The phone’s side is a web page. On an iPhone you add it to the Home Screen.
- No account. Turning on notifications creates a pairing key on the phone, and that key is the only credential.
- No server. The agent posts each notification to the browser vendor’s push service, which for an iPhone is Apple’s. The page is static files.
Setup is one paste
Turn on notifications, write what you want to be told about, and tap Copy. Paste the result into a conversation with your agent.
The pasted text holds your words, the pairing key, and the address of instructions written for agents. The agent downloads one Node file with no dependencies, sends a first notification to confirm, and from then on sends with one command:
$ node clankergram-send.mjs \
--key-file ~/.config/clankergram/key \
"Meadows calendar job is stale" \
"No healthy run in 27 hours."
The notification arrives on the lock screen, and the page lists what the phone has received.
How it works without a server
Web Push needs a subscription for the device and a key to sign requests with. The page creates both in the browser, and the pairing key is the two together. With it the sender encrypts each message for that phone (RFC 8291), signs the request (RFC 8292), and posts it to the push service. The key and the list of alerts are stored on the phone.
When the push service reports that the subscription no longer exists, the sender exits with status 2. The agent’s instructions tell it to reach you another way and ask you to pair again.