Hammerspoon
If you can write it in Lua, your Mac can do it.
Some “Visit website” links are affiliate links. We may earn a commission at no extra cost to you.
Editorial summary
Why it's on MacGuild
- The programmable automation layer for people who outgrew GUI macro apps.
Key features
- macOS automation runtime that bridges OS APIs to Lua
- Scripts windows, hotkeys, USB, audio, screens, and other system events
- Configuration lives in ~/.hammerspoon/init.lua; Spoons are shareable plugins
- Free and MIT-licensed
Best for
- Window layouts as code
- Event-driven automation
Hammerspoon exposes macOS APIs to Lua: windows, hotkeys, USB events, HTTP. There is no GUI product beyond a console.
The project is free and open source. You maintain your own `init.lua`.
In collections
Alternatives
All alternativesOther catalog apps that cover similar ground.

Keyboard Maestro
Launchers & automation
Macros that actually stick on a Mac.
PaidApple SiliconAutomationMacros

BetterTouchTool
Input & shortcuts
Remap the whole Mac, then keep going.
PaidSetappActiveGesturesAutomation

Alfred
Launchers & automation
Launch apps and run workflows from the keyboard.
FreemiumApple SiliconLauncherKeyboard

Espanso
Launchers & automation
A privacy-first text expander.
FreeOpen sourceUniversalActiveText ExpanderSnippets