After searching about pacman wrappers programmed in Lua I came across Clyde, which is a very interesting project. Unfortunately it seems to be abandoned although it is not specified anywhere. If so, I recommend placing the "abandoned" tag. In this way I will start a project from scratch instead of contributing with abandoned pull requests here.
Regards!