The bell that rings until someone answers.
Hansho lets any backend reach a specific person's iPhone and Apple Watch: notifications, Live Activities, widgets, and pages that ring like an alarm until someone acknowledges them.
Self-hosted hub The server your backend talks to is yours to run and to read: AGPL-3.0.
Acme Ops · Page
acme-ops.example
Checkout is down
Error rate 38% for 4 min.
Ringing. Again every 2 min until someone acknowledges.
Five strike codes
Strike one.
- PassiveLands in the inbox, no sound
- ActiveA normal notification
- Time-sensitiveBreaks through Focus
- CriticalSounds even on silent
- PageRings until someone acknowledges it on any device
In Edo, the watchman told the town how close a fire was by how he struck the bell. Hansho's five levels work the same way.
Page
A channel caps the level it delivers, so pages go to oncall, a channel created with "max_level":"page".
curl -X POST https://hub.example.com/api/v1/messages \
-H "Authorization: Bearer $KEY" \
-H 'Content-Type: application/json' \
-d '{"external_user_id":"user-42","channel":"oncall",
"level":"page",
"title":"Checkout is down",
"body":"Error rate 38% for 4 min.",
"page":{"interval_s":120,"max_retries":5}}'await hansho.sendMessage({
externalUserId: "user-42", channel: "oncall", level: "page",
title: "Checkout is down",
body: "Error rate 38% for 4 min.",
// Rings again every 2 minutes until acknowledged on any device.
page: { intervalSeconds: 120, maxRetries: 5 },
});res, err := c.SendMessage(ctx, hansho.Message{
ExternalUserID: "user-42", Channel: "oncall", Level: hansho.LevelPage,
Title: "Checkout is down",
Body: "Error rate 38% for 4 min.",
// Rings again every 2 minutes until acknowledged on any device.
Page: &hansho.PageOptions{IntervalSeconds: 120, MaxRetries: 5},
})Answered, or it keeps ringing
A page goes out again every two minutes until someone acknowledges it on any of their devices. Then it goes quiet everywhere, and your backend hears who answered.
One page, start to finish
- 03:12:04
POST /api/v1/messageslevel page, channel oncall: 202 queued - 03:12:05
message.deliveredthe page reached a device - 03:14:05
resentno answer yet, attempts: 1 - 03:14:31
message.ackedacknowledged on Apple Watch; every device stops ringing
- PagesRe-sent every
interval_s(120 s by default). Aftermax_retries(5) it waits one more interval, then expires and sendsmessage.expired. - Any messageAdd an action with
"ack": trueand an ordinary notification asks for an acknowledgement too. The inbox marks it until it gets one. - Webhooks
message.ackedwhen someone acknowledges,message.dismissedwhen they dismiss it without acknowledging,actionfor any other button. - Status
GET /api/v1/messages/{id}says queued, delivered, paging, acked, expired or undeliverable, with the attempts so far.
How it works
Your backend talks to a hub you run. The hub encrypts each message for one device and hands it to our relay, which is the only thing allowed to push to the app.
- YouYour backendAny language. SDKs for Node, Go, Python, Ruby, PHP, Java, .NET and Rust, or plain HTTPS and JSON.
- YouHansho HubSelf-hosted, AGPL-3.0. Holds pairings, channels, templates and sounds. Encrypts every message.
- UsHansho RelayHolds the Apple push key. Forwards for verified hubs. Stores no message content.
- AppleApple PushApple Push Notification service delivers to the device.
- The personiPhone and WatchDecrypts, checks the hub's signature, then rings, banners or files it.
And back. Acknowledgements, dismissals and button presses travel back to the hub, which posts them to your backend as signed webhooks: message.acked, message.dismissed, action.
Run a hub
Start the Hansho Hub next to your backend with Docker, register it with the relay and prove you own its domain.
Pair by QR
Your backend asks the hub for a single-use pairing ticket and shows it as a QR code. The person scans it in the app and sees your name and verified domain before approving.
Send
Call the hub with an SDK for Node, Go, Python, Ruby, PHP, Java, .NET or Rust, or plain HTTPS. Pick a channel and a level; the phone and the watch do the rest.
We hold the key, not the data
Apple only lets the holder of an app's push key reach it, so someone has to run that part. We do, and we built it to know as little as possible.
- Self-hosted hubThe server your backend talks to is yours to run and to read: AGPL-3.0.
- End to endAlerts are encrypted on your hub for one device and signed by it. The app decrypts on the device and blocks anything it cannot verify.
- RelayStores no message content and logs only hub and pairing ids.
- Verified domainA hub proves it controls its domain before the relay forwards anything, and the app shows that domain next to your name.
- No accountsNobody signs up. Pairings sync through the person's own iCloud.

