How vani-tty1/velocity works
Velocity is a GTK/Libadwaita desktop speed-test app using LibreSpeed servers. A user opens the app, starts a test, and sees server selection, latency/jitter, download and upload results; the window also presents saved history and preferences. The sampled code shows application startup, window-to-engine use, server-list loading, history persistence, and transfer behavior. Some engine-to-stage calls are not visible in the excerpts, so those links are marked unverified rather than inferred as certain.
Main entry points: velocity-window.c Test window · velocity-application.c Application lifecycle · velocity-speedtest.c Test coordinator · velocity-speedtest-servers.c Server discovery
Components 12
Desktop application
- Program entry
src/main.c - Application lifecycle
src/velocity-application.c
User interface
- Test window
src/velocity-window.c - Preferences dialog
src/velocity-preferences-dialog.c - Accent color
src/velocity-accent.c - Result history
src/velocity-window.c
Speed-test engine
- Test coordinator
src/velocity-speedtest.c
Server and network stages
- Server discovery
src/velocity-speedtest-servers.c - Ping and jitter
src/velocity-speedtest-ping.c - Download and upload
src/velocity-speedtest-transfer.c
Other components
- User
- LibreSpeed servers
Connections 15
- User → Program entry: launches
src/main.c - Program entry → Application lifecycle: creates and runs
src/main.c - Application lifecycle → Test window: presents
src/velocity-application.c - Application lifecycle → Preferences dialog: opens
src/velocity-application.c - Application lifecycle → Accent color: initializes
src/velocity-application.c - User → Test window: starts test
- Test window → Test coordinator: reads results; controls test
src/velocity-window.c - Test window → Result history: reads and writes
src/velocity-window.c - Test window → Server discovery: loads servers
src/velocity-window.c - Test coordinator → Server discovery: delegates discovery
- Server discovery → LibreSpeed servers: fetches server lists
- Server discovery → Ping and jitter: starts ping
src/velocity-speedtest-servers.c - Test coordinator → Ping and jitter: runs latency stage
- Test coordinator → Download and upload: runs transfer stages
- Download and upload → LibreSpeed servers: transfers test data