How khaled10a/algo-app works
Algo App is a React learning tool whose main workflow is selecting an algorithm and input, then running, visualizing, benchmarking, or debugging it. The graph separates the application shell, algorithm catalog, learning features, shared runtime utilities, and the AI service. The README documents several capabilities whose implementation is not present in the supplied tree or excerpts; those are represented at the supported feature-directory level. Links reflect excerpted imports or README statements, not presumed internal pipelines.
Main entry points: registry.js Algorithm registry · App.jsx App shell · tabs Domain debuggers · GraphDebugger.jsx Graph playground
Components 24
Application
- App shell
src/App.jsx
Algorithms
- Algorithm registry
src/algorithms/registry.js - Sort and search
src/algorithms - Graph algorithms
src/algorithms/graphs - Dynamic programming
src/algorithms/dynamicProgramming - Backtracking
src/algorithms/backtracking - Divide and conquer
src/algorithms/divideAndConquer - Greedy algorithms
src/algorithms/greedy
Learning Features
- Benchmarking
src/tabs/BenchmarkTab.jsx - Sorting visualizer
src/tabs/VisualizerTab.jsx - Graph playground
src/components/visualizer/GraphDebugger.jsx - Domain debuggers
src/tabs - Complexity reference
src/tabs/ComplexityTab.jsx - Pseudocode
src/tabs/PseudocodeTab.jsx - Run history
src/tabs/HistoryTab.jsx - Auto report
src/tabs/ReportTab.jsx
Shared Runtime
- Playback controls
src/hooks/usePlayback.js - Persistent state
src/hooks/usePersistentState.js - Audio feedback
src/utils/audio.js - Result export
src/utils/exportUtils.js
AI Service
- AI assistant UI
src/tabs/AIAssistantTab.jsx - AI proxy
api/assistant.js
Other components
- Learner
- Groq AI
Connections 29
- Learner → App shell: uses
- App shell → Algorithm registry: selects algorithms
src/App.jsx - Algorithm registry → Sort and search: registers
src/algorithms/registry.js - Algorithm registry → Graph algorithms: registers
src/algorithms/registry.js - Algorithm registry → Dynamic programming: registers
src/algorithms/registry.js - Algorithm registry → Backtracking: registers
src/algorithms/registry.js - Algorithm registry → Divide and conquer: registers
src/algorithms/registry.js - Algorithm registry → Greedy algorithms: registers
src/algorithms/registry.js - App shell → Graph playground: renders
src/App.jsx - App shell → Domain debuggers: renders
src/App.jsx - Learner → Benchmarking: configures runs
- Benchmarking → Sort and search: benchmarks
src/tabs/BenchmarkTab.jsx - Learner → Sorting visualizer: starts playback
- Sorting visualizer → Playback controls: controls steps
- Learner → Graph playground: edits graphs
- Graph playground → Graph algorithms: runs algorithms
src/components/visualizer/GraphDebugger.jsx - Graph playground → Playback controls: uses controls
src/components/visualizer/GraphDebugger.jsx - Domain debuggers → Algorithm registry: gets descriptors
src/tabs/BacktrackDebuggerTab.jsx - Domain debuggers → Playback controls: uses controls
src/tabs/BacktrackDebuggerTab.jsx - Domain debuggers → Audio feedback: plays tones
src/tabs/BacktrackDebuggerTab.jsx - App shell → Persistent state: stores settings
src/App.jsx - Learner → Complexity reference: consults
- Learner → Pseudocode: consults
- Learner → Run history: compares runs
- Learner → Auto report: reviews summary
- Benchmarking → Result export: exports results
src/tabs/BenchmarkTab.jsx - Learner → AI assistant UI: asks questions
- AI assistant UI → AI proxy: requests answers
- AI proxy → Groq AI: requests completion
api/assistant.js