How songf0140/campusoverflow_hwa works
CampusOverflow AI is a course-centered campus Q&A and community platform, with a documented second-stage Agent Runtime. The main user path is browser pages through the Next.js same-origin BFF to FastAPI, where identity and permissions gate course, question-and-answer, and interaction operations backed by MySQL. Discovery adds search and recommendations; governance provides an initial schema-and-placeholder boundary. The README also describes planned AI assistance, MCP, persistent memory, and human approvals, but the checked-in Agent tree is only a small runtime skeleton. Those planned links are documentation-based, not evidence of implemented end-to-end flows.
Main entry points: main.py FastAPI assembly · app.ts Agent service · identity Identity and profiles · discovery Search and discovery
Components 20
Web experience
- Student and teacher pages
campus-overflow-ai/frontend/src/app - Domain UI
campus-overflow-ai/frontend/src/features - API client
campus-overflow-ai/frontend/src/api - Next.js BFF
campus-overflow-ai/frontend/src/app/api
Business API
- FastAPI assembly
campus-overflow-ai/backend/app/main.py - Identity and profiles
campus-overflow-ai/backend/app/modules/identity - Access control
campus-overflow-ai/backend/app/core/permissions.py - Course spaces
campus-overflow-ai/backend/app/modules/courses - Questions and answers
campus-overflow-ai/backend/app/modules/qa - Votes and reputation
campus-overflow-ai/backend/app/modules/interaction - Search and discovery
campus-overflow-ai/backend/app/modules/discovery - Content governance
campus-overflow-ai/backend/app/modules/governance - Shared API core
campus-overflow-ai/backend/app/core/response.py
Persistence
- Database sessions
campus-overflow-ai/backend/app/db/session.py - MySQL store
Agent extension
- AI and MCP tools
campus-overflow-ai/agent/src/tools/registry.ts - Agent service
campus-overflow-ai/agent/src/app.ts
Other components
- Campus user
- Model and MCP services
- Human approver
Connections 30
- Campus user → Student and teacher pages: uses
README.md - Student and teacher pages → Domain UI: renders
README.md - Domain UI → API client: requests data
README.md - API client → Next.js BFF: same-origin calls
README.md - Next.js BFF → FastAPI assembly: forwards requests
README.md - Next.js BFF → Agent service: forwards AI requests
README.md - FastAPI assembly → Identity and profiles: registers routes
campus-overflow-ai/backend/app/main.py - FastAPI assembly → Course spaces: registers routes
campus-overflow-ai/backend/app/main.py - FastAPI assembly → Questions and answers: registers routes
campus-overflow-ai/backend/app/main.py - FastAPI assembly → Votes and reputation: registers routes
campus-overflow-ai/backend/app/main.py - FastAPI assembly → Search and discovery: registers routes
campus-overflow-ai/backend/app/main.py - FastAPI assembly → Content governance: registers routes
campus-overflow-ai/backend/app/main.py - FastAPI assembly → Shared API core: configures responses
campus-overflow-ai/backend/app/main.py - Access control → Identity and profiles: loads user identity
campus-overflow-ai/backend/app/core/permissions.py - Access control → Database sessions: gets session
campus-overflow-ai/backend/app/core/permissions.py - Identity and profiles → Database sessions: uses sessions
campus-overflow-ai/backend/app/modules/identity/router.py - Course spaces → Identity and profiles: looks up users
campus-overflow-ai/backend/app/modules/courses/service.py - Questions and answers → Course spaces: checks course access
campus-overflow-ai/backend/app/modules/qa/service.py - Votes and reputation → Questions and answers: coordinates content
campus-overflow-ai/backend/app/modules/interaction/service.py - Votes and reputation → Identity and profiles: adjusts reputation
campus-overflow-ai/backend/app/modules/interaction/service.py - Search and discovery → Course spaces: queries courses
campus-overflow-ai/backend/app/modules/discovery/service.py - Search and discovery → Questions and answers: queries questions
campus-overflow-ai/backend/app/modules/discovery/service.py - Search and discovery → Votes and reputation: adds vote state
campus-overflow-ai/backend/app/modules/discovery/service.py - FastAPI assembly → Database sessions: serves database sessions
- Database sessions → MySQL store: persists data
README.md - Agent service → AI and MCP tools: uses tool registry
- AI and MCP tools → FastAPI assembly: calls allowlisted API
README.md - Agent service → Model and MCP services: generates assistance
README.md - Agent service → Model and MCP services: connects MCP tools
README.md - Agent service → Human approver: requests approval
README.md