How sazedur-siam/web-driver-mk75 works
Lingbao MK75 Driver is a browser-based keyboard configuration app. The main workflow is: a user connects an MK75, edits a feature such as lighting or key mapping, and saves changes to keyboard memory; profiles and backups support preserving or reapplying configurations. The graph separates the UI, device/protocol stack, and feature domains. Some feature modules are represented by their exact UI paths because their implementation was not sampled; their capabilities and links to the keyboard are documented in the README.
Main entry points: useDevice.ts Device session · LiveTab.tsx Live effects · App.tsx App shell · lazyParts.tsx Feature navigation
Components 34
Browser app
- App shell
src/App.tsx - Feature navigation
src/ui/lazyParts.tsx - Keyboard view
src/ui/Keyboard.tsx - Install support
src/ui/pwa.ts
Device and protocol
- Device session
src/ui/useDevice.ts - Device discovery
src/protocol/connect.ts - HID transport
src/protocol/transport.ts - Wired protocol
src/protocol/mk75.ts - Wireless protocol
src/protocol/wireless/mk75Wireless.ts - Wireless link
src/protocol/wireless/link.ts - Packet codec
src/protocol/wireless/packet.ts - Device operations
src/protocol/device.ts - Device simulator
src/protocol/mock.ts - Keyboard layout
src/device/mk75Layout.ts - Keycode mapping
src/protocol/keycodes.ts - Lighting data
src/protocol/lighting.ts - Macro encoding
src/protocol/macro.ts
Configuration features
- Profiles and presets
src/ui/ProfilesTab.tsx - Backup and restore
src/ui/BackupTab.tsx - Key mapping
src/ui/KeymapTab.tsx - Lighting controls
src/ui/LightingTab.tsx - Per-key colors
src/ui/PerKeyTab.tsx - Side lights
src/ui/SideLightsTab.tsx - Game mode
src/ui/GameModeTab.tsx - Macro editor
src/ui/MacrosTab.tsx
Live and diagnostics
- Live effects
src/ui/LiveTab.tsx - Live frame engine
src/protocol/live.ts - Screen sync
src/protocol/screenSync.ts - Timer and signals
src/protocol/signals.ts - Custom effects
src/protocol/effectDesigner.ts - Key testing
src/ui/TesterTab.tsx - Chatter check
src/protocol/chatter.ts
Other components
- Keyboard user
- MK75 keyboard
Connections 31
- Keyboard user → App shell: opens
README.md - App shell → Feature navigation: loads features
src/App.tsx - App shell → Device session: manages connection
src/App.tsx - App shell → Install support: initializes install
src/main.tsx - Device session → Device discovery: requests device
src/ui/useDevice.ts - Device discovery → Wired protocol: opens wired
src/protocol/connect.ts - Device discovery → Wireless link: opens wireless
src/protocol/connect.ts - Wireless protocol → Wireless link: sends requests
src/protocol/wireless/mk75Wireless.ts - Wireless link → Packet codec: encodes packets
src/protocol/wireless/link.ts - Wired protocol → HID transport: uses reports
src/protocol/mk75.ts - Device session → Device operations: exposes operations
src/ui/useDevice.ts - Device simulator → Wired protocol: simulates protocol
src/protocol/mock.ts - Wired protocol → MK75 keyboard: reads and writes
README.md - Wireless protocol → MK75 keyboard: reads and writes
README.md - Profiles and presets → Device session: applies settings
README.md - Backup and restore → Device session: backs up device
README.md - Key mapping → Keycode mapping: encodes mappings
src/protocol/keycodes.ts - Lighting controls → Lighting data: edits effects
README.md - Per-key colors → Lighting data: edits key colors
README.md - Game mode → Device session: applies setup
README.md - Macro editor → Macro encoding: encodes macros
README.md - Feature navigation → Profiles and presets: loads tab
src/ui/lazyParts.tsx - Feature navigation → Live effects: loads tab
src/ui/lazyParts.tsx - Feature navigation → Key testing: loads tab
src/ui/lazyParts.tsx - Live effects → Live frame engine: builds frames
src/ui/LiveTab.tsx - Live effects → Screen sync: uses screen input
src/ui/LiveTab.tsx - Live effects → Timer and signals: renders signals
src/ui/LiveTab.tsx - Live effects → Custom effects: renders custom effects
src/ui/LiveTab.tsx - Live effects → Device session: streams frames
README.md - Key testing → Keyboard user: reports key tests
README.md - Keyboard view → Keyboard layout: renders layout
src/ui/Keyboard.tsx