How grandkahuna43325/comp-tracker works
Comp tracker is a browser-based ice-swimming competition tracker, with a hand-written C backend. The main workflow loads competition data, lets users search and select competitions, and displays details for viewing or editing. Users can also enter competition details and save them. Keyboard navigation, contextual help, and notifications support these flows. The excerpts show frontend calls and HTTP endpoints; backend implementation details and the persistence wiring are not shown, so those relationships are left unverified.
Main entry points: index.js App bootstrap · keys.js Keyboard controls · backend.js Data client · list.js Competition list
Components 16
Browser application
- App bootstrap
frontend/index.js - Keyboard controls
frontend/script/keys.js - Competition list
frontend/script/list.js - Fuzzy matching
frontend/lib/FuzzyMatch/js-fuzzyMatch.js - Details and editing
frontend/script/overlay.js - Competition entry
frontend/script/add_event.js - Panel navigation
frontend/script/nav.js - Keyboard help
frontend/script/help.js - Notifications
frontend/script/notification.js - Data client
frontend/script/backend.js
C backend
- C server
src/server.c - Server entry
src/main.c
Backend internals
- File handling
src/file.c - Character vector
src/vector.c
Other components
- User
- HTTP API
Connections 21
- User → App bootstrap: uses
Readme.md - App bootstrap → Data client: loads data
frontend/index.js - App bootstrap → Keyboard controls: sets up
frontend/index.js - App bootstrap → Competition list: sets up
frontend/index.js - App bootstrap → Competition entry: sets up
frontend/index.js - App bootstrap → Keyboard help: sets up
frontend/index.js - App bootstrap → Notifications: sets up
frontend/index.js - Keyboard controls → Competition list: controls
frontend/script/keys.js - Keyboard controls → Details and editing: controls
frontend/script/keys.js - Keyboard controls → Competition entry: controls
frontend/script/keys.js - Keyboard controls → Panel navigation: changes panels
frontend/script/keys.js - Keyboard controls → Keyboard help: shows
frontend/script/keys.js - Competition list → Fuzzy matching: matches entries
frontend/script/list.js - Competition list → Data client: reads competitions
frontend/script/list.js - Competition entry → Data client: submits competition
frontend/script/add_event.js - Details and editing → Data client: saves edits
frontend/script/overlay.js - Data client → HTTP API: fetches data
frontend/script/backend.js - HTTP API → C server: routes requests
- C server → File handling: uses file storage
- C server → Character vector: uses buffer
- Server entry → C server: starts server