How satellite-earth/desktop works
Satellite Desktop is an Electron application for installing and managing a local personal-node. The main flow initializes the desktop shell, loads configuration and identities, starts the node when an identity is active, and opens its dashboard; users also manage identities and NIP-07 permissions through IPC. Tray, menus, and auto-updates are supporting desktop capabilities. The README describes the product goal but not its detailed UI or node-management behavior, so those links are limited to relationships shown in the sampled entrypoint and source index.
Main entry points: index.ts Desktop coordinator · identities.ts Identity manager · nip07.ts NIP-07 permissions · node.ts Node process manager
Components 23
Desktop runtime
- Electron entry
src/index.ts - Desktop coordinator
src/app/index.ts - App configuration
src/app/config.ts - JSON persistence
src/helpers/jsonfile.ts - File helpers
src/helpers/file.ts - Node dashboard
- Renderer bridge
src/preload/main.cts - Identity bridge
src/preload/identity.cts - Launcher bridge
src/preload/launcher.cts - Permission bridge
src/preload/permission.cts - Local config files
Identity and signing
- Identity manager
src/app/identities.ts - Secret manager
src/app/secrets.ts - NIP-07 permissions
src/app/nip07.ts - Permission prompt
src/app/nip07.ts
Local node
- Node process manager
src/interfaces/node.ts - Personal node
- Startup promise
src/helpers/deferred.ts
Desktop shell
- System tray
src/app/tray.ts - Application menu
src/app/menu.ts - PWA launcher
src/app/launcher.ts - Auto-updates
src/app/updates.ts
Other components
- Desktop user
Connections 23
- Desktop user → Electron entry: opens app
src/index.ts - Electron entry → Desktop coordinator: creates
src/index.ts - Desktop coordinator → App configuration: creates
src/app/index.ts - App configuration → JSON persistence: persists via
src/app/config.ts - JSON persistence → File helpers: reads and writes
src/helpers/jsonfile.ts - File helpers → Local config files: reads and writes
src/helpers/file.ts - Desktop coordinator → Node process manager: creates and starts
src/app/index.ts - Node process manager → Startup promise: creates startup wait
src/interfaces/node.ts - Node process manager → Personal node: forks process
src/interfaces/node.ts - Desktop coordinator → Node dashboard: loads dashboard
src/app/index.ts - Desktop user → Identity manager: manages identities
src/app/identities.ts - Desktop coordinator → Identity manager: creates
src/app/index.ts - Identity manager → Secret manager: stores keys
src/app/identities.ts - Identity manager → App configuration: sets active identity
src/app/identities.ts - Desktop coordinator → NIP-07 permissions: creates
src/app/index.ts - NIP-07 permissions → Identity manager: uses active identity
src/app/nip07.ts - NIP-07 permissions → Permission prompt: prompts user
src/app/nip07.ts - Desktop coordinator → System tray: creates and sets up
src/app/index.ts - Desktop coordinator → Application menu: creates and sets up
src/app/index.ts - Desktop coordinator → PWA launcher: creates
src/app/index.ts - Desktop coordinator → Auto-updates: creates
src/app/index.ts - Desktop coordinator → Renderer bridge: configures window
src/app/index.ts - Desktop user → Node dashboard: uses