How alice-2702/classforge-ai-simulator works
Classforge is a browser-based AI teaching simulator: a teacher logs in, chooses a learner profile and lesson topic, starts a simulated lesson, then requests teaching moves and receives advice plus a simulated student reply. The implementation is a small static frontend backed by Express endpoints; the “AI” behavior shown in the source is profile-based templates and randomized replies, not an external AI service. The tree and excerpts show no persistence or authentication-token enforcement. HTML view details are not sampled, so the frontend is represented through its controller and entry page.
Main entry points: app.js Simulator controller · server.js Lesson start endpoint · index.html Login and lesson views
Components 9
Teacher interface
- Simulator controller
app.js - Login and lesson views
index.html
Lesson simulation
- Learner profiles
server.js - Lesson topics
server.js - Student reply generator
server.js
Web application
- Login endpoint
server.js - Lesson start endpoint
server.js - Teaching action endpoint
server.js
Other components
- Teacher
Connections 13
- Teacher → Login and lesson views: uses
README.md - Login and lesson views → Simulator controller: controls
- Simulator controller → Login endpoint: posts credentials
app.js - Simulator controller → Lesson start endpoint: starts lesson
app.js - Simulator controller → Teaching action endpoint: requests move
app.js - Lesson start endpoint → Learner profiles: selects profile
server.js - Lesson start endpoint → Lesson topics: selects topic
server.js - Lesson start endpoint → Student reply generator: generates reply
server.js - Teaching action endpoint → Learner profiles: selects profile
server.js - Teaching action endpoint → Student reply generator: generates reply
server.js - Login endpoint → Simulator controller: returns token and name
app.js - Lesson start endpoint → Simulator controller: returns messages
app.js - Teaching action endpoint → Simulator controller: returns advice and reply
app.js