Since the application it was being designed for has been taken off my list of current projects, this one has as well. It may be resurrected if this kind of package has not been written (or I can't find it) after a later review.
lua-libhook is both general purpose and tailored most specifically to the needs of war-libcustomapi.
Static linking is intended; i.e., include the version of the lib you are using along with your own software in lua.
These details are provided for information only. No information here is legal advice and should not be used as such.