How jd862/cubestats works
Cubestats is an offline-first cubing tracker with optional hosted accounts and sync. Its main workflow is importing solve data, organizing sessions, and viewing statistics; users can also train algorithms and optionally connect WCA results or sign in to sync. The graph preserves the documented feature branches, but several client modules were not excerpted, so their internal calls are left unclaimed. Solid edges are based on shown code or README statements; dashed edges indicate documented or likely integration whose exact call site was not shown.
Main entry points: app.js App and sessions · trainer.js Alg trainer · manager.js Session manager · api Account and data routes
Components 18
Solve tracking
- App and sessions
app.js - Solve import
import.js - Session manager
manager.js - Browser storage
app.js
Statistics
- Statistics
stats.js - Solve comparison
compare.js - WCA results
wca.js
Algorithm trainer
- Alg trainer
trainer.js - Algorithm sets
algs.js - Alternate algs
alts.js - Cube model
cube.js
Accounts and sync
- Cloud sync
sync.js - Account and data routes
api - Auth and Redis helpers
api/_lib.js
Other components
- Cubers
- WCA service
- Upstash Redis
- WCA OAuth
Connections 23
- Cubers → App and sessions: use
README.md - Cubers → Solve import: import solves
README.md - App and sessions → Solve import: parses imports
- App and sessions → Browser storage: reads and writes
app.js - Session manager → App and sessions: saves sessions
manager.js - Session manager → Statistics: calculates averages
manager.js - Session manager → WCA results: uses event data
manager.js - Cubers → Session manager: manage sessions
README.md - Cubers → Statistics: view statistics
README.md - App and sessions → Statistics: uses summaries
app.js - Cubers → Solve comparison: compare solves
- App and sessions → WCA results: uses WCA data
app.js - WCA results → WCA service: downloads results
README.md - Cubers → Alg trainer: practice algorithms
README.md - Alg trainer → Algorithm sets: drills cases
- Alg trainer → Alternate algs: uses alternatives
- Alg trainer → Cube model: uses cube model
- Cubers → Cloud sync: sign in and sync
README.md - Cloud sync → Account and data routes: exchanges data
README.md - Account and data routes → Auth and Redis helpers: uses shared handlers
api/data.js - Auth and Redis helpers → Upstash Redis: reads and writes
api/_lib.js - Account and data routes → WCA OAuth: OAuth sign-in
api/wca.js - WCA OAuth → Account and data routes: returns authorization
api/wca-callback.js