Show HN: WASI-Env – Single-file HTML with 90 Suckless C binaries and SQLite3(wasi-env.netlify.app) |
Show HN: WASI-Env – Single-file HTML with 90 Suckless C binaries and SQLite3(wasi-env.netlify.app) |
WASI-Env is a portable, single-file HTML WebAssembly execution harness
and POSIX terminal running locally with zero external dependencies.
Features:
- 90 C WASM Binaries compiled from Suckless sbase and ubase
- 46+ wasi_snapshot_preview1 syscalls intercepted
- Official SQLite3 C amalgamation embedded
- Dynamic /proc VFS and POSIX termios (RAW mode)
- In-browser C compiler (/bin/cc) generating WASM on demand
- Persistent IndexedDB storage supporting upstream /bin/df
Note:
This is a messy work-in-progress prototype with many artifacts. I used
an earlier build of this environment as the base to isolate and create
a standalone 6MB single-file Doom port: https://wasi-doom.netlify.app/
The entire single file fits in an LLM context window—feel free to
inspect the Colab, untangle the pieces, and hack on it.