--
You received this message because you are subscribed to the Google Groups "Hammerspoon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/CAHWFm4fZn3n0%3DkdF62w4KuHz9-tqq98YBQMK%2BSkC8it-0XsUbw%40mail.gmail.com.
1. Do you have an HS2 config you could share to show some examples?
2. Are JavaScript packages (for example via npm) available for inclusion in the config ecosystem?
3. Can I run HS1 and HS2 at the same time, so that I can migrate script by script from Lua to the new HS2 JavaScript?
4. I am not sure whether it makes sense to add a legacy plugin, spoon, extension, or similar that needs to be installed, set up, or activated so that HS1 Lua code can also run in HS2. I understand that running legacy code in a new HS2 environment is a burden, so this would only be an option if it is easy to implement.
5. Maybe there could be a converter from Lua to JavaScript, or some instruction Markdown files for Claude Code?
Lua. I learned about Hammerspoon history and found that "Sdegutis built Zephyros (Ruby OSX automation, also other Lang support), then Phoenix (JavaScript OSX Automation), then Hydra (Lua based) which became Mjolnir, which is forked to Hammerspoon." So, Javascript had been tried before, and the Phoenix project still lives on at https://github.com/kasper/phoenix . I'm curious if you know about Phoenix's history before Hammerspoon and why it didn't work as well as Hammerspoon.
--
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/CAGY83EesbwZAHCg6J-%2Bf0Z%3DKYojPDMFv0Ybo_tW72xGYxAsNsQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Hammerspoon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/70644c1e-907a-440c-a69f-ad82877121d5n%40googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/CAHWFm4dsnOe%3DJ524%2B_UmeJ2OjN8EMp0LaA-JfOCOhrYsFNGEeQ%40mail.gmail.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/9e4df472-bee2-42f0-b0ca-7bf7b0d6aca6%40app.fastmail.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/9B209A66-E551-4B3D-8E35-549899A3FEB4%40tenshu.net.
Hey
On Wed, 24 Dec 2025 at 17:29, M N wrote:1. Do you have an HS2 config you could share to show some examples?This is a very simple JS config I've been using while testing. It doesn't really do very much, but it might give some hints as to what it would look like:
2. Are JavaScript packages (for example via npm) available for inclusion in the config ecosystem?So, this is an area where I am out of my depth. I do know that not all JS runtimes are created equal. For example, Node provides a lot of functionality that JavaScriptCore's basic ECMAScript environment does not.So... I don't really know what npm usage would be like, and I will likely need to defer all of that to people more familiar with the JS world than me.
3. Can I run HS1 and HS2 at the same time, so that I can migrate script by script from Lua to the new HS2 JavaScript?I don't think there's any realistic way we could release HS2 through the current repo and update stream, so I would expect it to be a completely separate "Hammerspoon 2.app" and therefore you could run them at the same time.
4. I am not sure whether it makes sense to add a legacy plugin, spoon, extension, or similar that needs to be installed, set up, or activated so that HS1 Lua code can also run in HS2. I understand that running legacy code in a new HS2 environment is a burden, so this would only be an option if it is easy to implement.tbh this sounds like it would be an enormous amount of work and would almost force us to shoot for 1-1 API compatibility. I would like to use this as an opportunity to re-think and improve various parts of our API.
5. Maybe there could be a converter from Lua to JavaScript, or some instruction Markdown files for Claude Code?It would certainly be interesting to see how well LLMs could do at converting!
--Cheers,Chris
--You received this message because you are subscribed to the Google Groups "Hammerspoon" group.To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/2921768b-f904-4c81-9a6d-f781b0dfaaban%40googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/899c26dd-b028-4d17-8060-ae9dcb896cc9%40app.fastmail.com.
--
You received this message because you are subscribed to the Google Groups "Hammerspoon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/hammerspoon/43803ebf-2e98-4c9d-b086-27af5594996e%40app.fastmail.com.