This website requires JavaScript.
Explore
Help
Register
Sign In
jarod
/
unkernel
Watch
1
Star
0
Fork
0
You've already forked unkernel
mirror of
https://github.com/pithings/unkernel.git
synced
2026-12-02 16:50:47 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
4e5855569f74a5f4af189e2c4905ca8728e0ebc2
unkernel
/
web
History
Pooya Parsa
b347874391
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
..
public
web: WebSockets in the guest preview: the service worker puts the shim /vm-ws.js into the HTML documents it relays, whose WebSocket reaches the guest (ws://localhost:<port>, /vm/<id>/<port>/, root-relative paths) through the page over a BroadcastChannel, where websocketOver() (js/core/ws.ts, RFC 6455 over vm.connect()) runs it, with credits, a socket cap and Web Locks for teardown; a preview document's root-relative requests are relayed to its port, so a Vite dev server's client and HMR work
2026-11-22 15:22:51 +00:00
scripts
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
2026-11-21 18:12:27 +00:00
server
Fetch a distro image's warm set in the background and read ahead for sequential readers: the Debian image lays out what apt and dpkg read after the prompt (guest/distro/debian/warm-files, traced like boot-files, no fragments) right after the boot set, and its distro header (now 136 bytes) names that range, which HttpBase fetches in 4 MiB pieces once the boot is quiet (not with Save-Data); HttpBase streams every range per chunk and, after a miss next to chunks it has, fetches 1 MiB ahead, doubling to 4 MiB while the reader keeps up (readAhead). With 100 ms of added latency apt-cache show bash takes 1.0 s after a quiet prompt (3.3 s typed at once) instead of 8.1 s
2026-11-21 14:32:21 +00:00
src
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
test
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
.gitignore
Rebuild the guest packages for aarch64, add ~/.local/bin and the stand-ins
2026-11-19 00:12:38 +00:00
index.html
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
package.json
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
profile.html
web: boot in a worker on the suggested CPUs by default, and add /profile.html
2026-11-19 16:36:29 +00:00
tsconfig.json
Initial commit
2026-11-15 23:27:04 +00:00
vite.config.ts
web: WebSockets in the guest preview: the service worker puts the shim /vm-ws.js into the HTML documents it relays, whose WebSocket reaches the guest (ws://localhost:<port>, /vm/<id>/<port>/, root-relative paths) through the page over a BroadcastChannel, where websocketOver() (js/core/ws.ts, RFC 6455 over vm.connect()) runs it, with credits, a socket cap and Web Locks for teardown; a preview document's root-relative requests are relayed to its port, so a Vite dev server's client and HMR work
2026-11-22 15:22:51 +00:00