StateRelay
CompletedCross-Platform Distributed Workspace State Synchronization
Problem
Developers constantly switch machines — desk, laptop, home — and lose context every time: which branch was active, what was uncommitted, which files and tabs were open.
Challenges
- Capturing accurate Git repository state — active branches and uncommitted diffs — into a portable session schema
- Zero-configuration device discovery on local networks using mDNS
- Securing device-to-device transfer with mutual TLS instead of relying on a cloud relay
- Restoring editor state (tabs, layouts, cursor positions) via VS Code and Browser APIs across macOS, Linux, and Windows
Solution
A cross-platform Go background agent and CLI that captures local Git repository state, active branches, and uncommitted file diffs into portable JSON session schemas, then transfers them directly between paired devices over a local network using mDNS discovery and mutual TLS — with zero configuration and no cloud dependency.
Architecture
A Go background agent and CLI capture Git repository state into portable JSON session schemas. mDNS handles zero-configuration device discovery on the local network, and mutual TLS secures the direct device-to-device transfer. TypeScript extensions using the VS Code and Browser APIs extract and restore active editor layouts, cursor positions, and tabs across macOS, Linux, and Windows.
Stack
Highlights
- Cross-platform Go background agent and CLI for Git repository state capture
- Zero-configuration device pairing via mDNS discovery and mutual TLS
- TypeScript VS Code and Browser extensions for editor state restoration
- Complete state restoration across Linux, macOS, and Windows