Skip to content

Latest commit

 

History

History
 
 

web

Folders and files

README.md

Web

The desktop app's UI: React, TanStack Router and Tailwind, rendered inside Electron. It shows what the app server mirrors from CodeWork RPC servers and sends commands back through it.

Boundaries

  • It reaches CodeWork state only through the app server, over @codeworksh/contract. It never speaks the harness protocol, so one connection carries every machine.
  • Account and workspace calls are the exception: they go straight to Relay over HTTP.
  • Electron hands it the app server's URL and token through window.desktopBridge. A plain browser has no bridge, so its calls fail and widgets say so.
  • It also exports the built-in widget backends as @codeworksh/web/backends, which the app server runs.

Code Map

Working Locally

Run it inside the app with vp run dev:desktop from the root; UI changes hot-reload. Vite listens on the fixed 127.0.0.1:5173, so one checkout runs the desktop app at a time. See development, and desktop internals for the bus, the window manager and UI performance.