Watch
Use watch as the default development loop for HTML-first apps.
Command
webstir watch --workspace /absolute/path/to/workspace
What It Does
- Detects the workspace mode from
package.json. - Starts Bun-native frontend watch for
spa,ssg, andfullworkspaces. - Starts the backend build watcher and runtime for
apiandfullworkspaces. - Serves the frontend through Bun when a frontend surface exists.
- Proxies
/api/*to the backend runtime infullmode. - Rebuilds on changes under
src/**andtypes/**.
The old --frontend-runtime flag has been removed. Frontend watch now follows the workspace mode directly.
What To Validate
Use the proof apps as the baseline:
bun run watch:auth-crudto validate sign-in, validation recovery, redirect-after-post, and CRUD flowsbun run watch:dashboardto validate shell and panel fragment refreshes
Readiness
The backend runtime reports readiness with API server running. The orchestrator waits for the port to open before declaring the backend ready.
The watch suite covers SPA rebuilds and removed-flag handling, and full has integration coverage for frontend edits, backend edits, and /api proxying.
To get a backend-only loop, scaffold an api workspace with webstir init api <directory>.