jsapigen generates glue code for embedding Mozilla's JavaScript engine (SpiderMonkey) into C applications. It uses a simple interface definition language to describe the connection between native C code and the JavaScript engine. This description is converted into C code, which can be compiled into an application.