Skip to content

About

macOS menu bar search for Apple Notes, Safari Reading List, and local files

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Mind Palace

A macOS menu bar app that indexes your Apple Notes, Safari Reading List, and local folders into a searchable, browser-accessible knowledge base — inspired by Sherlock Holmes's method of total mental recall.

macOS 13+ Swift License

📖 Full write-up on Baker Street Forensics


What it does

Mind Palace runs quietly in your menu bar and serves a local web app at https://localhost:8221. From any browser on your Mac — or any device on your local network — you can search across:

  • Apple Notes — full-text search including note body content
  • Safari Reading List — titles, URLs, and preview text
  • Local folders — files, PDFs, Office documents, source code, and more

Search is instant, runs entirely on your machine, and requires no cloud account.

Mind Palace home view


Features

  • Full-text search with keyword highlighting and content previews
  • Tag filtering via Apple Notes smart folders
  • Click any note to read it inline or open it directly in Notes.app
  • Click any file to open it in its native app
  • Syntax-highlighted code viewer for 30+ file types
  • PDF, DOCX, and PPTX text extraction
  • Auto re-scan on a configurable interval (1–24 hours)
  • macOS notifications on scan completion
  • PWA-installable — add to your Mac's dock or iPhone home screen
  • Launch at login via SMAppService

Screenshots

Menu Bar

Menu bar popover

Rooms Navigation

Rooms navigation view

Search

Search results with keyword highlighting

Settings

Configuration settings panel


Requirements

  • macOS 13 Ventura or later (Apple Silicon and Intel)
  • Full Disk Access granted to MindPalace in System Settings

Installation

  1. Download MindPalace.zip from the latest release
  2. Unzip and move MindPalace.app to your Applications folder
  3. Open it — the release binary is signed and notarized, so macOS will open it without a security warning
  4. Grant Full Disk Access: System Settings → Privacy & Security → Full Disk Access → add MindPalace
  5. The menu bar icon appears. On first launch, a system dialog will ask for your login keychain password — this installs the local HTTPS certificate authority (see HTTPS & Certificates below)
  6. Once the scan completes, open https://localhost:8221 in any browser

Note: Full Disk Access is required to read Apple Notes and Safari Reading List. MindPalace accesses these files read-only and never transmits anything off your device.

Building from source

Requires Xcode Command Line Tools and Swift 5.9+.

git clone https://github.com/dwmetz/MindPalace.git
cd MindPalace
bash build-app.sh

The script compiles, assembles the .app bundle, and signs it. If you want to produce a notarized build for distribution, you'll need your own Developer ID certificate and a configured notarytool keychain profile. For local use the signing step can be replaced with codesign --sign - (ad-hoc).

For quick iteration during development:

bash restart.sh

HTTPS & Certificates

Mind Palace serves over HTTPS so that PWA install, service workers, and clipboard APIs work on both localhost and your local network (phone, tablet, another Mac). All traffic stays on your device or LAN — nothing is ever sent to the internet.

How it works

On first launch, Mind Palace:

  1. Generates a private local Certificate Authority (CA) and a server certificate signed by it, stored in ~/Library/Application Support/MindPalace/certs/
  2. Adds the CA to your login keychain as a trusted root — this is what triggers the one-time system password dialog
  3. Starts the HTTPS server using the signed certificate

After that, https://localhost:8221 works in every browser on your Mac with no warnings.

Accessing from other devices (phone, tablet, another Mac)

The server certificate covers localhost, 127.0.0.1, your machine's Bonjour hostname (e.g. macbook-pro.local), and all LAN IP addresses detected at cert-generation time.

To connect from another device, that device also needs to trust your local CA. The process is device-specific:

iPhone / iPad

  1. In the Mind Palace menu bar, click Show CA Certificate in Finder
  2. AirDrop MindPalaceCA.crt to your iOS device — tap it in Files to install it
  3. Go to Settings → General → VPN & Device Management and trust the new profile
  4. Go to Settings → General → About → Certificate Trust Settings and enable full trust for the MindPalace CA
  5. Navigate to https://your-mac.local:8221 in Safari

Android

  1. AirDrop or email MindPalaceCA.crt to your Android device
  2. Open Settings → Security → Install a certificate → CA certificate and select the file
  3. Navigate to https://your-mac.local:8221 in Chrome or Firefox

Another Mac

  1. AirDrop MindPalaceCA.crt to the other Mac
  2. Double-click it — Keychain Access opens and prompts to add it
  3. Find it in Keychain Access, double-click it, expand Trust, and set When using this certificate to Always Trust

Regenerating certificates

If your LAN IP changes (new network, VPN, etc.) and you can no longer connect from other devices, click Regenerate Certificates… in the menu bar. The app will generate a new certificate covering the current IPs and install it. You will need to re-trust the new CA on any other devices.

The CA has a 10-year validity. The server certificate also has a 10-year validity. For personal/home lab use this is intentional — you won't need to renew annually.


Configuration

Click the gear icon in the web UI to configure:

  • Up to 3 indexed folder paths with custom room labels
  • Apple Notes indexing on/off
  • Safari Reading List indexing on/off
  • Auto re-scan interval

Settings are stored in ~/Library/Application Support/MindPalace/config.json.

Architecture

Mind Palace is a pure Swift app with no external dependencies:

Component Description
MindPalaceApp.swift SwiftUI App entry point, AppDelegate
AppState.swift Menu bar state, scan scheduling, notifications
MenuBarView.swift SwiftUI menu bar popover
Scanner/ Notes (SQLite + JXA), Reading List (Bookmarks.plist), File system
Server/HTTPServer.swift Network.framework NWListener HTTPS server, API routing, file serving
Server/CertificateManager.swift Local CA + server cert generation, keychain trust installation
Resources/index.html Single-file PWA frontend

The HTTPS server uses Apple's Network.framework with TLS — no external dependencies. Certificates are generated via the system openssl binary and managed through the Security framework.

Privacy

  • Runs entirely on your Mac
  • No data leaves your device
  • No analytics, no telemetry
  • Source is fully auditable

License

MIT — see LICENSE


"You see, but you do not observe." — S. Holmes

About

macOS menu bar search for Apple Notes, Safari Reading List, and local files

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages