How ramessesn/cherry-utility-web works
CHERRY Utility for Mac is a browser-based keyboard controller with direct WebHID or a Safari hidapi bridge. The documented workflow is user action in the UI → keyboard transport → configuration/profile/lighting commands → device response reflected in the UI. The sampled server.py confirms bridge endpoints, HID I/O, event streaming, static hosting and battery lookup; web implementation details were not sampled, so UI links follow README documentation and are dashed where implementation is unverified.
Main entry points: index.html Control UI · server.py HTTP service · cherry CLI launcher
Components 19
Browser Utility
- Control UI
web/index.html - WebHID transport
web/index.html
Local Service
- HTTP service
server.py - HID bridge
server.py - Bluetooth battery
server.py - Protocol logs
server.py - CLI launcher
bin/cherry
Keyboard I/O
- hidapi
- CHERRY keyboard
Keyboard Features
- Lighting controls
web/index.html - Per-key lighting
web/index.html - Hardware profiles
web/index.html - Lighting presets
web/index.html - UI settings
web/index.html - Protocol debug
web/index.html - Key map
web/index.html - Device feedback
web/index.html - Time sync
web/index.html
Other components
- Keyboard user
Connections 28
- Keyboard user → Control UI: controls
README.md - Control UI → Lighting controls: configures
README.md - Control UI → Per-key lighting: paints
README.md - Control UI → Hardware profiles: switches
README.md - Control UI → Lighting presets: stores
README.md - Control UI → UI settings: selects
README.md - Control UI → Protocol debug: probes
README.md - Lighting controls → WebHID transport: sends commands
README.md - Per-key lighting → WebHID transport: sends LED data
README.md - Hardware profiles → WebHID transport: reads and writes
README.md - Control UI → HTTP service: requests bridge
README.md - WebHID transport → CHERRY keyboard: communicates
README.md - HTTP service → HID bridge: routes HID requests
server.py - HTTP service → Bluetooth battery: serves battery
server.py - HID bridge → hidapi: opens and reads
server.py - HID bridge → CHERRY keyboard: sends reports
server.py - CHERRY keyboard → HID bridge: streams reports
server.py - HID bridge → HTTP service: publishes events
server.py - HTTP service → Control UI: serves page
server.py - Control UI → Key map: renders mapping
README.md - Control UI → Device feedback: shows responses
README.md - Control UI → Time sync: sets device time
README.md - Time sync → CHERRY keyboard: writes time
README.md - Bluetooth battery → Control UI: reports charge
README.md - Control UI → HTTP service: posts logs
server.py - HTTP service → Protocol logs: writes logs
server.py - Keyboard user → CLI launcher: starts service
README.md - CLI launcher → HTTP service: launches
README.md