Skip to content

v0.1.12

Choose a tag to compare

@github-actions github-actions released this 02 Oct 12:26
· 175 commits to master since this release

Extensions, from scratch

Extensions are now a first-class tile type. A suwu install-ed extension is a
small JavaScript program that returns an HTML page; it runs in a QuickJS isolate,
in its own process, with its own API routes, static assets, and a token scoped to
its own API.

  • suwu gq — a command-line runner for the same sandbox, so an extension's
    logic is scriptable and testable outside the browser.
  • package.json metadata — npm-style fields at the top level, Suwu
    specifics under suwu. Replaces meta.json outright; a missing or malformed
    manifest fails resolution exactly like a missing entry point.
  • API routes and static assets — suwu.api registers ordered handlers
    served from the extension's own scripts, matched segment-wise and first-match
    wins; suwu.static publishes a directory under /gqjs/static/<id>/.
  • Scoped tokens — an extension's API calls carry a token derived for that
    one id. It cannot recover the session token, the signing key, or another
    extension's token.
  • Links open as normal tabs behind a CSP sandbox guard, so an extension
    cannot navigate the shell out from under you.
  • The Note example, a full client-side app with an ext-store storage
    bridge — and now Apple Notes-style checklists (tappable boxes, indent,
    auto-continue, progress badge) and inline formatting (bold, italic,
    underline, strikethrough, mono) across nine slots.

Settings backup

Your settings and extension data no longer live only in the browser. System
Settings → Backup keeps an encrypted copy on the server, so a new browser, a
new machine, or a cleared profile comes back exactly as you left it.

Encryption happens in the browser: a passphrase you choose derives a key via
PBKDF2, which wraps a random data key, and each backup is sealed with
AES-256-GCM. The server cannot read your backup — the passphrase is never
sent, and never stored. It refreshes on a timer you choose (default every 5
minutes, only when something actually changed), keeps the last ten versions,
and gives you a recovery code for restoring on another browser.

Restoring merges by default: the newer value of each setting wins and nothing is
deleted. Replace mode makes the browser an exact copy of the backup. suwu upgrade now reports your backup after replacing the binary.

Installable extras

suwu install puts backgrounds and extensions into the data directory, from
a picker over the first-party catalog or from a zip. Archives are validated with
the same resolvers the server uses, so a broken install never lands.

Folder Sync

A new tile that mirrors a folder on the server into a folder on your own
computer, one way and re-checked every few seconds, straight from the browser.
Configs persist; the active sync is not, so sync only runs while the tile is
open and you have started it.

Interface

  • Configurable header position — dock the header to any edge.
  • Drag-to-move layout — move tiles into place with the mouse, replacing the
    tile-move shortcuts. Alt+M enters drag-to-move mode.
  • Upright side-header icons and a split-up button.
  • Built-in avatars with a generated user name, and app picker search.
  • Login avatar picker with built-in, Gravatar, and upload sources.
  • DB Browser for SQLite, MySQL, and PostgreSQL; a Postman-style REST
    helper
    that reaches localhost and your LAN from the server side, with
    responses persisted to IndexedDB and history duplication.
  • WebGPU backgrounds externalized behind a served module ABI, so a shader
    scene is a drop-in file.

Fixes

  • Note checklist tick — the tick inherited the paper colour while the fill
    animated to a fully opaque pastel, leaving it at 1:1 contrast. It is now drawn
    in ink and reads on all five colours.
  • Upgrade confirmation and auto-logout — suwu upgrade now confirms before
    upgrading and logs out cleanly on success.
  • Terminal reset action — recover a stuck TUI session without killing it.
  • Onboarding picks a visible TUI theme on non-256-color terminals.
  • File viewer sizes its tile to the container padding.
  • Settings refreshes both the background and extension registries when the
    dialog opens.

Upgrading

suwu upgrade as usual. Your backup, if you have one, is stored beside the data
directory and is not touched by replacing the binary — the command now prints a
one-line summary to confirm.