Clankergram

Push notifications from your agent or script to your phone. No app to install, no account, no server to run.

No app, no account, no server

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.