A software tool set that lets you utilize Zig code in your JavaScript projects.
Consult the project wiki for installation instructions and tutorials.
- Access to all Zig data types in JavaScript
- Zig-to-JavaScript, JavaScript-to-Zig call marshalling
- Async task management
- Threads in native code and WebAssembly (with support for pthread)
- Emulating of file system operations
- Support for MacOS, Linux, and Windows (both 64-bit and 32-bit)
- Support for Node.js, Bun.js, Electron, and NW.js (native code execution)
- Support for Webpack, Rollup, and Vite (WebAssembly)
The major and minor version numbers of Zigar correspond to the version of the Zig compiler it's designed for. The current version is 0.15.2. It works with Zig 0.15.x.
Version 0.14.3 has the same feature set as 0.15.2 and works with Zig 0.14.x.
The upcoming version is 0.15.3. The biggest addition will be suppport for the PHP language. It's been under development for the past 6 months and is at the moment being polished and stabilized for release. Once that happens, development will transit immediately to upgrading the entire suite to Zig 0.16.
If you have questions concerning this project, please post them at this project's discussion section. I can also be contacted at ziggit.dev, which also happens to be an excellent forum for finding help on all matters related to the Zig language.
