How sheng3533/lightlink works
LightLink is a Tauri remote-desktop application. Its main workflow is to start a host service or connect to a remote device, then view/control its screen; the product also provides file transfer, terminal access, monitoring, logs, and settings. Vue views invoke Rust commands, while Rust coordinates TCP sessions, encryption, screen capture, and input handling. The excerpts show the main session and frontend command paths; some feature-view-to-command wiring is unsampled, so those relationships are omitted rather than inferred.
Main entry points: index.ts View router · network.rs TCP sessions · main.ts App bootstrap · App.vue App shell
Components 20
Frontend shell
- App bootstrap
src/main.ts - App shell
src/App.vue - Sidebar navigation
src/components/Sidebar.vue - View router
src/router/index.ts - App state
src/stores/app.ts
Remote features
- Home
src/views/Home.vue - Devices
src/views/Devices.vue - Remote desktop
src/views/Remote.vue - File transfer
src/views/Files.vue - Remote terminal
src/views/Terminal.vue - Monitor wall
src/views/MonitorWall.vue - Logs
src/views/Logs.vue - Settings
src/views/Settings.vue
Rust runtime
- Tauri commands
src-tauri/src/lib.rs
Session internals
- TCP sessions
src-tauri/src/network.rs - Message protocol
src-tauri/src/protocol.rs - Session encryption
src-tauri/src/crypto.rs - Screen capture
src-tauri/src/capture.rs - Input control
src-tauri/src/input.rs
Other components
- User
Connections 20
- User → App bootstrap: uses
README.md - App bootstrap → App shell: mounts
src/main.ts - App shell → Sidebar navigation: renders
src/App.vue - App shell → View router: renders routes
src/App.vue - View router → Home: routes to
src/router/index.ts - View router → Devices: routes to
src/router/index.ts - View router → Remote desktop: routes to
src/router/index.ts - View router → File transfer: routes to
src/router/index.ts - View router → Remote terminal: routes to
src/router/index.ts - View router → Monitor wall: routes to
src/router/index.ts - View router → Logs: routes to
src/router/index.ts - View router → Settings: routes to
src/router/index.ts - App bootstrap → App state: initializes
src/main.ts - App state → Tauri commands: invokes commands
src/stores/app.ts - Remote desktop → Tauri commands: invokes commands
src/views/Remote.vue - Tauri commands → TCP sessions: delegates sessions
src-tauri/src/lib.rs - TCP sessions → Message protocol: uses messages
src-tauri/src/network.rs - TCP sessions → Session encryption: uses encryption
src-tauri/src/network.rs - TCP sessions → Screen capture: captures frames
src-tauri/src/network.rs - TCP sessions → Input control: dispatches input
src-tauri/src/network.rs