Expand description
What a sandboxed widget can reach through srv (docs/specs/SPEC_USER_WIDGETS_AND_WIDGET_API_2026_10_09.md §6.3, §11).
The widget itself never talks to srv: its pane host does, for the calls that need srv (storage, net, agents). Each pane gets a session token when it opens. The token is no credential anywhere else; it names one package at the hash the user approved, and every call checks again that the package is still approved at that hash, enabled, and granted the permission the call needs, whatever the frontend already checked.
Structs§
Constants§
- ERROR_
PREFIX - Errors reach the pane host as
widget-error:and a JSON object{ code, message, data? }, the bridge’s own error (§6.6). - MAX_
SESSIONS 🔒 - SENDS_
PER_ MINUTE - SEND_
MAX_ BYTES - STORAGE_
KEY_ MAX_ BYTES - STORAGE_
MAX_ BYTES - STORAGE_
VALUE_ MAX_ BYTES