QuickJS Documentation
QuickJS is a super lightweight JavaScript engine written in C. It can be used to run JavaScript directly from the command line, but it is most useful for writing custom JavaScript runtimes that expose C-native functions to the JavaScript code.
Despite its small size, it supports most JavaScript features, including more advanced ones like ES Modules and Promises.
Unfortunately, it is poorly documented, especially its internal workings and its more advanced features. So, having spent a lot of time with the engine myself, I decided to write my own documentation, both for my future self, and hopefully also to help others use it!
Disclaimer
This unofficial documentation is provided as-is and may contain incorrect or outdated information. The official QuickJS documentation is available here.