Skip to main content
SYS_INIT // DWARKESH.LAB
DWARKESHRAMANI
Computer Engineering · Full-Stack Engineer
INITIALIZING DWARKESH // BUILD SYSTEM...12%
03/Mobile & Systems Developer·2026·SHIPPED

GitRemote

Remote Git operations and diff inspection from mobile devices.

React NativeExpoTypeScriptNode.jsExpressNative Git CLILocal Subnet Discovery

01 // OVERVIEW

Remote Git operations and diff inspection from mobile devices.

THE PROBLEM

When away from your workstation or during emergencies, inspecting uncommitted diffs, staging modified files, or triggering hotfix pushes required launching heavy remote desktop software over high-latency connections.

THE IDEA & APPROACH

A lightweight mobile-native client paired with a minimal Node.js daemon running locally on your computer. Uses LAN auto-discovery to sync Git repositories without exposing private keys to third-party cloud servers.

02 // SYSTEM ARCHITECTURE & DATA FLOW

Peer-to-peer LAN architecture featuring an auto-discovery subnet scanner, native Git command wrapper, and an asynchronous diff visualizer.

FIG 1.0 // LOCAL WI-FI IPC & REMOTE REPOSITORY SYNCHRONIZATIONANDROID APPReact Native / ExpoSubnet Ping SweepWi-Fi LAN / IPCPC COMPANIONNode.js Express DaemonSubnet Auto-DiscoveryNATIVE HOST GITchild_process spawnUses Host SSH / GPG Keys
DETAILED EXECUTION SEQUENCE
01 →PC daemon starts, binds to local port, and broadcasts presence or responds to subnet probe
02 →Mobile app scans local /24 subnet to auto-pair with the PC daemon without manual IP entry
03 →Daemon executes non-blocking native git status and diff commands against configured repo roots
04 →Mobile client renders colored line additions, deletions, and hunks with horizontal scroll support
05 →User selects hunks to stage, inputs commit message, and triggers authenticated git push

03 // TECHNICAL DECISIONS & TRADE-OFFS

DECISIONSpawn native host Git CLI via Node.js child_process
ALTERNATIVES CONSIDEREDDirect Host Git vs Re-implementing Git in JS
WHY

Leverages the host's existing SSH keys, GPG signing configs, submodules, and credential helpers without storing private keys in the app.

DECISIONLocal subnet ping sweep with token challenge
ALTERNATIVES CONSIDEREDPairing Mechanism
WHY

Eliminates frustrating manual typing of dynamic 192.168.x.x addresses on mobile virtual keyboards.

04 // CHALLENGES & RESOLUTIONS

CHALLENGE // 01

Rendering massive 10,000+ line diffs on mobile devices without dropping below 60fps UI frame rates.

CHALLENGE // 02

Handling network drops gracefully during git push operations to avoid corrupting index states.

CHALLENGE // 03

Accommodating differing newline and line-ending standards across Windows and POSIX host systems.

05 // VERIFIED OUTCOMES

Fully functional Android APK built with Expo and TypeScript.

Dual mode capability: LAN PC Agent mode for local work, and GitHub Cloud PAT mode when PC is offline.

Fast, fluid diff inspector with syntax-aware hunk highlighting.

06 // LESSONS & TAKEAWAYS

Developer tools on mobile must prioritize speed and utility over superfluous ornamentation.
Direct device-to-device local networks provide instant latency advantages over relaying through cloud servers.
STATUS: VERIFIED ON GITHUB