# Desktop Source Layout - `main.ts`: Electron app lifecycle and browser window setup. - `preload.ts`: isolated bridge exposed to the renderer. - `rpc.ts`: local RPC method handling. The desktop app owns Electron APIs. Renderer-facing types come from `packages/contracts`, and reusable non-Electron data belongs in `packages/shared`.