Skip to Content
Backend ServicesGraph Knowledge

Graph Knowledge

backend/graph-knowledge/ (Express + SQLite, port 3004) maintains the concept graph that makes adaptive learning prerequisite-aware.

Endpoints

MethodPathPurpose
GET/concepts/:name/relatedTraverse related concepts
GET/learning-pathCompute an ordered path toward a target concept
POST/relationshipsAdd concept relationships
POST/import/dlpImport Digital Learner Profile data
GET/users/:userId/conceptsA user’s concept mastery snapshot
GET/health · /statsProbes and counters

How it’s used

  • Course generation registers the concepts a course covers and their prerequisite edges
  • Knowledge tracing queries the graph to detect prerequisite-gap recommendations — don’t drill integrals before derivatives
  • Learning paths give the Course View an ordered route through material toward a goal concept

The client-side mirror lives in src/lib/graph-knowledge.ts (with the useGraphKnowledge hook), and data persists in backend/graph-knowledge/data/graph.db.