How vaishnavigiri1210/data-structures-hub works
Data Structure Hub is a browser-based learning app for exploring data structures and algorithms through interactive visualizers. Learners enter from the dashboard or sidebar, choose a visualizer, perform operations or step through an algorithm, and inspect the visualization and execution feedback. It also provides learner sign-in and sign-up, with Supabase-backed authentication when configured and local profile storage as a fallback. The source excerpts show selected visualizers and shared UI; several routes and the progress endpoint are present in the tree but their behavior is not established by the excerpts.
Main entry points: Sidebar.tsx Visualizer navigation · sound.ts Sound effects · stack/page.tsx Stack visualizer · queue/page.tsx Queue visualizer
Components 19
Learning and navigation
- Dashboard
app/page.tsx - Visualizer navigation
components/Sidebar.tsx - Progress endpoint
app/api/progress/route.ts
Interactive visualizers
- Stack visualizer
app/visualizer/stack/page.tsx - Queue visualizer
app/visualizer/queue/page.tsx - Linked-list visualizer
app/visualizer/linked-list/page.tsx - Tree visualizer
app/visualizer/tree/page.tsx - Graph visualizer
app/visualizer/graph/page.tsx - Sorting visualizer
app/visualizer/sorting/page.tsx
Shared UI and feedback
- Execution log
components/ExecutionLog.tsx - Sound effects
lib/sound.ts - Header
components/Header.tsx
Learner identity
- Sign-in page
app/auth/login/page.tsx - Sign-up page
app/auth/signup/page.tsx - Password recovery
app/auth/forgot-password/page.tsx - Password update
app/auth/update-password/page.tsx - Profile utilities
lib/supabaseClient.ts
Other components
- Learner
- Supabase
Connections 26
- Learner → Dashboard: opens
- Learner → Visualizer navigation: chooses visualizer
components/Sidebar.tsx - Visualizer navigation → Stack visualizer: links to
components/Sidebar.tsx - Visualizer navigation → Queue visualizer: links to
components/Sidebar.tsx - Visualizer navigation → Linked-list visualizer: links to
components/Sidebar.tsx - Visualizer navigation → Tree visualizer: links to
components/Sidebar.tsx - Visualizer navigation → Graph visualizer: links to
components/Sidebar.tsx - Visualizer navigation → Sorting visualizer: links to
components/Sidebar.tsx - Stack visualizer → Execution log: renders
app/visualizer/stack/page.tsx - Queue visualizer → Execution log: renders
app/visualizer/queue/page.tsx - Linked-list visualizer → Execution log: renders
app/visualizer/linked-list/page.tsx - Stack visualizer → Sound effects: plays effects
app/visualizer/stack/page.tsx - Queue visualizer → Sound effects: plays effects
app/visualizer/queue/page.tsx - Linked-list visualizer → Sound effects: plays effects
app/visualizer/linked-list/page.tsx - Tree visualizer → Sound effects: plays effects
app/visualizer/tree/page.tsx - Graph visualizer → Sound effects: plays effects
app/visualizer/graph/page.tsx - Learner → Sign-in page: signs in
app/auth/login/page.tsx - Learner → Sign-up page: registers
app/auth/signup/page.tsx - Sign-in page → Profile utilities: stores profile
app/auth/login/page.tsx - Sign-up page → Profile utilities: stores profile
app/auth/signup/page.tsx - Sign-in page → Supabase: authenticates
app/auth/login/page.tsx - Sign-up page → Supabase: registers account
app/auth/signup/page.tsx - Visualizer navigation → Profile utilities: reads profile
components/Sidebar.tsx - Visualizer navigation → Supabase: signs out
components/Sidebar.tsx - Learner → Password recovery: requests recovery
- Learner → Password update: updates password