12 Commits

Author SHA1 Message Date
Pooya Parsa
a962f5cf9e Add guest swap: zram, or zswap in front of a swap file on the data disk, as SDK, CLI and page options 2026-11-30 23:44:09 +00:00
pi0x
6234100fc9 docs: fill the SDK documentation gaps and refresh the README's features (#110)
* docs: document snapshots, host commands, Tailscale, VA-API, fetchRoutes, UDP, the microphone and the camera in the SDK docs and README, and list the newer devices and uses in the README's introduction

* docs: split the Display page into Display and Input, and Sound and Camera

---------

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2026-11-30 11:23:00 +01:00
Pooya Parsa
d8e442a641 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 2026-11-29 17:37:06 +00:00
Pooya Parsa
495fe30a91 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 2026-11-29 15:43:56 +00:00
Pooya Parsa
42b91da2a8 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 2026-11-29 15:22:20 +00:00
Pooya Parsa
ab334389af 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 2026-11-29 13:31:16 +00:00
Adam H
0c92b2370c web: Light / Dark / Auto theme (#53)
* web: add a terminal colour theme option (Auto, Dark, Light)

* web: add an option to turn off the Terminal window's see-through glass

* web: default the terminal colours to Auto

* web: add a page colour theme option (Auto, Dark, Light)

* web: give the chrome's materials in style.css a light variant

* web: give the components' chrome classes a light variant

* web: follow the theme in the charts, the alerts' caution badge and the Docs window

* web: fix the light theme's Dock glyphs, Resume card veil and Browser toolbar hover

* web: read the shown theme from the store and type the option field names

* web: darken the light theme's faint and error colours to 4.5:1 on tints

* web: give the light terminal mid-tone colours that read under black text

* web: lighten the light terminal's green, yellow and cyan for black text on them

* web: use the dark terminal's green in the light terminal

* web: give the light terminal's green, yellow and cyan 4.5:1 on white, as its red, blue and magenta

* web: give the light theme a white status bar on iOS

* web: make the Docs window opaque

* web: post a theme change to the Docs window instead of reloading it

* docs: upgrade undocs nightly, for the Docs window's theme messages

---------

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2026-11-28 22:34:15 +01:00
Pooya Parsa
d80c033106 net: drop the default Wisp server from the SDK
The SDK named the project's Wisp server (DEFAULT_WISP_SERVERS), and the
Node entry sent Origin: http://localhost to pass that server's allow
list (NODE_WISP_HEADERS). The server accepts only the page's origins,
so both are gone: wispBackend() takes the caller's server, and Node
sends handshake headers only when `headers` asks for them. The page
keeps wss://wisp.unkernel.dev:6680/ as its own default (web/src/net.ts).

The live Wisp test takes its server from UNKERNEL_TEST_WISP.
2026-11-27 22:24:02 +00:00
Pooya Parsa
287e41464f net: document Wisp's limits, add a lookup option, move to wisp.unkernel.dev
The README and the SDK docs now say what a guest sees over Wisp: no
half-close (a client that waits for the server to see end of file
hangs), placeholder addresses for every name, no connect
acknowledgement. wispBackend() takes a `lookup` resolver for real
addresses, and its fake address table now evicts the least recently
used name instead of wrapping. The default server is
wss://wisp.unkernel.dev:6680/.

The live Wisp test waited for its marker anywhere in the screen, so the
shell's echo of the command satisfied it; it now waits for the marker at
the start of a line.

Refs #44
2026-11-27 22:15:52 +00:00
Pooya Parsa
fd78ca9ad0 docs: serve cross-origin isolated, so the page's Docs window embeds them in every browser 2026-11-27 21:34:12 +00:00
Pooya Parsa
53e1fe6bb6 docs: add credits 2026-11-27 21:32:46 +00:00
Pooya Parsa
cb784c6e2c chore: init docs 2026-11-27 21:11:51 +00:00