Repository navigation
v0.1.16
Extensions became real applications
This release is mostly about extensions: they can now own documents on disk, be
built like normal JS projects, and do things from the command line.
Open and save files in a tile
suwu open foo.excalidrawnow opens the Excalidraw tile on that file,
and edits save straight back to it — auto-save included (on by default,
debounced, skips unchanged writes). A custom burger menu adds Save to
<file> and Auto save: On/Off; both are hidden when the tile has no file.- Bento Slides (
.bento.html) is new. The file is the application, so the
tile serves the document itself and a small host shim makes Bento's own ⌘S
write back to the server — chunked upload (the API body cap is 4 MiB) and an
atomic temp-file + rename, so an interrupted save can never leave a
half-written application. "Save a copy" goes beside the original; exports
download. - Both need
suwu.fs, which mounts only what they are allowed to touch:
/ext(their own code),/ext-data(their storage) and/fs(the opened
document's directory).
Build extensions with Vite
An extension can now be a normal JS project — package.json with a build
script and npm dependencies — instead of loading libraries from a CDN.
examples/extension/excalidrawis built by Vite intodist.zip(one blob:
162 chunks + 234 fonts), so ~400 files cost one file in git, in the install
payload and in the catalog. Its CSP no longer allows any CDN.noteandhn-top-storiesare built to a single bundle indist/— the
lighter folder pattern, for when splitting buys nothing.eyestays a plain folder with no build at all.- New
suwu install --local <dir> [--build]installs a working tree: it runs the
item's own build script when asked (pnpm/npm/yarn, detected from the lockfile,
workspace roots included), stages onlypackage.json+index.js+ the asset
tree, and skipsnode_modules/,src/, lockfiles and build config. hn-top-storieslost its last third-party script (htmx) and its CDN.
suwu ext-run — commands without a tile
Extensions can register verbs, so you can start a document from a terminal:
suwu ext-run bento new deck.bento.html # a pristine Bento deck
suwu ext-run excalidraw new plan.excalidraw # an empty Excalidraw document
suwu ext-run --list bento # what does this extension offer?Commands run where you ran them (server up or not), through the same sandbox as
a render or an API call, so a command writes only where the extension is allowed
to. --dir picks another directory, --json prints the handler's result.
Static assets: gzip and .wasm
- Static text (JS/CSS/JSON/SVG/wasm) is gzipped once per file and cached:
the app bundle goes from 5.7 MB to 1.5 MB on the wire. - Fonts and documents still load:
.wasmis now served with its proper MIME
type, andrequire "static": "dist.zip"serves an extension's whole asset tree
out of one archive (same URLs, same content-type allow-list, ranges and 304s
intact). - The extension render page is deliberately never compressed — it carries the
scoped token next to caller-controlled input.
Terminal
- Frequent-inputs shelf on the terminal status bar, with a tabbed manager and
saved snippets instead of seven hard-coded slots; a snippet can run itself with
an auto-return flag. - The tile's font size now persists in the space that owns the tile (previously a
toolbar click could land in another space and look unsaved).
Tiles and app chrome
- Extension tiles carry a hide-toolbar button next to close: it hides the
tile toolbar for a configurable time (App settings → Header → Tile toolbar,
0–30 s, 0 removes the button), so controls an extension places in the tile's
top-right corner are reachable. staticservegained sandboxed previews.
Fixes
- Dropbox: pin the drop target above a scrolling file list, and use an explicit
upload button instead of a whole-area drop zone. - Server: prune expired rate-limiter buckets so memory stays bounded.
Upgrading
Nothing to migrate. If you install extensions from the catalog, re-run
suwu install --github <name> --force to pick up the built versions; a
hand-copied extension keeps working as-is.