Skip to content
nathan-poncetPublic

About

πŸ“‹ Open-source clipboard manager for macOS β€” Paste-style panel, pins, search. Swift/SwiftUI, Clean Architecture.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

38 stars

Watchers

0 watching

Forks

Whisk

An open-source clipboard manager for macOS, inspired by Paste. A menu bar app that remembers everything you copy β€” text, links, images, files, colors β€” and brings it back through a Paste-style panel at the bottom of your screen.

Website: nathan-poncet.github.io/whisk

ko-fi

whisk-demo.mp4

Whisk in 30 seconds β€” clipboard history, search, paste stack, preview, and drag & drop. 1080p with sound.

Built in Swift/SwiftUI following Clean Architecture: a pure, synchronous kernel behind ports, adapters at the edges, and a composition root that wires them together. See docs/ARCHITECTURE.md (franΓ§ais).

Features

  • Clipboard history β€” every copy is captured and persisted locally, newest first, deduplicated.
  • Liquid Glass panel β€” β‡§βŒ˜V opens a floating glass panel on the screen where your pointer is (the macOS 26 look, translucent materials on earlier systems); click a card to copy it back (and paste it directly when Accessibility access is granted). The shortcut follows your keyboard layout β€” V is wherever your layout prints it (Dvorak, AZERTY, Colemak, …), re-resolved live when you switch layouts.
  • Per-app styling β€” each card carries the icon of the application it was copied from and takes its tint from that app's icon. Cards come in three sizes (Settings).
  • Search β€” type to filter instantly by content or by the app it came from (slack invoice finds "invoice" copied from Slack); operators app:safari, type:link and pinned combine with free text; the matched letters light up on the cards; Return selects the first match.
  • Filters β€” a chip bar narrows the rail by source application (one chip per app, with its icon) and by content category (text, code, color, link, image, files); chips combine with each other and with the search query.
  • Pins β€” pin a card (⌘P or right-click) and filter to pinned items with one chip; pinned items survive Clear, eviction and retention.
  • Undo β€” ⌘Z brings back what the last deletion, clear or edit took, twenty steps deep within a session.
  • Paste stack β€” queue several cards with β‡§βŽ (press again to unqueue; stacked cards wear a numbered badge showing their rank), then pop them one by one anywhere with βŒ₯⌘V (global, rebindable): collect once, paste in order.
  • Rich text β€” formatting (RTF) is captured and pasted back; βŒ₯⏎ pastes as plain text instead.
  • Paste as… β€” right-click a text or link card to paste it rewritten: upper or lower case, trimmed, on one line, without accents, URL- or base64-encoded or decoded, formatted JSON. The card itself stays as copied.
  • Quick Look-style preview β€” ⌘Y opens a large preview of the selected card (full text, full-size image, file list).
  • Drag & drop β€” drag any card straight into another application.
  • Retention β€” keep history forever, or auto-expire after 24 hours, 7 days or 30 days; capacity is configurable up to unlimited (Settings).
  • Pause & exclusions β€” pause capture from the menu bar; exclude any app permanently in Settings (its copies are never recorded).
  • Launch at login β€” one toggle in Settings; a short welcome window on first run shows the shortcut, and Whisk can check GitHub for new releases at launch (opt-out in Settings).
  • Rich previews β€” copied links show the page's title, favicon and lead image; files show a QuickLook thumbnail; images render inline; hex codes become color swatches.
  • Syntax highlighting β€” text that reads as code is detected and highlighted (keywords, strings, comments, numbers), language-agnostic.
  • Clipboard access under pasteboard privacy β€” where macOS asks before an app reads the clipboard on its own (Privacy & Security β†’ Paste from Other Apps, which recent macOS versions enforce), Whisk opens a Clipboard Access window at every launch until it is allowed: macOS asks its question, you set Whisk to Allow in System Settings, and the window confirms. Until then nothing is recorded, and the panel says so.
  • Privacy β€” history stays on disk in ~/Library/Application Support/Whisk (SQLite); password managers marking their content as concealed (org.nspasteboard.ConcealedType) are never recorded. Two exceptions to "nothing leaves your machine", each with its switch in Settings: link previews fetch metadata from the copied URL (cached, once per link), and the update check queries the GitHub releases API at launch.
  • English & French β€” the interface follows your system language.

Requirements

  • macOS 14 or later to run (Liquid Glass on macOS 26, material fallback before that)
  • The macOS 26 SDK to build (Xcode 26+, or matching Command Line Tools β€” running the test suite requires Xcode)

Install

Homebrew (recommended β€” installs the prebuilt app into /Applications):

brew install --cask nathan-poncet/tap/whisk

Direct download β€” grab the latest DMG and drag Whisk into Applications:

Download Whisk.dmg (latest)

Run it from source

git clone https://github.com/nathan-poncet/whisk.git
cd whisk
swift run Whisk

To build a proper app bundle (icon, Info.plist, menu-bar-only):

./scripts/build-app.sh 0.0.0 native   # β†’ dist/Whisk.app

To try a build beside the Whisk you already run, give it a data directory of its own β€” two instances sharing history.sqlite would overwrite each other's history β€” and quit the installed one first, since only one of them can hold the global shortcut:

open -n dist/Whisk.app --env WHISK_DATA_DIR=/tmp/whisk-test

