https://github.com/chung-leong/zigar
Toolkit enabling the use of Zig code in JavaScript projects
https://github.com/chung-leong/zigar
bunjs electron javascript nodejs nwjs rollup-plugin wasm webpack-plugin zig zig-package
Last synced: 21 days ago
JSON representation
Toolkit enabling the use of Zig code in JavaScript projects
- Host: GitHub
- URL: https://github.com/chung-leong/zigar
- Owner: chung-leong
- License: mit
- Created: 2023-05-10T21:05:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-12T11:23:53.000Z (25 days ago)
- Last Synced: 2025-05-12T12:34:59.547Z (25 days ago)
- Topics: bunjs, electron, javascript, nodejs, nwjs, rollup-plugin, wasm, webpack-plugin, zig, zig-package
- Language: JavaScript
- Homepage: https://zigar.net
- Size: 50.9 MB
- Stars: 257
- Watchers: 5
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Zigar

A software tool set that lets you utilize [Zig](https://ziglang.org/) code in your JavaScript
projects.Consult the [project wiki](https://github.com/chung-leong/zigar/wiki) for installation instructions
and tutorials.## Features
* 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
* 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)## Versioning
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.14.0. It works with Zig 0.14.0.## Technical support
If you have questions concerning this project, please post them at this project's
[discussion section](https://github.com/chung-leong/zigar/discussions). I can also be contacted at
[ziggit.dev](https://ziggit.dev/), which also happens to be an excellent forum for finding help on
all matters related to the Zig language.