About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
unkernel
tsiry-sandratraina.com
/
Star
Starred
Star
1
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
An experimental port of NetBSD, FreeBSD, OpenBSD, and XNU to unkernel
unkernel.dev
unkernel
linux
freebsd
netbsd
wasm
+5 more
unkernel
linux
freebsd
netbsd
wasm
Star
Starred
Star
1
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
Version history of
web/src/
boot.ts
November 2026
Merge remote-tracking branch
'upstream/main'
'upstream/main'
tsiry-sandratraina.com
·
20h ago
c63c5adb
Copied
Failed
Copy SHA
tsiry-sandratraina.com
c63c5adb
Copied
Failed
Copy SHA
Merge remote-tracking branch 'upstream/main'
20h ago
web: redesign the top bar's right side as applets, each a status item with its own panel that opens on hover or click: CPU, Memory, Disk, Network (with Tailscale, a mode row and a sketch of the traffic's path), Ports, Display (the theme and the GPU), Sound and media (with a live microphone and camera indicator), Bluetooth, Serial, USB and Transfers (with the clipboard); bigger spacing, icons on a plate over the wallpaper, glassy popovers, and a Kernel log that opens at its bottom
Pooya Parsa
·
21h ago
e8f60af8
Copied
Failed
Copy SHA
Pooya Parsa
e8f60af8
Copied
Failed
Copy SHA
web: redesign the top bar's right side as applets, each a status item with its own panel that opens on hover or click: CPU, Memory, Disk, Network (with Tailscale, a mode row and a sketch of the traffic's path), Ports, Display (the theme and the GPU), Sound and media (with a live microphone and camera indicator), Bluetooth, Serial, USB and Transfers (with the clipboard); bigger spacing, icons on a plate over the wallpaper, glassy popovers, and a Kernel log that opens at its bottom
21h ago
Merge remote-tracking branch
'upstream/main'
'upstream/main'
tsiry-sandratraina.com
·
22h ago
4fc5c229
Copied
Failed
Copy SHA
tsiry-sandratraina.com
4fc5c229
Copied
Failed
Copy SHA
Merge remote-tracking branch 'upstream/main'
22h ago
Keep the page's data disk in OPFS in worker mode: OpfsDisk (8 MiB extent files), the SDK's backend option for the data disk, a one-way migration from IndexedDB, a storage quota block and a free Disk size in Settings, and a question in a second tab instead of an in-memory copy
Pooya Parsa
·
23h ago
d8e442a6
Copied
Failed
Copy SHA
Pooya Parsa
d8e442a6
Copied
Failed
Copy SHA
Keep the page's data disk in OPFS in worker mode: OpfsDisk (8 MiB extent files), the SDK's backend option for the data disk, a one-way migration from IndexedDB, a storage quota block and a free Disk size in Settings, and a question in a second tab instead of an in-memory copy
23h ago
Add guest USB on WebUSB: kwusb (a USB host controller whose transfers the host serves, with usbfs and the FTDI, CP210x, CH341 and PL2303 serial drivers), the SDK's usb option and vm.usb with a fake test device, and a USB devices section in the page's Settings
Pooya Parsa
·
1d ago
495fe30a
Copied
Failed
Copy SHA
Pooya Parsa
495fe30a
Copied
Failed
Copy SHA
Add guest USB on WebUSB: kwusb (a USB host controller whose transfers the host serves, with usbfs and the FTDI, CP210x, CH341 and PL2303 serial drivers), the SDK's usb option and vm.usb with a fake test device, and a USB devices section in the page's Settings
1d ago
Add guest Bluetooth on Web Bluetooth: kwbt (an HCI transport, hci0 while a controller is attached), the SDK's bluetooth option and vm.bluetooth with an emulated LE controller, Bluetooth and Serial ports sections in the page's Settings with Terminal buttons, and the Bluetooth and Serial Monitor launcher apps
Pooya Parsa
·
1d ago
42b91da2
Copied
Failed
Copy SHA
Pooya Parsa
42b91da2
Copied
Failed
Copy SHA
Add guest Bluetooth on Web Bluetooth: kwbt (an HCI transport, hci0 while a controller is attached), the SDK's bluetooth option and vm.bluetooth with an emulated LE controller, Bluetooth and Serial ports sections in the page's Settings with Terminal buttons, and the Bluetooth and Serial Monitor launcher apps
1d ago
Add guest serial ports on Web Serial: kwserial (/dev/ttyACM0..3), the SDK's serial option and vm.serial, Connect in the page's Settings and from a toast, and the Thonny and GTKTerm launcher apps
Pooya Parsa
·
1d ago
ab334389
Copied
Failed
Copy SHA
Pooya Parsa
ab334389
Copied
Failed
Copy SHA
Add guest serial ports on Web Serial: kwserial (/dev/ttyACM0..3), the SDK's serial option and vm.serial, Connect in the page's Settings and from a toast, and the Thonny and GTKTerm launcher apps
1d ago
Merge branch 'main' into tailscale
Pooya Parsa
·
1d ago
4b713a5a
Copied
Failed
Copy SHA
Pooya Parsa
4b713a5a
Copied
Failed
Copy SHA
Merge branch 'main' into tailscale
1d ago
Add a guest microphone and camera: kwsnd capture, kwcam (V4L2, raw and host-encoded H.264), and camera frames named to the kwva
encoder
encoder
Pooya Parsa
·
1d ago
1b229902
Copied
Failed
Copy SHA
Pooya Parsa
1b229902
Copied
Failed
Copy SHA
Add a guest microphone and camera: kwsnd capture, kwcam (V4L2, raw and host-encoded H.264), and camera frames named to the kwva encoder
1d ago
js: add a pure-JS Tailscale network device (work in
progress)
progress)
Pooya Parsa
·
1d ago
d382f7fa
Copied
Failed
Copy SHA
Pooya Parsa
d382f7fa
Copied
Failed
Copy SHA
js: add a pure-JS Tailscale network device (work in progress)
1d ago
web: load the kernels, renderers and distro images from the release
mirror
mirror
Pooya Parsa
·
3d ago
08af7d9f
Copied
Failed
Copy SHA
Pooya Parsa
08af7d9f
Copied
Failed
Copy SHA
web: load the kernels, renderers and distro images from the release mirror
3d ago
web: free the Mac's select all and Ctrl-A: on Apple devices the shortcut prefix is ⌘J (it was Ctrl-A and ⌘A), so ⌘A selects all and Ctrl-A always reaches the guest; Ctrl-C in a terminal there sends ^C also with text selected, and keys pressed with ⌘ in the Display window are released when ⌘ comes up (browsers send no keyup for them); elsewhere Ctrl-A in a text field of the page with text in it is select all
Pooya Parsa
·
5d ago
3f7bb384
Copied
Failed
Copy SHA
Pooya Parsa
3f7bb384
Copied
Failed
Copy SHA
web: free the Mac's select all and Ctrl-A: on Apple devices the shortcut prefix is ⌘J (it was Ctrl-A and ⌘A), so ⌘A selects all and Ctrl-A always reaches the guest; Ctrl-C in a terminal there sends ^C also with text selected, and keys pressed with ⌘ in the Display window are released when ⌘ comes up (browsers send no keyup for them); elsewhere Ctrl-A in a text field of the page with text in it is select all
5d ago
va: guest VA-API on the browser's WebCodecs (kwva): a libva driver in the base's kw layer sends each picture over vsock to a VideoDecoder or VideoEncoder on the page (createKernel({ va }), on by default on Debian, ?va=0); it decodes VP9, H.264, AV1 and HEVC (HEVC not yet run in a browser), encodes VP9, reads pictures back as exact NV12, exports surfaces as dmabufs of virtio-gpu resources and draws a decoded VideoFrame into a BGRX surface on the GPU (mpv --hwdec=vaapi --vo=dmabuf-wayland: 1080p H.264 at 30 fps on an M4 Pro)
Pooya Parsa
·
5d ago
1f0648d8
Copied
Failed
Copy SHA
Pooya Parsa
1f0648d8
Copied
Failed
Copy SHA
va: guest VA-API on the browser's WebCodecs (kwva): a libva driver in the base's kw layer sends each picture over vsock to a VideoDecoder or VideoEncoder on the page (createKernel({ va }), on by default on Debian, ?va=0); it decodes VP9, H.264, AV1 and HEVC (HEVC not yet run in a browser), encodes VP9, reads pictures back as exact NV12, exports surfaces as dmabufs of virtio-gpu resources and draws a decoded VideoFrame into a BGRX surface on the GPU (mpv --hwdec=vaapi --vo=dmabuf-wayland: 1080p H.264 at 30 fps on an M4 Pro)
5d ago
js: export the page's Web Audio sink as createAudioOut() from unkernel/web
(#17)
(#17)
Pooya Parsa
·
5d ago
5a4ba76d
Copied
Failed
Copy SHA
Pooya Parsa
5a4ba76d
Copied
Failed
Copy SHA
js: export the page's Web Audio sink as createAudioOut() from unkernel/web (#17)
5d ago
gl: let a WebGL error drop one call instead of putting the guest's context in error
(#27)
(#27)
Pooya Parsa
·
5d ago
0da40f0a
Copied
Failed
Copy SHA
Pooya Parsa
0da40f0a
Copied
Failed
Copy SHA
gl: let a WebGL error drop one call instead of putting the guest's context in error (#27)
5d ago
vk: present Wayland windows without copying (wland 0.1.0-261124-3c987e5 external buffers: the ICD names each swapchain image to the compositor and the page resolves it from the WebGPU texture; readback stays the fallback and for X11), track descriptor writes that spill over bindings and read back only the ranges the GPU wrote (device-local and host-visible memory types only), take a read-only marking from a buffer's members in the translator; web: Vulkan in the resource monitor, no guest Vulkan where WebGPU has no adapter, llama.cpp and D3D12 (vkd3d) gears and triangle apps, the Agents folder renamed AI
Pooya Parsa
·
6d ago
17781fa3
Copied
Failed
Copy SHA
Pooya Parsa
17781fa3
Copied
Failed
Copy SHA
vk: present Wayland windows without copying (wland 0.1.0-261124-3c987e5 external buffers: the ICD names each swapchain image to the compositor and the page resolves it from the WebGPU texture; readback stays the fallback and for X11), track descriptor writes that spill over bindings and read back only the ranges the GPU wrote (device-local and host-visible memory types only), take a read-only marking from a buffer's members in the translator; web: Vulkan in the resource monitor, no guest Vulkan where WebGPU has no adapter, llama.cpp and D3D12 (vkd3d) gears and triangle apps, the Agents folder renamed AI
6d ago
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
Pooya Parsa
·
6d ago
3538073b
Copied
Failed
Copy SHA
Pooya Parsa
3538073b
Copied
Failed
Copy SHA
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
6d ago
web: rewrite the page as a desktop
Pooya Parsa
·
1w ago
b3478743
Copied
Failed
Copy SHA
Pooya Parsa
b3478743
Copied
Failed
Copy SHA
web: rewrite the page as a desktop
1w ago
gl: a new renderer after a lost WebGL context, and no renderer for 2D clients: after a loss the guest's next new GL context (or vtest client) builds a fresh renderer, so GL programs started after it work without a page reload (those running at the loss fail every command until restarted; vm.gl.status lost, losses, renewals); a dumb-buffer KMS client's context commands are held and answered without loading the renderer, and reach it before the first command that needs GL; checks for display resize, multisampling, context loss and Chromium's GPU path
Pooya Parsa
·
1w ago
ef348655
Copied
Failed
Copy SHA
Pooya Parsa
ef348655
Copied
Failed
Copy SHA
gl: a new renderer after a lost WebGL context, and no renderer for 2D clients: after a loss the guest's next new GL context (or vtest client) builds a fresh renderer, so GL programs started after it work without a page reload (those running at the loss fail every command until restarted; vm.gl.status lost, losses, renewals); a dumb-buffer KMS client's context commands are held and answered without loading the renderer, and reach it before the first command that needs GL; checks for display resize, multisampling, context loss and Chromium's GPU path
1w ago
web: a Wayland desktop: unmodified Wayland apps in the guest show as windows in the page through wland (npm wland, its relay /usr/lib/kw/wlandr pinned in the base): the page listens on vsock port 1023 and loads wland on the relay's first connection, client buffers are read in place through kwshm, GL clients' dmabufs are shown by virtio-gpu resource without readback (--dmabuf virtgpu, vm.gl.gpu.image()), and the clipboard is bridged; the guest's wland CMD starts the relay and sets the Wayland session (XDG_SESSION_TYPE and the toolkit variables, /etc/profile.d/kw-wayland.sh; Debian's chromium through /etc/chromium.d), and with a relay that has --link-on-demand the page's kw.wayland=1 starts it at boot, so GUI apps need no prefix; launcher tiles foot and GL windows, test/wland/page-check.mjs
Pooya Parsa
·
1w ago
bcaa48d1
Copied
Failed
Copy SHA
Pooya Parsa
bcaa48d1
Copied
Failed
Copy SHA
web: a Wayland desktop: unmodified Wayland apps in the guest show as windows in the page through wland (npm wland, its relay /usr/lib/kw/wlandr pinned in the base): the page listens on vsock port 1023 and loads wland on the relay's first connection, client buffers are read in place through kwshm, GL clients' dmabufs are shown by virtio-gpu resource without readback (--dmabuf virtgpu, vm.gl.gpu.image()), and the clipboard is bridged; the guest's wland CMD starts the relay and sets the Wayland session (XDG_SESSION_TYPE and the toolkit variables, /etc/profile.d/kw-wayland.sh; Debian's chromium through /etc/chromium.d), and with a relay that has --link-on-demand the page's kw.wayland=1 starts it at boot, so GUI apps need no prefix; launcher tiles foot and GL windows, test/wland/page-check.mjs
1w ago
gl: load the renderer on the guest's first GL use (the device advertises virgl's capsets from fixed sizes; gl.eager, ?glload=eager load before boot) and turn guest GL on by default for Debian in the page, with the virtio-gpu device (?gpu=0: the vtest link only); the kw layer ships /etc/X11/kw-kms.conf (modesetting with glamor on /dev/dri/card0) and sets the vtest variables only without the device; virtio-gpu waits up to 30 s, killably, for a capset; a suspend while a program uses the GPU is refused at once with a message
Pooya Parsa
·
1w ago
84d70b9b
Copied
Failed
Copy SHA
Pooya Parsa
84d70b9b
Copied
Failed
Copy SHA
gl: load the renderer on the guest's first GL use (the device advertises virgl's capsets from fixed sizes; gl.eager, ?glload=eager load before boot) and turn guest GL on by default for Debian in the page, with the virtio-gpu device (?gpu=0: the vtest link only); the kw layer ships /etc/X11/kw-kms.conf (modesetting with glamor on /dev/dri/card0) and sets the vtest variables only without the device; virtio-gpu waits up to 30 s, killably, for a capset; a suspend while a program uses the GPU is refused at once with a message
1w ago
gl: answer Mesa's busy waits ahead of the GPU (at most one per client, never after a readback of the same resource), mark a query's result pending when the guest asks for it (virglrenderer patch 12), and count parks, readbacks, GL and upload time per frame (vm.gl.stats.renderer, the page's Guest GL row); ?glwait=strict or gl.strictWaits restores vtest's waits
Pooya Parsa
·
1w ago
199211ae
Copied
Failed
Copy SHA
Pooya Parsa
199211ae
Copied
Failed
Copy SHA
gl: answer Mesa's busy waits ahead of the GPU (at most one per client, never after a readback of the same resource), mark a query's result pending when the guest asks for it (virglrenderer patch 12), and count parks, readbacks, GL and upload time per frame (vm.gl.stats.renderer, the page's Guest GL row); ?glwait=strict or gl.strictWaits restores vtest's waits
1w ago
web: offer guest GL (?gl=1, Options, Debian only): the page serves the renderer, passes kw.gl=1 so that the guest's shells use virgl (profile.d/kw-gl.sh), and names the WebGL2 renderer in the Environment tab, warning of a software one; release.yml attaches virgl.mjs and virgl.wasm
Pooya Parsa
·
1w ago
ea9ddc29
Copied
Failed
Copy SHA
Pooya Parsa
ea9ddc29
Copied
Failed
Copy SHA
web: offer guest GL (?gl=1, Options, Debian only): the page serves the renderer, passes kw.gl=1 so that the guest's shells use virgl (profile.d/kw-gl.sh), and names the WebGL2 renderer in the Environment tab, warning of a software one; release.yml attaches virgl.mjs and virgl.wasm
1w ago
js: answer chosen plain-http hosts with the host's fetch (fetchRoutes, a NetBackend wrapper with a small HTTP/1.1 server, and routes in the wisp spec); web: route deb.debian.org to a CORS mirror (?routes=0 turns it off)
Pooya Parsa
·
1w ago
a00216cb
Copied
Failed
Copy SHA
Pooya Parsa
a00216cb
Copied
Failed
Copy SHA
js: answer chosen plain-http hosts with the host's fetch (fetchRoutes, a NetBackend wrapper with a small HTTP/1.1 server, and routes in the wisp spec); web: route deb.debian.org to a CORS mirror (?routes=0 turns it off)
1w ago
web: save the session and pause the machine when the tab is hidden, and go on in place if the page lived; offer Pause after a cancelled close; suspend and resume without questions, quietly, with terminal windows reattached, a centred card and the state in the tab title
Pooya Parsa
·
1w ago
d68d1ee1
Copied
Failed
Copy SHA
Pooya Parsa
d68d1ee1
Copied
Failed
Copy SHA
web: save the session and pause the machine when the tab is hidden, and go on in place if the page lived; offer Pause after a cancelled close; suspend and resume without questions, quietly, with terminal windows reattached, a centred card and the state in the tab title
1w ago
Park, snapshot and resume the SMP kernel: a rendezvous of every CPU at the consistent point, a restore that starts the other CPUs again and restarts each idle task, the CPU count in the snapshot, and Suspend on the page with several CPUs
Pooya Parsa
·
1w ago
a30598df
Copied
Failed
Copy SHA
Pooya Parsa
a30598df
Copied
Failed
Copy SHA
Park, snapshot and resume the SMP kernel: a rendezvous of every CPU at the consistent point, a restore that starts the other CPUs again and restarts each idle task, the CPU count in the snapshot, and Suspend on the page with several CPUs
1w ago
Run the distro images as a default user (user, 1000:1000) with passwordless sudo, load the kw profile in every interactive shell, and move ~/README from the page into the
images
images
Pooya Parsa
·
1w ago
1fcc7e64
Copied
Failed
Copy SHA
Pooya Parsa
1fcc7e64
Copied
Failed
Copy SHA
Run the distro images as a default user (user, 1000:1000) with passwordless sudo, load the kw profile in every interactive shell, and move ~/README from the page into the images
1w ago
web: add open and xdg-open in the guest, which open a URL in the preview or a new tab after a confirm
Pooya Parsa
·
1w ago
d91e188b
Copied
Failed
Copy SHA
Pooya Parsa
d91e188b
Copied
Failed
Copy SHA
web: add open and xdg-open in the guest, which open a URL in the preview or a new tab after a confirm
1w ago
web: keep the options in localStorage instead of the URL, and drop ?demo=
Pooya Parsa
·
1w ago
7de755a6
Copied
Failed
Copy SHA
Pooya Parsa
7de755a6
Copied
Failed
Copy SHA
web: keep the options in localStorage instead of the URL, and drop ?demo=
1w ago
web: boot in a worker on the suggested CPUs by default, and add
/profile.html
/profile.html
Pooya Parsa
·
1w ago
97ec5e55
Copied
Failed
Copy SHA
Pooya Parsa
97ec5e55
Copied
Failed
Copy SHA
web: boot in a worker on the suggested CPUs by default, and add /profile.html
1w ago
web: drop the fx stand-ins and the libfx demo, rename ?smp= to ?cpus=, and refresh the demos
Pooya Parsa
·
1w ago
9f6353b7
Copied
Failed
Copy SHA
Pooya Parsa
9f6353b7
Copied
Failed
Copy SHA
web: drop the fx stand-ins and the libfx demo, rename ?smp= to ?cpus=, and refresh the demos
1w ago
web: fetch the kernel and distro images at build time, default to
Debian
Debian
Pooya Parsa
·
1w ago
a06ccb6a
Copied
Failed
Copy SHA
Pooya Parsa
a06ccb6a
Copied
Failed
Copy SHA
web: fetch the kernel and distro images at build time, default to Debian
1w ago
data disk: reset a disk written by another guest architecture, keeping
/root
/root
Pooya Parsa
·
1w ago
6d1ade15
Copied
Failed
Copy SHA
Pooya Parsa
6d1ade15
Copied
Failed
Copy SHA
data disk: reset a disk written by another guest architecture, keeping /root
1w ago
Rebuild the guest packages for aarch64, add ~/.local/bin and the
stand-ins
stand-ins
Pooya Parsa
·
1w ago
5f3a2b36
Copied
Failed
Copy SHA
Pooya Parsa
5f3a2b36
Copied
Failed
Copy SHA
Rebuild the guest packages for aarch64, add ~/.local/bin and the stand-ins
1w ago
web: boot on several CPUs with the CPUs option
(?smp=N)
(?smp=N)
Pooya Parsa
·
1w ago
21fc21c8
Copied
Failed
Copy SHA
Pooya Parsa
21fc21c8
Copied
Failed
Copy SHA
web: boot on several CPUs with the CPUs option (?smp=N)
1w ago
web: scope the service worker to /vm/ and drop the offline
copy
copy
Pooya Parsa
·
2w ago
cabc62f8
Copied
Failed
Copy SHA
Pooya Parsa
cabc62f8
Copied
Failed
Copy SHA
web: scope the service worker to /vm/ and drop the offline copy
2w ago
web: write intro notes to /root/README in the guest
Pooya Parsa
·
2w ago
0cd01e99
Copied
Failed
Copy SHA
Pooya Parsa
0cd01e99
Copied
Failed
Copy SHA
web: write intro notes to /root/README in the guest
2w ago
web: add fx, the coding agent, in a side panel working on the
VM
VM
Pooya Parsa
·
2w ago
3fd7021d
Copied
Failed
Copy SHA
Pooya Parsa
3fd7021d
Copied
Failed
Copy SHA
web: add fx, the coding agent, in a side panel working on the VM
2w ago
Initial commit
Pooya Parsa
·
2w ago
26d08730
Copied
Failed
Copy SHA
Pooya Parsa
26d08730
Copied
Failed
Copy SHA
Initial commit
2w ago