How sauugat/semestar_library works
Semester Library is a student portal and mobile app for course materials, study assistance, collaboration, and campus activity. A student enters through the web or mobile client, uses authenticated portal features, and receives results through APIs backed by the database and external providers. The central study workflow is Kyana chat: a question is routed through chat handling and tools for note, syllabus, routine, or current-information answers. The graph also preserves documented feed, Code Lab, cohort chat, and notification capabilities. Some subsystems are represented from README or index evidence; their internal implementation was not sampled.
Main entry points: server.js Express API · db.js Portal database · app Mobile app · public Web portal
Components 25
Student clients
- Web portal
public - Mobile app
mobile/app - Chat interface
public/chatbot.js - Library UI
mobile/app/(tabs)/library.tsx - Feed interface
mobile/app/(tabs)/index.tsx
Study services
- Chat orchestration
ai-assistant.js - Study tools
lib/chat-tools.js - Model providers
lib/chat-provider.js - Note search
lib/note-search.js - Academic context
lib/academic-context.js - Code Lab assignments
routes/code-lab/assignments.js - Code explanations
routes/code-lab/explain.js - Routine service
lib/routine.js
Community features
- Feed API
routes/posts.js - Post services
lib/posts.js - Cohort chat
lib/cohort-chat.js - Cohort chat API
routes/cohort-chat.js
Platform services
- Express API
server.js - Notifications API
routes/notifications.js - Notification center
lib/notifications-service.js - Push delivery
lib/push-notifications.js
Persistence
- Portal database
db.js
Other components
- Student
- AI/search provider
- Expo push
Connections 30
- Student → Web portal: uses
README.md - Student → Mobile app: uses
README.md - Web portal → Express API: requests
server.js - Mobile app → Express API: requests
- Web portal → Chat interface: opens chat
README.md - Chat interface → Express API: posts question
README.md - Express API → Chat orchestration: routes chat
server.js - Chat orchestration → Study tools: invokes tools
ai-assistant.js - Chat orchestration → Model providers: requests answer
ai-assistant.js - Study tools → Note search: searches notes
- Study tools → Academic context: uses context
- Model providers → AI/search provider: queries
README.md - Mobile app → Library UI: browses
README.md - Express API → Code Lab assignments: routes requests
server.js - Express API → Code explanations: routes requests
server.js - Mobile app → Feed interface: views feed
README.md - Feed interface → Express API: requests feed
README.md - Express API → Feed API: mounts API
server.js - Feed API → Post services: uses post logic
routes/posts.js - Express API → Cohort chat API: mounts feature
server.js - Cohort chat API → Cohort chat: delegates
routes/cohort-chat.js - Express API → Routine service: serves routine
- Express API → Notifications API: mounts API
server.js - Notifications API → Notification center: calls service
routes/notifications.js - Notification center → Portal database: reads/writes
lib/notifications-service.js - Feed API → Portal database: reads/writes
routes/posts.js - Code Lab assignments → Portal database: reads/writes
routes/code-lab/assignments.js - Note search → Portal database: indexes and searches
lib/note-search.js - Academic context → Portal database: reads context
lib/academic-context.js - Push delivery → Expo push: sends pushes
README.md