https://github.com/zigtools/playground
zig + zls but wasm and it's in the browser 🤯🤯🤯
https://github.com/zigtools/playground
Last synced: 10 months ago
JSON representation
zig + zls but wasm and it's in the browser 🤯🤯🤯
- Host: GitHub
- URL: https://github.com/zigtools/playground
- Owner: zigtools
- License: mit
- Created: 2023-04-03T01:08:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T15:05:37.000Z (over 2 years ago)
- Last Synced: 2025-04-13T10:22:15.630Z (10 months ago)
- Language: TypeScript
- Homepage: https://playground.zigtools.org/
- Size: 11.2 MB
- Stars: 50
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zls in the browser
Works pretty well in a bunch of browsers, but note the required security headers.
## Installing
* Compile zls for `wasm32-wasi` and place `zls.wasm` in `src`
* Additionally, place `zig.tar.gz` (make sure that the name matches) from the website in `src`
* If you've downloaded Zig and built from source following `ZIG_WASM.md`, you can also use this command:
```bash
tar -C /path/to/zig -cz lib/std >src/zig.tar.gz
```
```bash
npm install
npm run serve
```
Enjoy!
## TODOs
- [ ] Stop using `SharedArrayBuffer`s (they're awesome but a nightmare to deploy)