Flagship/macOS desktop app
ClipStack
Clipboard history for macOS
macOS keeps only the last thing you copied. ClipStack keeps everything: Shift+Cmd+V opens a searchable history of text, images and files and pastes the chosen clip straight into the app you were using. A Flutter desktop app with a Swift bridge into the macOS pasteboard, shipped as a universal binary through Homebrew.
- Built with
- What sets it apart
- Local-first and keyboard-first: no account, no cloud, no telemetry - and it refuses to store what looks like a secret.
§ 01
Problem
macOS has no clipboard history. Copy something new and the previous item is gone, and most third-party managers are paid, cloud-synced or store everything you copy - passwords included.
§ 02
Architecture
- 01
Flutter UI
The panel, history list, search and settings are Flutter, with Riverpod providers holding app state so the list, filters and settings stay in sync.
- 02
Service layer
Separate services own each concern - clipboard monitoring, the repository, the global hotkey, paste, the menu-bar tray and window coordination - so the UI never talks to the OS directly.
- 03
Swift platform bridge
A custom method channel (
clipstack/native) exposes the macOS pasteboard to Dart: reading the change count, capturing every item type on the pasteboard, and restoring a snapshot before paste. - 04
Local storage
Clips live in an embedded Isar database on the Mac, with indexed queries for pinned items and recency ordering. Nothing leaves the machine.
- 05
Distribution
A menu-bar agent app (no Dock icon) built as a universal binary, packaged as a DMG, published on GitHub Releases and installable with a Homebrew cask. The download site is a separate TanStack Start app.
§ 03
Key decisions
Flutter for the UI, Swift where the OS is involved
Flutter made the panel and settings fast to build and iterate on; the parts that need AppKit - the pasteboard and synthetic key events - are written in Swift behind a narrow channel rather than through generic plugins.
Paste by simulating Cmd+V
macOS has no API to insert text into another app. ClipStack restores the chosen clip to the pasteboard, returns focus to the previous app and posts a Cmd+V key event, which is why it asks for Accessibility permission.
Privacy as a feature, not a setting
A secret detector skips likely passwords, API keys, OTPs and tokens before they are saved, and an exclusion list ignores apps such as password managers entirely.
Embedded database over files
Isar gives typed, indexed queries for unlimited history without running a server or writing a custom file format.
§ 04
Hard parts
- Capturing every representation on the pasteboard - plain text, rich text, images and file references - and putting the same item back exactly as it was.
- Pasting into the app the user came from: restoring focus to the previous app before the synthetic key event, not to ClipStack's own panel.
- Detecting changes without a pasteboard notification API on macOS, by watching the pasteboard change count.
§ 05
The product
The Win+V experience, brought to macOS. Shift+Cmd+V opens a floating panel over the current app with the full history of text, rich text, images and files, searchable and ranked by recency and use. Smart Paste drops the chosen clip into the app you came from, and pinned snippets stay one keystroke away. Likely secrets - passwords, API keys, OTPs and tokens - are detected on-device and never stored, apps such as password managers can be excluded by name or bundle id, and unpinned clips are cleaned up automatically. It lives in the menu bar, can launch at login, and runs natively on Apple Silicon and Intel Macs.
My part
- Owned the whole lifecycle: product design, the Flutter app, the Swift platform layer, packaging, the download site and Homebrew distribution.
- Universal macOS binary (arm64 + x86_64) distributed as a DMG through GitHub Releases and a Homebrew cask.
Where it is now
Released as version 2.0.0: a free, universal macOS app with a download site and a Homebrew cask.