app

command
v5.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Command app is the render-thread half of v5's two-artifact packaging (plan item P3.10).

The whole point of this binary is what it does NOT contain. It renders, holds resident projections, and issues commands — and it imports no database engine, so wazero and SQLite never enter app.wasm. M5 measures the result.

The domain half is ../services, which does import the engine and is compiled separately into services.wasm for a worker.

It is also the reference for the two rules that make a worker-backed app work at all, both of which are easy to get wrong in ways that look like a hung page rather than a bug:

  1. Never call a command from a DOM callback. See runCommand.
  2. Apply the result through ui.PostAsync. See applyResult.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL