A tiny macOS menu-bar app that warns you when you're typing fast but no text field is focused..
You know the moment: you start typing, but focus is on the desktop, an image, or some control that can't take text, and nothing you type shows up. VoidType beeps (and/or flashes the screen) so you notice before you've typed a paragraph into nothing.
- Detects fast typing while no editable field has focus, using the macOS Accessibility API.
- Warns with a sound, a screen flash, or both — your choice.
- Configurable threshold (characters), time window, and cooldown.
- Per-app exclusions for apps where you don't want it active.
- Lives in the menu bar only (no Dock icon). Shows live Accessibility-permission status and starts working the moment you grant it.
- Optional Launch at login toggle, right in the menu.
- Works inside Chromium/Electron apps (Chrome, Claude, VS Code, Slack, …) by waking their accessibility tree.
Grab the latest VoidType-x.y.z.zip from the
Releases page, unzip it, and
move voidtype.app to your Applications folder. The build is universal — it runs
natively on both Apple Silicon and Intel Macs.
First launch: because the app is self-signed (not notarized by Apple), macOS Gatekeeper blocks a downloaded copy the first time. To open it:
- Double-click it once (it gets blocked), then go to System Settings → Privacy & Security, scroll to Security, and click Open Anyway. Confirm once — macOS remembers your choice.
- Or, in a terminal:
xattr -dr com.apple.quarantine /path/to/voidtype.app, then open it normally.
You only need to do this once. (Apps you build from source yourself are not affected — this only applies to downloaded copies.)
Then grant Accessibility permission — see Grant Accessibility permission.
-
macOS 14 (Sonoma) or later
-
The Swift toolchain — install Xcode (or the Command Line Tools) from the App Store. Verify with:
swift --version
Clone the repo and enter it:
git clone https://github.com/markstrom/voidtype.git
cd voidtypemacOS ties the Accessibility permission to the app's code signature. Without a stable identity, every rebuild looks like a "new app" and you'd have to grant permission again. Run this once to create a reusable self-signed identity in your keychain:
./Scripts/create-signing-cert.sh(If you skip this, bundle.sh falls back to ad-hoc signing and you may need to
re-grant Accessibility after each rebuild.)
./Scripts/bundle.shThis compiles a release build, assembles voidtype.app in the repo root, and
code-signs it.
Move the app into your Applications folder (optional) and launch it:
mv voidtype.app /Applications/
open /Applications/voidtype.appThe app appears as a keyboard icon in the menu bar.
VoidType needs Accessibility access to observe keystrokes and inspect the focused field. On first launch macOS prompts you; otherwise:
- Open System Settings → Privacy & Security → Accessibility
- Enable VoidType
The menu-bar icon shows the current status (⌨️ granted,
Click the menu-bar icon for:
- About VoidType — opens an About window with version and links
- Enabled — master on/off toggle
- Launch at login — start VoidType automatically when you sign in
- Settings… — threshold, time window, cooldown, sound/flash, excluded apps
- Quit VoidType
Open Settings… from the menu to tune how and when VoidType warns. The first three settings work together: VoidType warns when you type at least Characters characters within Within seconds while no text field is focused.
-
Characters (default 10, range 1–100) — how many characters must land in the void before VoidType warns. Lower = more sensitive (warns after just a few stray keys); higher = only warns if you type a lot into nothing.
-
Within (default 3.0 s, range 0.5–10 s) — the time window the characters must fall inside. This is what makes it react to fast typing: it's a sliding window, so only keystrokes from the last Within seconds count. A short window means the warning needs a genuine burst of typing; a long window will also catch slower typing into the void. The counter resets the moment you focus a real text field.
-
Quiet period after a warning (cooldown) (default 5 s, range 0–60 s) — after a warning fires, VoidType stays silent for this long so it doesn't beep on every keystroke that follows. Set it to 0 to allow back-to-back warnings.
-
Play a sound (beep) (default on) — play the system beep when warning.
-
Flash the screen (default on) — briefly flash a translucent overlay when warning. Use either, both, or neither (with both off, VoidType detects but won't notify you).
-
Excluded apps — bundle identifiers VoidType ignores entirely; it stays silent while one of these apps is in front. The easiest way to add one is Add from running apps, which lists open apps and fills in the bundle ID for you. You can also type a bundle ID directly (e.g.
com.apple.Safari). Use this for apps where the detection misbehaves, or where you intentionally type without a focused field. To look up a bundle ID from a terminal:defaults read /Applications/Safari.app/Contents/Info CFBundleIdentifier
Settings are saved automatically and persist across launches.
- A global key monitor counts character keystrokes (letters, digits, space, punctuation — not shortcuts, arrows, or modifiers).
- For each keystroke it asks the Accessibility API for the system-wide focused element and classifies it: an editable text field → quiet; nothing focused or a non-text element → the keys are going nowhere.
- If enough characters land in the void within the time window, it warns (respecting the cooldown).
Chromium/Electron apps don't expose their accessibility tree until an assistive
technology asks for it, so VoidType sets AXEnhancedUserInterface /
AXManualAccessibility on the frontmost app to wake it — only one app at a time,
to keep the footprint small.
The logic is split into a pure, OS-independent core and a thin macOS app layer:
Sources/VoidTypeCore/— detection logic (VoidDetector,classifyFocus, sliding window, settings). Fully unit-tested.Sources/voidtype/— the SwiftUI menu-bar app and the Accessibility/AppKit wrappers (key monitor, focus inspector, alerter, tree waker).
Run the tests:
swift testReleased under the MIT License.