When comparing XtraFinder vs Hammerspoon, the Slant community recommends XtraFinder for most people. In the question“What are the best power user tools for macOS?” XtraFinder is ranked 27th while Hammerspoon is ranked 38th.
Ranked in these QuestionsQuestion Ranking
Pro Old full-size color labels from OS X < 10.9
Pro Adds useful toolbar items
XtraFinder provides useful options for toolbar such as: Launch as Root, New Terminal Here, New File..., and Select...
Pro Additional right-click options
Xtra Finder provides additional options when performing the right click.
Pro Custom hotkeys
Pro Copy Path
Pro Can open a terminal in set position
XtraFinder can open up a terminal from the right-click menu in given path with "New Terminal Here".
Pro Dual panel
Split the Finder window into to windows to achieve better file handling.
Pro Colored icons in the Finder sidebar
Pro Deeply customizable
Hammerspoon's Lua scripting and broad API allows you to perform any action you can imagine on your mac. It hooks into many OS APIs directly and has some high-level APIs to manipulate things like Spotify or iTunes. See the full list here.
Pro Automate actions based on the operating system
Hammerspoon lets you hook into OS level events and trigger any action you can imagine. From setting up a simple keyboard shortcut to launching a complex workflow using multiple apps and scripts.
Con Doesn't work on recent macOS versions without a workaround
This tool doesn't work on recent macOS versions, except if you try workaraound that may or may not work. It involves disabling System Integrity Protection and details on how to do it can be found on the XtraFinder website.
Con Some knowledge of programming required
Hammerspoon is scripted in the Lua programming language, and some familiarity with programming in general will be needed to use it. Some plugins exist that can be used by adding some files to a specific folder, but this will not give the flexibility that is so key to Hammerspoon