Repository navigation
docs: fill the SDK documentation gaps and refresh the README's features - #110
Merged
Merged
Conversation
…es, UDP, the microphone and the camera in the SDK docs and README, and list the newer devices and uses in the README's introduction
pi0
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The SDK's exports and
createKerneloptions were compared against the README's "Use it from JavaScript" section anddocs/1.sdk/. This fills the gaps.New docs pages
/sdk/commands):commands,addCommand()andremoveCommand(), the handler's context, and how its return value ends the guest process./sdk/tailscale): moved over from the README, plus the options it lacked (ephemeral,tags,controlPublicKeyfor headscale in a page) and thevm.tailscalemethods./sdk/snapshots):snapshot()withstop,commitandhold,restore,encodeSnapshot()anddecodeSnapshot(), what a restore needs and what survives it, and detachable sessions withattach().Updated docs pages
directBackend()andwispBackend()carry UDP now, so the page no longer says "no UDP beyond DHCP and DNS". AddshostLoopbackandfetchRoutes()./sdk/display: the framebuffer and evdev) and a new Sound and Camera page (/sdk/sound: playback, plus the microphone withsoundInandcreateAudioIn(), and the camera withcamera,createCamera()and H.264). The Getting Started cards link to both.va).signal,consoleSize,log,onDiskError,memoryFallbackMiB,profileandvm.distro, and listssoundInandcameraamong the devices.docs/index.md): the device list now includes the microphone, camera, virtio-gpu, VA-API, serial, Bluetooth and USB.undocs build.README
fetchRoutes(),hostLoopbackand UDP to "Add a network", and the OPFS data disk to "Add disks".Checked
The host commands, snapshot (save, restore,
attach()) andfetchRoutes()examples were run under Node against the current bundle and give the results shown in their comments. The VA-API, camera and microphone sections are browser-only and were written from the code and.agents/va.md, not run.Not documented
serveWasiPrograms()(WASI programs on the host's engine) is left out, because the code calls it a prototype.🤖 Generated with AI assistant