Files
wekan/docs/Features/Notifications/ntfy.md
T
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00

4.9 KiB

Notifications on your phone with ntfy

What it is

Each member can have their WeKan notifications also pushed to their phone or browser, without e-mail. ntfy is a free, open source push service with Android and iOS apps: WeKan sends every notification to an ntfy topic of the member's own (#5148). Browser notifications do the same with no app at all, through the browser's own push service (#2026).

Read more

How to use it

ntfy.

  1. In the ntfy app, subscribe to a topic. On the public server ntfy.sh anybody who knows a topic's name can read it, so use a long, secret name - or run your own ntfy server with access control.
  2. In WeKan: Member Settings → Notification Settings → ntfy phone notifications. Paste the topic's address into Topic address (https://ntfy.sh/a-long-secret-name or https://ntfy.example.com/team), add an Access token (optional) if the topic needs one, tick Send my notifications to ntfy and save.

Each notification you would get in WeKan - same boards, same watching, same activity kinds left out under Which activity notifies me - also arrives in the app: the board and card as the title, what happened as the message, and a tap opens the card.

Browser notifications. Without any app: Member Settings → Notification Settings → Browser notifications on this device → Turn on for this device. The browser asks for permission, and from then on every notification you get in WeKan also pops up from that browser - even when WeKan's tab is closed - and a click opens the card. Turn it on in each browser and device you use; up to ten per account. Turn off for this device stops it.

How the numbers are calculated

From models/lib/ntfy.js and models/lib/webPush.js:

  • A topic name is 1 to 64 letters, digits, _ or -; the address is at most 500 characters, http or https, with no user, password, query or fragment.
  • The token is at most 200 printable ASCII characters.
  • The message is cut at 4000 characters and the title at 250; the request times out after 10 seconds.
  • Browser notifications: at most 10 devices per account (MAX_SUBSCRIPTIONS); adding an eleventh drops the oldest. A push lives 3600 seconds (TTL) at the push service and times out after 10 seconds; a device whose push service answers 404 or 410 is forgotten. The methods are rate-limited to 10 calls per 10 seconds per connection.

How it works in WeKan

ntfy.

  • ntfyRequest() builds a JSON publish (POST to the server's root with { topic, title, message, click }), so a title in any language needs no header encoding; server/notifications/ntfy.js sends it.
  • The topic address and token are yours alone: they are saved through your own account, never shown to other members, and never sent to browsers.
  • They go through WeKan's SSRF guard like every outgoing webhook. An ntfy server on WeKan's own network is reached only when a site admin lists it under Admin Panel → Settings → Global Webhooks → Internal destinations.
  • It is best effort, like any phone push: an ntfy server that is down only leaves a line in WeKan's server log, and your e-mail and in-app notifications are unaffected.

Browser notifications. WeKan makes its own key pair for this once, keeps the private key on the server, and sends only to the push services browsers use (Google, Mozilla, Apple, Microsoft), so a member cannot point it anywhere else (isPushServiceEndpoint() in models/lib/webPush.js; server/webPush.js). It is not offered on Sandstorm.

The settings form is client/components/settings/notificationSettingsPopup.js. Tests: tests/ntfy.test.cjs, tests/webPush.test.cjs and server/lib/tests/webPush.tests.js.

Commits