← All projects

Notchly

A program designed for my own use. The notch app I used did not show what I wanted, so I built my own from scratch.

A macOS app that turns the MacBook notch into a small dashboard. 6,773 lines of Swift with zero external packages, written in two days.

What this project gave me

  • Analysing an existing product's structure first, then building
  • Native experience with system APIs such as CoreAudio, SMC and IOKit, checked against documentation
  • Speed from a clear split: structure by analysis, implementation with AI tooling, sensitive permission code read by hand
Period
Nov 2026 (2 days)
Team
Solo
Role
Analysis · design · build
Status
In daily use
Highlights
  • Used REA to analyse how a commercial notch app opens its window and detects the notch, then wrote the code from scratch
  • 41 Swift files, 6,773 lines, 16 feature stores, zero external packages, universal binary
  • Subscribes to six Claude Code hook events to show task state and plan usage beside the notch
Stack
  • Swift
  • SwiftUI
  • AppKit
  • CoreAudio
  • IOKit
  • EventKit
  • XcodeGen

Background and goal

I used commercial notch apps, and none showed what I wanted: the state of my Claude Code tasks and my plan usage. I analysed how an existing app opens its window and detects the notch with REA, then wrote the code from scratch.

Main features

  • Six tabs in the open notch: home (CPU, memory, network, power, Claude usage), media, file tray, clipboard, focus timers, shortcuts
  • Live activities beside the closed notch: now playing with an EQ that reacts to real audio, timers, downloads, Claude Code task state
  • Volume, brightness, charging and Bluetooth notices, AirPods battery expansion
  • On screens without a notch, a virtual notch in the centre of the menu bar

Implementation

  • AppKit panels for windows, SwiftUI for views, @Observable for state
  • System audio is captured through a CoreAudio process tap and analysed with vDSP FFT for the EQ
  • Power is read from the SMC through C code; brightness through DisplayServices opened with dlopen
  • The clipboard skips items that password managers mark as concealed (ConcealedType)
  • A Claude Code hook script writes events to JSON atomically and the app watches the folder with DispatchSource
  • Switching tabs resizes the notch with a spring (response 0.42, damping 0.82)

Results

  • Two days of work, 11 commits, +8,749 lines
  • 41 Swift files, 6,773 lines, zero external packages, an arm64 + x86_64 universal DMG

Looking back

This speed was not mine alone. The structure came from analysis first, implementation was shared with AI tooling, and the system API and permission code I read and checked myself.