Skip to Content
Spiti

Get notifications and use the Inbox

Receive plugin notifications on your Mac, choose which ones show, and find past ones in the Inbox.

Get notifications on your Mac

Plugins you grant Notifications can notify you now or at a set time, such as when a focus session ends. Spiti.app shows them as macOS notifications, with the plugin's buttons, such as Start break. Click a notification to open what it points to, usually the plugin's page. Notifications work offline and never leave your Mac.

The first time a plugin sends one, macOS asks whether Spiti can show notifications. If you said no, see Fix a denial.

If you're already looking at the plugin's page, the notification shows as a message inside Spiti instead.

Some notifications are time-sensitive, such as a meeting about to start. They can break through a Focus when you allow time-sensitive notifications for Spiti in System Settings → Notifications.

Notifications can also show in the Island around the notch. Choose where under Show notifications in in Settings → Island.

Find past notifications in the Inbox

Every notification also lands in the Inbox, so nothing is lost while your Mac sleeps or you're away. Open it from Inbox in the sidebar footer or in Spiti's menu bar item. A dot on Spiti's menu bar item means you have unread ones.

The Inbox lists notifications newest first, grouped by day, with a dot on unread ones. Click one to open it and mark it read, or use its buttons. Choose Mark all read to clear the dots. Notifications stay for 30 days, or less when the plugin sets an end time, such as a reminder for a meeting that's over.

  • Unread shows only the ones you haven't opened. When the Inbox holds notifications from more than one plugin, pick a plugin to see only its notifications.
  • Notifications from Spiti itself, such as Plugin Studio saying a build is ready, show under Spiti and open the page they're about.
  • To keep one as a reminder, open its ⋯ menu, or right-click it, and choose Mark as unread. The same menu opens the plugin and its notification settings.
  • Hover over a time to see the full date.

Choose which notifications show

Open Settings → Notifications:

  • Mute notifications on this Mac stops every plugin's notifications from showing. They still land in the Inbox.
  • Each plugin lists the kinds of notifications it sends, such as Session ends. Turn one off to keep it in the Inbox only.

To stop a plugin from notifying you at all, revoke its Notifications permission. That also cancels the ones it scheduled. See Review plugin permissions.

Each plugin can send up to 30 notifications a minute. Anything beyond that goes to the Inbox only.

For plugin authors

Add the notifications permission, declare categories in definePlugin({ notifications: { categories } }) with a label and default devices, and send from server code:

await ctx.notify({
  key: `todo:${todo.id}`,
  category: "reminders",
  title: "Water the plants",
  body: "Due now",
  at: todo.dueAt,
  actions: [
    {
      id: "done",
      label: "Mark done",
      run: { action: "completeTodo", input: { id: todo.id } },
    },
  ],
})
await ctx.notifications.cancel(`todo:${todo.id}`)
  • key is your own id: sending the same key again moves a scheduled notification or updates a delivered one, and cancel(key) removes it.
  • at schedules it. Spiti keeps the schedule, so your plugin doesn't need to be running.
  • priority: "timeSensitive" marks something about to happen. It can break through Focus when the user allows time-sensitive notifications for Spiti.
  • Up to three actions, each either run (one of your actions, with fixed input) or open (a URL or one of your pages).
  • open is what clicking the notification does; expiresAt stops delivery after a time.

Without the permission, ctx.notify() throws PermissionDeniedError.

On this page