Case study · Built at Studio CC
Tabby
A window switcher for macOS. Hold ⌥, tap Tab, see every open window as a live picture in one of six layouts, and let go to switch. Written in Swift against Apple's own frameworks, with no dependencies at all.
3.9 MB
the whole app, no dependencies
Tabby
2026 · Built at Studio CC
- Year
- 2026
- Role
- Solo developer
- Built at
- Studio CC
- Type
- macOS app · Open source
- Status
- Live
- Swift
- SwiftUI
- AppKit
- Accessibility API
- ScreenCaptureKit
- GitHub Actions
The challenge
macOS switches between apps, not windows. Three Chrome windows and a full-screen video call are one icon in ⌘Tab, and getting to the right one means tabbing to Chrome and then hunting. The tools that fix this grow a settings screen for every edge case, and the most popular of them uses more memory sitting idle than a switcher should use at all.
The approach
- 01
One job, done quickly
Hold ⌥, tap Tab, let go. No window search, no per-app rules, no shortcut profiles. Everything that isn't switching windows was left out on purpose.
- 02
Work starts on the modifier, not the Tab
Pressing ⌥ begins listing windows and warming the screen-capture session in the background, so by the time Tab lands the list is usually already there.
- 03
Every app asked at once
Windows come from the Accessibility API, queried in parallel per app with a short timeout, so one slow app doesn't hold up the rest of the list.
- 04
Live pictures, not icons
Thumbnails come from ScreenCaptureKit, captured no larger than the layout actually draws them, and the last picture per window is kept so something shows instantly while a fresh one is taken.
- 05
Six layouts
Thumbnails, Cover Flow, Deck, Orbit, Spotlight and Time Machine, with size, animation speed, theme, surface and accent colour as the only other settings.
- 06
The real window, highlighted
While you tab, the selected window's actual position on screen stays bright behind the switcher and gets an accent outline, so you can see where you will land before you let go.
- 07
Most recently used first
A focus tracker listens for window and app changes from everywhere, Tabby, a click, the Dock or ⌘Tab, so the order in the switcher matches the order you actually used them in.
- 08
Full-screen windows included
Full-screen apps live on their own Space, where Accessibility can't see them. Tabby reads those Spaces from the window server directly, so a full-screen stream is just another tile.
The outcome
Open source under the MIT licence and free, a 1.3 MB download that runs on Intel and Apple Silicon alike. Every release is built, tested and signed by CI from a single version bump, and because they all carry the same certificate, updating keeps both of the permissions macOS asks for instead of asking again.
The whole app is 3.9 MB and idles at about 15 MB of memory. AltTab, the best known alternative, is 13 MB on disk, idles at 54 MB and peaked at 183 MB over the same five switches on the same Mac.
How it works
Life of an ⌥Tab press
What happens between the modifier going down and the right window coming forward.
- 01
The modifier goes down
An event tap sees ⌥ before Tab arrives. Listing windows and warming the capture session start immediately, in the background, so the slow part is already running.
- 02
Every app answers at once
Each app is asked for its windows in parallel over Accessibility, with a short timeout, and the menu bar items, tooltips and invisible helper windows are filtered out.
- 03
Full-screen Spaces filled in
Windows Accessibility can't see, full-screen apps and, from inside one, the desktop behind it, are read from the window server and added to the same list.
- 04
Ordered by when you used them
The focus tracker's history puts the most recently used window first. Windows Tabby hasn't seen focused yet follow in stacking order, and minimized windows go last.
- 05
Drawn, then sharpened
The switcher opens with each window's last known picture, in the chosen layout, while fresh captures land at exactly the size the tiles are drawn.
- 06
Showing where you'll land
The screen behind dims, except for the selected window's real position, which keeps an accent outline as you tab. ⇧ goes backwards, arrows move, esc cancels.
- 07
The modifier is released
The window is focused through the window server, so the exact window comes forward rather than just its app, and a full-screen window takes you to its Space.
Key decisions
Why it's built this way
01
No dependencies
over a package for each piece
Only Apple frameworks, built with Swift Package Manager. The result is a 3.9 MB universal app and a 1.3 MB download, with nothing to audit or keep up to date.
02
Private window-server calls, resolved at runtime
over linking against private frameworks
Focusing one exact window, and seeing full-screen Spaces, needs calls Apple doesn't publish. Looking them up by name at runtime means the app still launches if one of them disappears in a macOS release.
03
Capturing at the drawn size
over full-resolution thumbnails
A tile 300 points wide doesn't need a 5K capture. Sizing each capture to the layout is what keeps memory after switching at about 36 MB, cached thumbnails included.
04
Swallowing every key while open
over letting keys through
The switcher is driven by an event tap. While it's on screen it consumes everything, so a stray keystroke can't reach the app underneath mid-switch.
05
Pure functions for the window logic
over logic inside the views
Ordering, filtering, Space selection, layout maths and version comparison are plain functions over plain data, so CI can test them on every push without a window server or granted permissions.
06
Telling you about updates
over updating itself
Tabby asks GitHub once a day whether a newer release exists and says so in its menu. It never downloads or installs anything, and the check can be turned off.
07
Screenshots from a demo mode
over recording a real desktop
Running it with --demo fills the switcher with made-up apps and windows, so the README's pictures contain nobody's real work and anyone can take them again.
Next case study
tidyup