An interactive page on search and Turkish letter folding: the Cosmodrome lab.
A full-screen window that does not steal focus
A launcher’s first job is to take the keyboard without pushing the app in front of you into the background. Cosmodrome does it the way Spotlight does: a borderless, non-activating NSPanel one level above the menu bar. The panel takes keyboard input but never steals activation from any app; when it closes, focus goes straight back to where it was.
All input flows from local event monitors (addLocalMonitorForEvents) into one observable state object (GridState). There is no focusable text field, so there is no focus to lose: search, and even folder renaming, run on routed keystrokes.
The global hotkey is registered with Carbon’s RegisterEventHotKey. That is why summoning the grid from anywhere needs no Accessibility permission.
The wallpaper
Half of Launchpad’s feel is the blurred wallpaper behind it. Cosmodrome reads each screen’s wallpaper once, applies a Gaussian blur and a saturation boost with Core Image off the main thread, and caches the result. Nothing is recomputed when the grid opens.
Finding apps
The scanner walks /Applications (with subfolders), ~/Applications, /System/Applications and the cryptex where Safari lives. It picks up symlinked apps and deduplicates by bundle ID. Auto folders come from each app’s own LSApplicationCategoryType.
Drag and drop, and the layout engine
Drag and drop is not an off-the-shelf component; it was written from scratch:
DropMath is a pure hit-testing module: it turns the cursor position into an “insert here”, “combine into a folder” or “drop into folder” proposal.
- A coordinator animates the landing gap as it moves through the grid.
- Every layout change goes through one tested engine (
LayoutEngine). The invariants live there: folders never nest, never hold a single app, and an app never appears twice.
The layout is written atomically to ~/Library/Application Support/Cosmodrome/layout.json; a crash mid-drag cannot corrupt the saved layout. Scanning, ranking, grid geometry, layout and drop math live in CosmodromeCore with unit tests (48 tests as of 0.2.0).
Why direct, and why not the Mac App Store
Cosmodrome will only be distributed directly. The reasons:
- Resemblance to Apple’s own app. App Review Guideline 5.2.5 rules out apps that appear confusingly similar to an existing Apple product, interface or app. Cosmodrome exists to resemble Launchpad. LaunchOS, a competitor, says in its own FAQ that it stays out of the store for the same reason: “Because of App Store review rules, third-party developers usually cannot publish a replica of a native system app.” Other launchers are in the store, so it is not a hard ban, but it is a real rejection risk.
- Two things that break in the sandbox. Guideline 2.4.5(i) requires the sandbox. Inside it the home directory resolves to the app’s own container, so the user’s
~/Applications silently drops out of the scan. Reading the user’s own wallpaper (from Pictures, say) may be refused too. Both are solvable, but the code is not written that way today.
Decision: Cosmodrome will not go to the Mac App Store; it will be signed with Developer ID, notarized and distributed directly. Sources: App Review Guidelines, LaunchOS.
Honest limits
- It cannot import your old Launchpad layout; you have to rebuild your arrangement.
- It does not open with F4, a hot corner or the pinch gesture; only the hotkey, the Dock icon or the menu bar.
- No hide list for apps yet (on the roadmap).
- Multi-display support is not polished (on the roadmap).
- In 0.2.0, search folding does not reduce dotless ı to i; details on the lab page. The fix is on the main branch and has not shipped in a release yet.