A FOUNDATION FOR YOUR NEXT APP
Windows & Explorer
Manage native windows and embed independent browser surfaces.
Experimental source release. Production hardening and published SDK packages are still in progress.
Native window control#
Initial windows are declared in app.windows. The generated window facade supports create, focus, minimize, maximize, bounds, title, fullscreen, and close. WindowId is an opaque browser-process identifier represented as bigint in JavaScript.
javascript
import '/tuffite-shell-api.js';
const current = await window.tuffite.window.current();
await window.tuffite.window.setTitle('My application', current.id);
const windows = await window.tuffite.window.list();Embed an Explorer surface#
Explorer is Tuffite’s integrated Blink/Content browser element. Its policy controls creation, JavaScript execution, partitioning, and lifecycle. Grant the relevant explorer capability for trusted application origins. Playground contains transfer, history, nested surface, and isolation examples.
json
{
"identifier": "browser-ui",
"origins": ["myapp://main"],
"explorer": { "create": true, "executeJavaScript": false },
"shellApi": ["tuffite.window.*"]
}