Live Activities and widgets
Not everything is an alarm. Put a deploy, an order or an incident on the lock screen and in the Dynamic Island, and keep a number on the home screen.
60% of the rollout · 7 of 12 instances
Illustration with placeholder data.
- Live ActivitiesStart, update and end them from your backend. Updates go out at priority 5 or 10, with up to 4 KB of state, encrypted by default.
- Widget feeds
PUT /api/v1/feeds/{id}for one person, or for everyone paired with you. Widgets fetch their data from your hub. - No template neededWithout one, the app picks a layout from the data's shape: a value with min and max is a gauge, a value is a big number, items with a state are a status grid, other items are a list.
Your layout, one renderer
Register a template once and send only data. The app draws it in the expanded notification, the Live Activity and the widget. Try your own in the builder.
{"type":"vstack","spacing":10,"align":"leading","children":[
{"type":"hstack","spacing":8,"children":[
{"type":"symbol","name":"shippingbox.fill","size":20},
{"type":"text","text":"{{title}}","style":"headline"},
{"type":"spacer"},
{"type":"badge","text":"{{env}}"}]},
{"type":"foreach","each":"items","max":5,"spacing":6,"body":
{"type":"hstack","spacing":8,"children":[
{"type":"text","text":"{{item.name}}"},
{"type":"spacer"},
{"type":"text","text":"{{item.status}}","style":"caption"}]}}]}{
"title": "Deploys",
"env": "prod",
"items": [
{"name": "web 4.14.0", "status": "ok"},
{"name": "api 2.9.1", "status": "ok"},
{"name": "worker 1.3.0", "status": "slow"},
{"name": "cron 0.8.2", "status": "ok"}
]
}Edit this one or start from an example, see it as a notification, a Live Activity or a widget, in light and dark.
Deploys
prodweb 4.14.0
ok
api 2.9.1
ok
worker 1.3.0
slow
cron 0.8.2
ok
- A small set of partsStacks, spacers, text, SF Symbols, images, progress bars, gauges, timers, badges, dividers, and
foreachfor lists. - Plain data
{{placeholders}}and bindings read the message data. No expressions, no code on the device. - Checked on saveAt most 8 deep and 64 nodes; unknown properties are rejected with the field name.
For the person it rings for
Many of them are not technical, and they get the last word: who may reach them, on which channel, and how loudly.

Inbox. What still needs you sits on top with its Acknowledge button, a ringing page first. Everything else follows by day.

Message. A critical message with its actions.

Senders. Every sender shows its name, its verified domain and the date you paired. Its channels sit underneath.

Channel settings. Mute a channel, lower how loud it may ring or change its sound. The most the sender may use stays in view.
On the wrist
The page that rings the phone rings the watch, and either one can answer it.
- AcknowledgeOne tap on the watch acknowledges the page and stops it on the iPhone too.
- InboxRecent messages and their senders, readable at a glance.
- No setupPairings arrive through the person's iCloud, so the watch knows every sender the phone does.


Screens from a development build. Acme Ops and its domain are placeholders, not customers.
Do I have to run a server?
Yes, one: the Hansho Hub. It runs next to your backend as a Docker container or a single Go binary, under AGPL-3.0, and it keeps your pairings, channels, templates, sounds and message history.
You do not run the relay. Only the holder of Hansho's Apple push key can push to the app, so we run that part.
What does the relay see?
Only what it needs to forward a push. It stores no message content and logs only hub and pairing ids. A device's push token is sealed with a key only the relay has; your hub stores the sealed blob, not the token.
It keeps a revocation list keyed by pairing id, so an unpaired sender stops working, and rate-limit counters. It forwards pushes only for hubs that proved they control their domain.
Can the relay or Apple read the messages?
No. Your hub encrypts alert content for one device, with a key derived when the person paired, and signs it. The device decrypts it and checks the signature; anything it cannot verify is blocked, and the app says so.
Live Activity content is encrypted the same way by default. Setting HUB_LA_ENCRYPT=false on your hub sends it as plaintext to Apple's push service; the relay never stores or logs it.
The alert you can attach to a Live Activity start or update is the exception: its title and body are not encrypted, so keep anything private out of them.
Do the people I page need an account?
No. They install the app and scan a QR code from your product. Before they approve, the app shows your display name and your verified domain.
Pairings sync through their own iCloud, which is how their Apple Watch and a reinstalled app pick them up. They can unpair at any time.
What happens when nobody acknowledges a page?
The hub sends it again every interval_s (120 seconds by default) until someone acknowledges it on any device. After max_retries resends (5 by default) it gets one more interval, then expires and your backend gets message.expired.
If the person has not allowed alarms, pages still arrive as time-sensitive notifications, and the app tells them how to let pages ring.
Can a sender make everything a page?
Not past what its channel allows: each channel has a default and a maximum level, and a message can only go as high as its channel. On the receiving side, the person can mute any channel, lower the most urgent level it may use, or change its sound.
Which languages can send?
Anything that speaks HTTPS and JSON. There are official SDKs for Node and TypeScript, Go, Python, Ruby, PHP, Java and Kotlin, .NET and Rust, all MIT, and each one also verifies webhook signatures for you.
Which devices does the app run on?
iPhone and Apple Watch. A Mac app is planned for a later version.
Does this website track me?
No. hansho.app is static. It sets no cookies, runs no analytics and loads its fonts from its own server.
Ten minutes to a ringing phone
Run the hub, pair your own phone, send a page, and acknowledge it from your wrist.
The app is built for iOS and watchOS; a Mac app is planned for a later version. It is in public beta: join on TestFlight.
Hanshohan·shō, the fire-watch bell