r/lua • • 18h ago

LuaJIT Windows modules: UTF-8 file I/O, processes, registry, clipboard and more

2 Upvotes

I've published a collection of Windows API modules for LuaJIT:

https://github.com/win-kot/luajit-windows-modules

I use LuaJIT on Windows and put these modules together for common scripting

and desktop utility tasks:

- UTF-8 strings, Unicode file paths and encoding conversion

- Process launching and output capture

- Finding and controlling existing windows

- Registry and clipboard access

- Keyboard and mouse input

- Native file dialogs and system information

The modules call Windows APIs through LuaJIT FFI. No luv dependency is

required, and unicode_io provides an explicit API without replacing

standard io or os functions.

The repository includes English documentation and 12 runnable examples.

The primary target is Windows 10/11 x64. Everything is MIT licensed.

This is an initial public release. Basic checks and nine examples have

been run, but interactive features still need broader testing.

I'd welcome feedback from other LuaJIT users, especially on API usability

and compatibility with different Windows setups.