Skip to content
markksantosPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Catch

Never miss a notification again.

Swift SwiftUI macOS License

A native macOS menu bar app that captures, stores, and organizes your notifications in a searchable history so nothing slips through the cracks.

Features • Getting Started • Architecture • Tech Stack • License


Features

Notification History — Automatically polls and captures macOS notifications via Full Disk Access, building a persistent, searchable archive.

Snooze Scheduling — Snooze any notification from 5 minutes to tomorrow morning. Resurface what matters when you're ready.

Per-App Filtering — Filter notifications by app to zero in on what you need without the noise.

Unread Counts — At-a-glance unread badges so you always know what's waiting.

Full-Text Search — Instantly search across your entire notification history by keyword.

Onboarding Flow — Guided setup walks you through permissions and preferences on first launch.

Persistent Store — Notifications survive app restarts. Your history is always there.

Getting Started

Prerequisites

  • macOS 14.0 or later
  • Xcode 15+ (for building from source)
  • Full Disk Access permission (required for notification polling)

Build & Run

git clone https://github.com/markksantos/Catch.git
cd Catch
swift build
swift run

On first launch, the onboarding flow will guide you through granting Full Disk Access.

Architecture

Catch is built with Swift Package Manager and split into two core modules:

CatchEngine

Component Responsibility
NotificationListener Polls macOS notification database via Full Disk Access
NotificationStore Persistent storage and retrieval of captured notifications
SnoozeManager Schedules and manages snooze timers
PermissionManager Handles Full Disk Access permission checks and onboarding

CatchUI

| PopoverView | Menu bar popover with unread counts and quick actions | | HistoryView | Scrollable, searchable notification history | | SnoozePickerView | Snooze duration selector (5 min, 15 min, 1 hr, tomorrow morning) |

Marketing Site

A Next.js marketing site lives in the site/ directory.

Tech Stack

| Layer | Technology | | Language | Swift 5.9+ | | UI Framework | SwiftUI | | Reactive Layer | Combine | | Package Manager | Swift Package Manager | | Platform | macOS 14.0+ | | Marketing Site | Next.js |

License

MIT License © 2025 Mark Santos

Catch

A macOS menu bar app that quietly captures every notification before it vanishes — so you can search, filter, snooze, and revisit anything you missed.

Catch reads the system notification database locally, mirrors notifications into its own SQLite store, and shows them in a lightweight menu bar popover. Nothing ever leaves your Mac: no accounts, no cloud, no analytics.

How it works

┌─────────────────────────┐ poll every 5s ┌──────────────────────┐ │ macOS usernoted DB │ ───────────────────────▶ │ NotificationListener │ │ (read-only, FDA-gated) │ └──────────┬───────────┘ └─────────────────────────┘ │ insert (dedup) ▼ ┌──────────────────────┐ menu bar popover ◀── filtered fetch (SQL) ──────── │ NotificationStore │ history window │ (~/.../catch.db) │ snooze → UNUserNotification └──────────────────────┘

  • Capture — NotificationListener polls the macOS notification database (~/Library/Group Containers/group.com.apple.usernoted/db2/db) and inserts new, de-duplicated notifications into a local SQLite database.
  • Store — NotificationStore is the SQLite layer: insert, filtered fetch (status / search / app), mark read, snooze, delete, prune, and unread count.
  • Snooze — SnoozeManager schedules a native UNUserNotification that re-alerts you at the chosen time (5 min → tomorrow 9am).
  • UI — SwiftUI MenuBarExtra popover, a full history window with per-app filtering, onboarding, and settings.

Project layout

Sources/ CatchEngine/ Core logic (no UI): store, listener, snooze, permissions, models CatchUI/ SwiftUI views + view model (depends on CatchEngine) CatchApp/ Executable entry point (MenuBarExtra app) Tests/ CatchEngineTests/ Store, models, formatter, snooze, permission tests CatchUITests/ View-model wiring and view init tests Resources/ Info.plist App bundle metadata (LSUIElement menu bar agent) Catch.entitlements Unsandboxed (required to read the usernoted container) Scripts/ build-app.sh Assembles a signed Catch.app from the SwiftPM binary site/ Next.js 16 marketing landing page

Requirements

  • macOS 13 (Ventura) or later
  • Swift 5.9+ / Xcode 15+ (the app builds with Swift 6 toolchains too)
  • Full Disk Access must be granted to the app (System Settings → Privacy & Security → Full Disk Access). macOS does not expose the notification database to apps without it; the in-app onboarding links you straight there.

Build & run

Quick dev build (bare binary)

swift run CatchApp

Note: running the bare SwiftPM binary works for development, but launch-at-login (SMAppService) and reliable permission prompts require a proper .app bundle. Use the build script below for a real app.

Build the app bundle

./Scripts/build-app.sh # release build → build/Catch.app (ad-hoc signed) open build/Catch.app

On first launch Catch shows onboarding and asks for Notification permission and Full Disk Access. Grant both, click Get Started, and it begins capturing.

Run the tests

swift test

Distribution (deploy-ready, not yet shipped)

The app is structured to be Developer ID signed + notarized for distribution outside the Mac App Store (the App Sandbox cannot read the usernoted container, so the Mac App Store is not an option):

Sign with your Developer ID and assemble the bundle

SIGN_IDENTITY="Developer ID Application: Your Name (TEAMID)" ./Scripts/build-app.sh

Notarize and staple

xcrun notarytool submit build/Catch.app --keychain-profile "AC_PASSWORD" --wait xcrun stapler staple build/Catch.app

(Optional) wrap in a DMG for distribution

This requires an Apple Developer account and a Developer ID certificate.

Marketing site

The landing page lives in site/ (Next.js 16, Tailwind v4, Framer Motion, react-three-fiber):

cd site npm install npm run dev # http://localhost:3000 npm run build # production build (static)

It is a static site and deploys to Vercel as-is.

Privacy

Catch is local-first. All captured notifications are stored only in ~/Library/Application Support/com.catch.app/catch.db on your Mac. There is no network access, no telemetry, and no account system.

License

See repository for license details.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages