How boredmayonnaise/algorithm works
Algo is an interactive maze-building and pathfinding analysis platform. A user edits a maze in the browser, runs or compares algorithms, and can inspect live frontier events and replay or step through results; maze records are also exposed through the API. The graph separates the classroom UI, HTTP/API layer, algorithm engine, and persistence. The README documents the product capabilities and endpoints; source-index references support module boundaries, but do not reveal every runtime call, so some relationships are shown only where documented.
Main entry points: api.cpp Maze API · app.js Maze editor · main.cpp Server entry · http_connection.h HTTP handling
Components 13
Classroom UI
- Maze editor
public/app.js - Search analysis
public/analysis.js - Run playback
public/playback.js
HTTP Service
- Server entry
src/main.cpp - Maze API
src/api.cpp - HTTP routing
include/crow/routing.h - HTTP handling
include/crow/http_connection.h - Request parsing
include/crow/http_parser_merged.h - HTTP responses
include/crow/http_response.h
Maze Engine
- Pathfinding algorithms
src/algo.cpp
Maze Persistence
- Maze records
src/db.cpp
Other components
- Maze user
- SQLite
Connections 15
- Maze user → Maze editor: edits maze
README.md - Maze editor → Maze API: submits runs
README.md - Maze API → Pathfinding algorithms: runs search
README.md - Pathfinding algorithms → Search analysis: emits events
README.md - Search analysis → Run playback: feeds replay
- Maze editor → Run playback: controls playback
README.md - Maze editor → Maze API: compares runs
README.md - Server entry → Maze API: registers API
src/main.cpp - Server entry → Maze records: initializes storage
- Server entry → HTTP routing: starts app
- HTTP routing → HTTP handling: dispatches routes
- HTTP handling → Request parsing: parses requests
include/crow/http_connection.h - HTTP handling → HTTP responses: sends responses
include/crow/http_connection.h - Maze API → Maze records: manages mazes
README.md - Maze records → SQLite: stores records