Hammerspoon
Hacker ApprovedThe most recommended of 6 automation apps
People recommend it as a free, scriptable Lua-based automation tool for macOS, used for window management, hotkeys and app integrations. Common caveat: Lua must be learned first.
People recommend it as a free, scriptable Lua-based automation tool for macOS, used for window management, hotkeys and app integrations. Common caveat: Lua must be learned first.
66 people gave an opinion
- recommend it
- 61
- criticize it
- 5
- approval share
- 92%
Recommended in 10 of 13 months
- November 2025: not recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 61 people recommend itNeeds 10 or more, met.
- 12 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 10 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Custom scripts for personal workflows
“I was able to put together a hammerspoon script that does the job decently enough for my purposes”
Comment from 13 Mar 2026 in “Hammerspoon” “I never had a problem with the windowing system ever since I built my own customization scripts”
Comment from 25 Aug 2026 in “Apple introduces M6 and M5 Ultra” “I have a few hammerspoon customization for me to choose and open the applications I have.”
Comment from 22 Mar 2026 in “HopTab–free,open source macOS app switcher and tiler that replaces Cmd+Tab” - Comment from 22 Mar 2026 in “Ghostling”
- Comment from 15 Mar 2026 in “Hammerspoon”
- Comment from 30 Mar 2026 in “Cherri – programming language that compiles directly to a Apple Shortuct”
- Comment from 16 Mar 2026 in “Hammerspoon”
Window resizing and placement hotkeys
“I love Hammerspoon!! here's my one handed shortcuts for window control across multiple monitors”
Comment from 14 Mar 2026 in “Hammerspoon” “I have a slightly more elaborate setup that allows me to resize from one or another side”
Comment from 13 Mar 2026 in “Hammerspoon” “I'm now happy with hotkeys in Hammerspoon that reposition and resize the current window”
Comment from 14 Mar 2026 in “Hammerspoon” - Comment from 12 Jan 2026 in “The struggle of resizing windows on macOS Tahoe”
Access to macOS APIs
“Hammerspoon isn't targeted at programmers because it's abstracting hard things (interfacing with macOS system libraries, etc.) into easier ones”
Comment from 14 Mar 2026 in “Hammerspoon” “Hammerspoon (Mac) is much better. It's basically Lua, with access to all the MacOS automation APIs.”
Comment from 23 Jul 2026 in “Malleable Computing, Emacs, and You” “Insanely easier to use, way better programming language, a kitchen sink of macOS APIs”
Comment from 13 Mar 2026 in “Hammerspoon” - Comment from 8 Jan 2026 in “Show HN: macOS menu bar app to track Claude usage in real time”
Key remapping and macros
“I wanted to bind a keyboard shortcut to an option from a menu bar app which doesn’t support keybinding”
Comment from 14 Mar 2026 in “Hammerspoon” “Hammerspoon [0] is a free option that can handle arbitrary key mappings/macros”
Comment from 24 May 2026 in “Key, in sight [Creative uses of keyboard shortcuts and macros]” “I use it to map double CMD to swap between the terminal and the browser.”
Comment from 13 Mar 2026 in “Hammerspoon”
What people warn about
Each mark is one comment
Requires learning Lua
“Personally, it's having to figure out Lua is what's kept me away from it”
Comment from 14 Mar 2026 in “Hammerspoon” “I'll have a hell of a time rewriting everything into Lua”
Comment from 14 Mar 2026 in “Hammerspoon” “there are lots of things about the Lua APIs that I don't like”
Comment from 15 Mar 2026 in “Hammerspoon” - Comment from 13 Mar 2026 in “Hammerspoon”
- Comment from 13 Mar 2026 in “Hammerspoon”
Other automation apps people recommend
The four most recommended other automation apps, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| HammerspoonThis page | 61 | 5 | 92% | 10 | — | Approved |
| Shortcuts | 57 | 35 | 62% | 12 | — | — |
| Tasker | 12 | 5 | 71% | 8 | — | Approved |
| Automator (macOS) | 7 | 7 | 50% | 5 | — | — |
| Noodlesoft Hazel | 7 | 0 | 100% | 4 | — | — |
What people said
40 of the 83 comments that mention it, newest first. Each links to the original comment.
“I can mostly ignore the problems with Karabiner, Hammerspoon and Rectangle.”
“I never had a problem with the windowing system ever since I built my own customization scripts”
“Hammerspoon is amazing, and LLMs are very good at writing configuration for it.”
“Hammerspoon (Mac) is much better. It's basically Lua, with access to all the MacOS automation APIs.”
“I can interactively poke through elements of my WM through Hammerspoon on Mac, and that's just bananas.”
“Hammerspoon [0] is a free option that can handle arbitrary key mappings/macros”
“exposes an nrepl endpoint - I can directly inspect any UI element of any app”
“you can push much further if you don't mind writing more glue code”
“I finally found hammerspoon and scripted an option that consistently works.”
“my "tiling manager" is about 6-7 custom functions I wrote in hammerspoon”
“I have a few hammerspoon customization for me to choose and open the applications I have.”
“A combination of https://selfcontrolapp.com/ and Hammerspoon automation and you can lock yourself out of pretty much everything.”
“I also found it useful to have Hammerspoon flip a virtual switch in, well, Hubitat for me”
“all of that could be accomplished with it instead of Bash”
“I vibecoded a local whisper replacement with claude and hammerspoon”
“there are lots of things about the Lua APIs that I don't like”
“Hammerspoon isn't targeted at programmers because it's abstracting hard things (interfacing with macOS system libraries, etc.) into easier ones”
“I wanted to bind a keyboard shortcut to an option from a menu bar app which doesn’t support keybinding”
“I'll have a hell of a time rewriting everything into Lua”
“I'm now happy with hotkeys in Hammerspoon that reposition and resize the current window”
“once you've got some stuff going, it's easier to hook into Hammerspoon”
“Saved my life, was going crazy click-clicking to nab the right window.”
“only hs had the ability to render custom panes over maximized windows”
“Personally, it's having to figure out Lua is what's kept me away from it”
“I love Hammerspoon!! here's my one handed shortcuts for window control across multiple monitors”
“I did enjoy having an excuse to explore the language in Hammerspoon”
“Thank you for your work on Hammerspoon! I've been using it for years.”
“Thank you so much for doing what Apple's neglected to do for many years!”
“Hammerspoon is basically my only reason to write Lua”
“I pretty much only use it for two (related) things these days”
“Hammerspoon's window management performance is not nearly as good as Aerospace's”
“Insanely easier to use, way better programming language, a kitchen sink of macOS APIs”
“I was able to put together a hammerspoon script that does the job decently enough for my purposes”
“I only use Hammerspoon for this and a couple tiny things, but it's completely worth it for this alone.”
“I use it to map double CMD to swap between the terminal and the browser.”
“dotfile headaches stack up with Hammerspoon and Lua”
“I have a slightly more elaborate setup that allows me to resize from one or another side”
“As I use hammerspoon with hotkeys to resize and move the apps between displays.”
“it comes with a lot of macOS integrations out of the box”
“I finally caved and used hammerspoon to write everything I needed myself”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.