The clipboard icon appears in the menu bar. Copy a few things, then press β‡§βŒ˜V.

  • Left-click the menu bar icon (or β‡§βŒ˜V): toggle the panel.
  • Right-click the icon: menu (show, clear, quit).
  • Arrow keys: ←/β†’ move within the focused zone β€” the chip row is one line (apps | categories) and arrows cross the separator; ↑/↓ jump between the chip row and the card rail; βŒƒβ‡₯ jumps straight to the other chip group. Return toggles the focused chip (the panel stays open) or pastes the selected card.
  • Return: paste the selected card into the text field that had focus before the panel opened. The panel never steals focus, so the caret is exactly where you left it; the first use prompts for Accessibility access (System Settings β†’ Privacy & Security β†’ Accessibility), and until it is granted the card still lands on the clipboard for a manual ⌘V.
  • βŒ₯⏎: paste as plain text (formatting stripped).
  • β‡§βŽ: toggle the selected card in and out of the paste stack β€” queued cards show a numbered badge; βŒ₯⌘V (global) pops the next stacked card wherever you are typing.
  • ⌘Y: large preview of the selected card (Finder's Quick Look shortcut); ⌘Y again or Esc closes it.
  • Click a card: same as Return, for that card.
  • ⌘1β€¦βŒ˜9: paste the card at that position directly β€” the digit you actually type, so shifted-digit layouts (Programmer Dvorak, AZERTY) use βŒ˜β‡§digit.
  • ⌘P / ⌘⌫: pin or delete the selected card.
  • ⌘C: copy the selected card without pasting; ⌘O opens a link, ⌘R reveals files in Finder, ⌘S saves the card as a file; βŒƒβŒ˜X excludes the card's application, βŒƒβŒ˜βŒ« deletes everything copied from it (pins survive).
  • ⌘E: edit the selected card's text in place; Return saves, β‡§βŽ breaks the line, Esc cancels. A rewrite that reads as a web address becomes a link again.
  • ⌘Z: undo the last deletion, clear or edit, up to twenty steps back in the session (also in the menu bar menu).
  • Right-click a card: everything above, plus paste as plain text and "Paste as…" rewrites, in one menu.
  • Esc or click outside: close the panel.

Every shortcut β€” including the global one β€” is rebindable: right-click the menu bar icon β†’ Settings…, then click a shortcut and type a new one.

You can also open Package.swift in Xcode and run the Whisk scheme.

Tests

swift test

The suites cover history behaviour (dedup, capacity, pins, search), controller orchestration, and presenter formatting with deterministic fakes β€” frozen clock, scripted pasteboard, in-memory store, recording logger. One parameterized contract suite runs the HistoryStore port against every gateway (SQLite, in-memory) in temporary directories; the storage bootstrap, the legacy JSON import, the pasteboard gateway and the string catalogs have suites of their own. Views render off screen in every state, key routing runs on synthetic key presses, and no test ever shows a window; only the composition root, the global hot key and the paste simulation stay outside the suite. ./scripts/coverage.sh runs the tests with coverage and prints the report. The Dependency Rule is linted by ./scripts/check-dependency-rule.sh. CI runs everything on every push and archives the coverage report.

CI & releases

Every push runs the Dependency Rule lint, swift format lint --strict, the build, and the tests with coverage (ci.yml); the build fails when line coverage of the testable code drops under 90 % (everything but the composition root, the global hot key, the paste simulation and the entry point, which no unit test may exercise). Dependabot keeps the GitHub Actions (and any future Swift package dependencies) up to date and raises security alerts with automated fixes; CodeQL scans the Swift code itself on every push and weekly.

Pushing a tag v* runs release.yml: it tests, builds a universal (arm64 + x86_64) Whisk.app, attaches the zip to a GitHub release whose notes are the version's section of CHANGELOG.md, and bumps the Homebrew formula in nathan-poncet/homebrew-tap (requires a TAP_GITHUB_TOKEN repository secret with write access to the tap).

git tag v0.2.0 && git push origin v0.2.0

Status & roadmap

Whisk covers the daily-driver feature set: history with pins and retention, search with operators, filters, keyboard-first navigation with rebindable shortcuts, rich previews, paste stack, plain-text paste, drag & drop, pause & per-app exclusions, SQLite storage, and an English/French interface. Still on the list:

  • iCloud sync and an iOS/iPadOS companion app
  • Shared pinboards

Contributions welcome β€” start with CONTRIBUTING.md and docs/ARCHITECTURE.md for the rules the codebase follows.

Credits

The Neovim mark (used as the code-category icon) is by Jason Long, licensed CC BY 3.0.

License

GPL-3.0-or-later since v0.5.0: you can use, study, modify and redistribute Whisk freely, but derivatives must stay open source under the same terms and keep the copyright notice β€” no proprietary forks. For a commercial license under other terms, contact the author.

An additional permission under GPLv3 section 7 allows distribution through Apple's App Store, whose terms the GPL alone would not permit; the source stays under the GPL.

Releases up to and including v0.4.0 were published under MIT and remain so (an already-granted MIT license is irrevocable for those versions).

About

πŸ“‹ Open-source clipboard manager for macOS β€” Paste-style panel, pins, search. Swift/SwiftUI, Clean Architecture.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

38 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages