How muaraai/mira works
Mira is a student-facing UBSI campus-services dashboard and API, with an MCP interface for AI agents. The main student workflow is dashboard login, session-backed requests to academic services, and results presented in the PWA; campus data is fetched from UBSI portals. Distinct capabilities include SIAKAD, MyBest coursework and attendance, library, news, repository, community, and push notifications. The graph combines sampled backend structure with README-documented capabilities; unsampled frontend and service internals are represented at their supported directory or module paths, and their detailed call relationships are omitted.
Main entry points: main.py FastAPI entry · auth.py Login and auth · router_helper.py Cache orchestration · upstream_session.py Campus sessions
Components 25
Student dashboard
- Dashboard PWA
landing-page/src/app/dashboard - Web API client
landing-page/src/lib/api.ts
API and access
- FastAPI entry
app/main.py - Login and auth
app/modules/auth.py - Request dependencies
app/deps.py - Personal API keys
app/api_keys_db.py - MCP tools
app/mcp_server.py
Campus services
- MyBest learning
app/modules/elearning.py - SIAKAD academics
app/modules/studentv2.py - Library and journals
app/modules/elibrary.py - Campus news
app/modules/news.py - Research repository
app/modules/repository.py - Student community
app/modules/social.py - Push notifications
app/modules/pwa_push.py
State and integrations
- Cache orchestration
app/router_helper.py - Redis cache
app/cache.py - Campus sessions
app/upstream_session.py - Dashboard sessions
app/session_store.py - Linked accounts
app/account_links.py - Login protection
app/login_guard.py
Other components
- Student
- UBSI portals
- Redis service
- SQLite store
- Supabase
Connections 29
- Student → Dashboard PWA: uses
README.md - Dashboard PWA → Web API client: requests
- Web API client → FastAPI entry: calls REST
- FastAPI entry → Login and auth: routes login
app/main.py - FastAPI entry → MyBest learning: routes requests
app/main.py - FastAPI entry → SIAKAD academics: routes requests
app/main.py - FastAPI entry → Library and journals: routes requests
app/main.py - FastAPI entry → Campus news: routes requests
app/main.py - FastAPI entry → Research repository: routes requests
app/main.py - FastAPI entry → Student community: routes requests
app/main.py - FastAPI entry → Push notifications: routes requests
app/main.py - FastAPI entry → MCP tools: serves tools
- FastAPI entry → Request dependencies: authenticates requests
app/main.py - FastAPI entry → Personal API keys: resolves API keys
app/main.py - Login and auth → Login protection: checks attempts
app/modules/auth.py - Login and auth → Dashboard sessions: stores sessions
README.md - Login and auth → Campus sessions: logs into portals
app/modules/auth.py - MyBest learning → Campus sessions: uses sessions
app/modules/elearning.py - SIAKAD academics → Campus sessions: uses sessions
app/modules/studentv2.py - MyBest learning → Cache orchestration: serves cached data
app/modules/elearning.py - SIAKAD academics → Cache orchestration: serves cached data
app/modules/studentv2.py - Research repository → Cache orchestration: serves cached data
app/modules/repository.py - Cache orchestration → Redis cache: reads and writes
app/router_helper.py - Redis cache → Redis service: uses
app/cache.py - Campus sessions → UBSI portals: requests data
README.md - Linked accounts → SQLite store: stores links
app/account_links.py - Linked accounts → Redis cache: caches links
app/account_links.py - Student community → Supabase: stores social data
README.md - Student → MCP tools: connects agent
README.md