GitShow/mitchellh/zig-js
mitchellh

zig-js

Access the JS host environment from Zig compiled to WebAssembly.

by mitchellh
Star on GitHubFork

Zig

286 stars14 forks3 contributorsQuiet · 5mo agoSince 2022MIT

Meet the team

See all 3 on GitHub →
mitchellh
mitchellh78 contributions
pluiedev
pluiedev5 contributions
der-teufel-programming
der-teufel-programming2 contributions

Languages

View on GitHub →
Zig58%
TypeScript37.2%
Nix3.3%
JavaScript0.6%
HTML0.5%
Shell0.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 3 in progress · Last activity 5mo ago
See all on GitHub →
xentropic-dev
bug: WASM exports stripped due to missing rdynamic flagOpenIssue

The example code doesn't function correctly in version 0.15.2 of zig. The following error shows up in the dev console: This was caused by a breaking change in Zig in which the default behavior was to implicitly export symbols, which is no longer the case. It looks like it has perhaps been broken since this PR: https://github.com/ziglang/zig/pull/14102

xentropic-dev · 10mo ago
xentropic-dev
fix: add rdynamic to fix missing WASM exportsOpenPR

fixes #8 I'm not sure how this was working before but it appears this is needed to prevent zig from stripping the WASM exports. Related PR for Zig: https://github.com/ziglang/zig/pull/14102

xentropic-dev · 10mo ago
setsunica
Fix return boolOpenPR

I found that if I specify a return value of type for or , it does not compile and does not work. I think both Zig and JavaScript need to be modified. In the Zig code, change the return type of from to because it is probably incorrect. In the JavaScript code, when the obtained value is a boolean, write to the output pointer is probably missing, so add it.

setsunica · 2y ago

Recent fixes

View closed PRs →
pluiedev
migrate to 0.16.0-dev.3142+5ccfeb926MergedPR

Part of https://github.com/ghostty-org/ghostty/issues/12228 - merge after the official Zig 0.16.0 release drops

pluiedev · 5mo ago
pluiedev
update to Zig 0.15MergedPR

Also modernized some of the code along the way

pluiedev · 1y ago
der-teufel-programming
Update to 0.14-dev: Update to new std.builtin.TypeMergedPR
der-teufel-programming · 1y ago
Structured data for AI agents

Repository: mitchellh/zig-js. Description: Access the JS host environment from Zig compiled to WebAssembly. Stars: 286, Forks: 14. Primary language: Zig. Languages: Zig (58%), TypeScript (37.2%), Nix (3.3%), JavaScript (0.6%), HTML (0.5%). License: MIT. Open PRs: 3, open issues: 2. Last activity: 5mo ago. Community health: 42%. Top contributors: mitchellh, pluiedev, der-teufel-programming.

·@ofershap

Replace github.com with gitshow.dev