How vicenteanashei/rubis works
Rubik Timer is a browser speedcubing app: a cuber gets a 3×3 scramble, optionally requests a solution, times an attempt with optional WCA inspection, then reviews saved solves and session statistics. App owns the main orchestration: it generates scrambles, connects timer completion to solve history, and supplies data and callbacks to the UI. The viewer animates cube algorithms; a worker-backed solver handles solution requests. Edges reflect the shown App and hook code; README documentation is absent, so unsampled capabilities and connections are not inferred.
Main entry points: App.tsx App orchestration · format.ts Time formatting · useTimer.ts Timer state · CubeViewer.tsx Cube viewer
Components 18
Solve workflow
- App orchestration
src/App.tsx - Scramble generation
src/App.tsx - Timer state
src/hooks/useTimer.ts - Scramble service
User interface
- Cube viewer
src/components/CubeViewer.tsx - Scramble controls
src/components/ScramblePanel.tsx - Timer display
src/components/TimerView.tsx - Solve history
src/components/SolveHistory.tsx - Stats display
src/components/StatsPanel.tsx - Twisty player
Solution engine
- Solver client
src/hooks/useSolver.ts - Solver worker
src/workers/solver.worker.ts - Cube solver engine
src/lib/cubejs.vendor.js
Solve records
- Session statistics
src/lib/stats.ts - Local persistence
src/lib/storage.ts - Browser local storage
- Time formatting
src/lib/format.ts
Other components
- Cuber
Connections 20
- Cuber → App orchestration: uses app
- App orchestration → Scramble generation: requests scramble
src/App.tsx - Scramble generation → Scramble service: requests 3×3 scramble
src/App.tsx - App orchestration → Cube viewer: renders algorithm
src/App.tsx - App orchestration → Scramble controls: renders controls
src/App.tsx - App orchestration → Timer state: configures timer
src/App.tsx - App orchestration → Timer display: renders timer
src/App.tsx - App orchestration → Solver client: requests solution
src/App.tsx - Solver client → Solver worker: posts scramble
src/hooks/useSolver.ts - Solver worker → Cube solver engine: uses solver engine
src/workers/solver.worker.ts - Timer state → App orchestration: reports completion
src/hooks/useTimer.ts - App orchestration → Session statistics: computes statistics
src/App.tsx - App orchestration → Stats display: supplies statistics
src/App.tsx - App orchestration → Solve history: supplies solve records
src/App.tsx - App orchestration → Local persistence: loads and saves
src/App.tsx - Local persistence → Browser local storage: reads and writes
src/lib/storage.ts - Solve history → Time formatting: formats solve times
src/components/SolveHistory.tsx - Stats display → Time formatting: formats statistics
src/components/StatsPanel.tsx - Timer display → Time formatting: formats timer display
src/components/TimerView.tsx - Cube viewer → Twisty player: controls player
src/components/CubeViewer.tsx