Hammerspoon
Lua-powered desktop automation bridge for macOS.
Hammerspoon is a macOS automation tool that connects the operating system to a Lua scripting engine. It solves the problem of writing custom system-level automation by exposing macOS APIs through extensions, allowing users to write Lua code that interacts with applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, low-level keyboard and mouse events, clipboards, location services, wifi, and more. Users typically write a Lua configuration file in ~/.hammerspoon/init.lua that connects events to actions, such as binding keyboard shortcuts to window operations, running commands when a wifi interface connects, or displaying alerts based on battery level.
Hammerspoon includes extensions that expose specific pieces of system functionality, along with pre-made plugins called Spoons. The project provides a Getting Started Guide, full API Documentation, and Release Notes for compatibility with different macOS versions. Extensions can be written as pure Lua scripts offering helper functions, or as Objective-C extensions that expose new areas of system functionality. Hammerspoon is distributed as a downloadable macOS application that users install by dragging it to /Applications/. The project is open source, with contribution guidelines and an issue tracker available on GitHub, and community support through a Discord server.
12 alternatives to Hammerspoon
Ranked by how well each tool replaces Hammerspoon: shared features, audience, price and popularity.
Premier Mac automation software using macros triggered by keystrokes or schedules
Covers 1 of 15 key features.
57 out of 100 match—BASIC-like scripting language for automating Windows GUI and general scripting.
Covers 9 of 15 key features and has a free plan.
Free planOpen source57 out of 100 matchFree- 57 out of 100 match$19.99/mo
The orchestration engine for teams who ship.
Covers 7 of 15 key features and has a free plan.
Free planOpen source55 out of 100 matchUsage-based- 54 out of 100 matchContact sales
Automation, productivity and utility software for Windows and iOS
Covers 0 of 15 key features and has a free plan.
Free plan54 out of 100 matchContact sales- 53 out of 100 matchFree
Test, transform and automate Web requests and emails
Covers 4 of 15 key features and has a free plan.
Free plan53 out of 100 match$7.50/moProductivity app for macOS using hotkeys, keywords, and text expansion to search and la...
Covers 5 of 15 key features and has a free plan.
Free plan53 out of 100 matchContact salesPhysical smart buttons, dimmers, and hubs that trigger automations with a push or twist
Covers 7 of 15 key features.
53 out of 100 match—Open-source browser and desktop automation with AI macro assistant and MCP integration
Covers 3 of 15 key features and has a free plan.
Free planOpen source52 out of 100 match$24.92/moCode-first orchestration platform for internal software
Covers 9 of 15 key features and has a free plan.
Free planOpen source52 out of 100 match$120/mo