# Third-party software in xnu-wasm What the site serves, what each piece is built from, and under which license. Every upstream is fetched at a pinned revision by `scripts/setup.sh` and `scripts/xnu-prepare.sh` and patched by the files in `patches/`; nothing of it is vendored in this repository. No Apple closed-source software is included or served: each user builds a disk image from their own Mac (`scripts/make-disk.sh`), and that image never leaves their computer. ## `xnu.wasm` (the kernel) | Component | Upstream (pinned) | License | |---|---|---| | XNU | apple-oss-distributions/xnu `f6217f89` (xnu-12377.1.9) + `patches/xnu/` | APSL-2.0 | | HFS+ file system | apple-oss-distributions/hfs `124b970f` (hfs-715.120.4) | APSL-2.0 | | libpthread, kernel part (`kern/`) | apple-oss-distributions/libpthread `1f4f5265` (539.100.4) + `patches/libpthread/` | APSL-2.0 | | libdispatch, `src/firehose/firehose_buffer.c` and headers | apple-oss-distributions/libdispatch `2361ffb7` + `patches/libdispatch/` | Apache-2.0 | | zlib (in XNU's `libkern/zlib`) | part of XNU | zlib license | | DriverKit iig output (generated from XNU's sources) | Droid-VM/macOS-DroidVM `524d27bf` (`k27/iig`) | APSL-2.0 (as the XNU sources it is generated from) | | XNU external headers | PureDarwin/PureDarwin `65a1b18a` (`src/Kernel/xnu/EXTERNAL_HEADERS`) | APSL-2.0 and the headers' own notices | | The wasm machine layer and stand-ins (`port/`) | this repository | MIT (`LICENSE`); `patches/xnu/` and other changes to APSL files are APSL-2.0 | APSL-2.0 (Apple Public Source License 2.0): the modified sources are published (this repository: `patches/`, `port/`), with the license text and notices kept; see `work/xnu/APPLE_LICENSE` after `scripts/setup.sh`, or . ## `kwemu.wasm` (the AArch64 CPU emulator) | Component | Upstream (pinned) | License | |---|---|---| | kwemu (unkernel `src/emu`, `src/a64`), its JIT tier | pithings/unkernel `c4a2fb0f` + `patches/kwemu/` | GPL-2.0-or-later | kwemu is a separate WebAssembly module: it is built and linked on its own (`tools/xnu-node/boot-iter.sh`) and works with the kernel only through its exported functions over shared memory. Its complete corresponding source is unkernel at the revision above plus `patches/kwemu/` (GPL-2.0-or-later as well). The GPL-2.0 text: unkernel's `LICENSE`. ## Page and host (JavaScript) | Component | Upstream | License | |---|---|---| | Network stack (`work/vendor/net*.mjs`, generated by `tools/xnu-node/vendor-net.mjs`) | pithings/unkernel `c4a2fb0f`, its MIT-licensed files | MIT | | xterm.js | `@xterm/xterm` 5.5.0 (npm) | MIT | | host/, web/, tools/ | this repository | MIT (`LICENSE`) | ## Not part of what is served Build and test tools (Zig, LLVM/wasm-ld, Binaryen's wasm-opt, Node, Playwright) are used to build and test, not distributed. xnulinux (AFK-surf/xnulinux, fetched by `scripts/setup.sh`) is consulted for design notes; none of its code is compiled in. --- ## Sources for this deployment Generated by `deploy/build-site.sh` on 2026-11-29T16:30Z from xnu-wasm commit `54f46a7e2e35ecaeb9668fa1a84ba5f5140c83dc`. "This repository" above means that commit. | What | Source at the pinned revision | |---|---| | xnu-wasm: `port/`, `patches/`, `host/`, `web/`, `tools/`, `scripts/` | [https://xnu-wasm.lucasgelfond.online/source/xnu-wasm-54f46a7e.tar.gz](https://xnu-wasm.lucasgelfond.online/source/xnu-wasm-54f46a7e.tar.gz) (this site), or https://github.com/lucasgelfond/xnu-wasm/tree/54f46a7e2e35ecaeb9668fa1a84ba5f5140c83dc | | unkernel (kwemu, the network stack) | [https://xnu-wasm.lucasgelfond.online/source/unkernel-c4a2fb0f.tar.gz](https://xnu-wasm.lucasgelfond.online/source/unkernel-c4a2fb0f.tar.gz) (this site), or https://github.com/pithings/unkernel/tree/c4a2fb0fa97190beef4cc0d6d470744658f125ec | | XNU | https://github.com/apple-oss-distributions/xnu/tree/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea | | HFS+ | https://github.com/apple-oss-distributions/hfs/tree/124b970fd5390f1c2cd6f985478616a04f6eeb1f | | libpthread | https://github.com/apple-oss-distributions/libpthread/tree/1f4f5265b319111142f1bf3a27d4484ef5a98314 | | libdispatch | https://github.com/apple-oss-distributions/libdispatch/tree/2361ffb78a76f7ee488cd052eb0bc5c767118bf9 | | XNU external headers | https://github.com/PureDarwin/PureDarwin/tree/65a1b18aa02baf0c29bb7edcd9af588308c308b0/src/Kernel/xnu/EXTERNAL_HEADERS | | DriverKit iig output | https://github.com/Droid-VM/macOS-DroidVM/tree/524d27bf57ae92375aa39e3a81e11727c08973ff/k27/iig | | xterm.js 5.5.0 | https://github.com/xtermjs/xterm.js/tree/5.5.0 (served: https://xnu-wasm.lucasgelfond.online/node_modules/@xterm/xterm/lib/xterm.js, [license](https://xnu-wasm.lucasgelfond.online/xterm/LICENSE)) | License texts: [APSL-2.0](https://xnu-wasm.lucasgelfond.online/licenses/APSL-2.0.txt), [GPL-2.0](https://xnu-wasm.lucasgelfond.online/licenses/GPL-2.0.txt), [Apache-2.0](https://xnu-wasm.lucasgelfond.online/licenses/Apache-2.0.txt), [MIT, unkernel](https://xnu-wasm.lucasgelfond.online/licenses/MIT-unkernel.txt), [MIT, xterm.js](https://xnu-wasm.lucasgelfond.online/licenses/MIT-xterm.txt). **xnu.wasm (APSL-2.0, sections 2.2 and 2.3).** The Source Code of the Covered Code in `build/xnu.wasm` (XNU, HFS+ and libpthread at the revisions above, with this project's modifications in `patches/xnu/`, `patches/libpthread/` and `port/`) is available under the terms of the APSL-2.0 at the links above. The module says so itself, in its `license` custom section. **kwemu.wasm (GPL-2.0-or-later).** `build/kwemu.wasm` is kwemu from unkernel at `c4a2fb0fa97190beef4cc0d6d470744658f125ec` with `patches/kwemu/` applied (`scripts/setup.sh` builds it, `tools/xnu-node/boot-iter.sh` links it). Its complete corresponding source is offered here, from the same place as the module, for as long as the module is served: unkernel's tarball above and `patches/kwemu/`, `scripts/setup.sh` and `tools/xnu-node/boot-iter.sh` in xnu-wasm's source.