Interact with macOS Notification Center directly from Raycast using the notif CLI tool.
notfi usually refers to notif (Airbnb's open-source CLI):
- It reads notifications from macOS Notification Center (
notif list) - It performs notification actions (
notif click,notif dismiss,notif expand,notif collapse) - It serves as the low-level execution layer for this Raycast extension
This project itself is a Raycast command interface and interaction layer. It does not directly manipulate Notification Center internals; all notification operations are delegated to the notif binary.
Choose one of the following installation methods:
# 1) Homebrew (recommended)
brew install notif
# 2) Verify installation
which notif
notif listOr install from releases: https://github.com/airbnb/notif/releases
After installation:
- Ensure
notifis in yourPATH, or - Set an absolute path in Raycast extension settings (
notif Binary Path)
This extension depends on the following foundational capabilities:
- macOS Notification Center accessibility via
notifCLI - Raycast runtime and API (
@raycast/api) for command execution, list rendering, actions, and menu bar integration - Raycast extension utilities (
@raycast/utils) for convenience helpers and runtime ergonomics
Without notif, the extension can load in Raycast but cannot read or operate notifications.
- π Open Notifications: Auto-open latest notification or jump to actionable list view
- π±οΈ Click Notifications: Open notifications with a single click
- ποΈ Dismiss Notifications: Clear individual or grouped notifications
- π¦ Group Management: Expand and collapse notification groups
- π Monitor Notifications (Menu Bar): Single menu bar monitor with optional keyword filtering and always-on new-notification alerts
- βοΈ Configurable: Set custom paths and behavior preferences
You need to install the notif CLI tool first:
# Using Homebrew
brew install notif
# Or download from releases
# https://github.com/airbnb/notif/releasesMake sure notif is in your PATH or configure the absolute path in Raycast settings.
After installing this extension in Raycast:
- Open Raycast Settings β Extensions β Notification Center
- Configure
notif Binary Path(defaultnotif) - Optionally enable:
Auto Open Single NotificationAlways Open Latest NotificationKeywords for Menu Bar Filtering
- Assign hotkeys for
Open Notifications/Manage Notifications
Search for "Notification Center" in the Raycast Store and install it.
- Clone this repository
- Install dependencies:
npm install
- Build the extension:
npm run build
- Import the extension into Raycast
Runs a quick entry command:
- If
Always Open Latest Notificationis enabled, it clicks the latest non-group notification directly - Else if
Auto Open Single Notificationis enabled and only one non-group notification exists, it clicks that notification - Otherwise, it opens the
Manage Notificationscommand
Shortcut: Assign a hotkey in Raycast settings for quick access
Opens a detailed list view with the following actions:
- Enter: Click / open notification (non-group items)
- βD: Dismiss notification
- βE: Expand group (group items)
- βL: Collapse group (group items)
- βR: Refresh list
- βC: Copy notification text
Single monitoring command in menu bar with two modes:
- Displays a menu bar icon and matched notification count
- Filters notifications by configured keywords (case-insensitive)
- New-notification behavior depends on whether keywords are configured:
- No keywords: show an alert popup for the newest new notification (auto-click after 3s unless dismissed); if multiple arrive at once, it also shows a HUD summary to avoid Raycast execution timeouts
- With keywords: only react to new notifications that match keywords
- Transient monitor failures are ignored silently (for example
execution timed outand temporary Notification Center UI lookup failures) - When keywords are configured, auto-open behavior follows existing preferences:
- If
Always Open Latest Notificationis enabled, it auto-opens the newest matched notification - Else if
Auto Open Single Notificationis enabled and only one matched notification is new, it auto-opens it
- If
- Click menu bar icon to view and interact with matched notifications
- Quick access to configure keywords
Note: The monitor only triggers actions for notifications that arrive after the monitor has captured an initial snapshot. Existing notifications won't trigger actions immediately.
Default: notif (uses PATH)
Set the path to the notif binary. Options:
notif- Uses system PATH/usr/local/bin/notif- Absolute path~/bin/notif- Home directory path
When enabled, automatically opens the notification if only one exists in the notification center.
Comma-separated list of keywords to filter notifications (case-insensitive). Examples:
urgent, important, errormeeting, calendar, reminder
npm install
npm run devView logs in real-time:
npm run logsOr use Raycast's built-in developer console:
- Open Raycast
- Search for "Developer: Show Console"
- Select "Notification Center" extension
# Test notif command
npm run test:notif
# Build extension
npm run build
# Lint code
npm run lint
# Fix linting issues
npm run fix-lintMake sure notif is installed and in your PATH:
which notifIf notif is not in PATH, set the absolute path in Raycast settings.
Ensure notif has execute permissions:
chmod +x /path/to/notif- Check if notifications exist in Notification Center
- Verify notif works from terminal:
notif list - Check extension logs for errors
MIT
Built with Raycast API
Uses notif by Airbnb