How guhanbr/nexus-project works
RebalanceX is a project-planning and resource-rebalancing application. Users enter through the web workspaces to manage projects, form teams, plan and track tasks, and simulate disruptions; the backend exposes these capabilities through FastAPI routes and persists project, member, task, proposal, and history data. The README documents team optimization, critical-path scheduling, crisis simulation, and decision explanations. Some frontend pages and backend routes are unsampled, so their detailed interactions are shown only where documented or explicitly evidenced.
Main entry points: App.jsx Workspace routing · client.js API client · main.py FastAPI application · rebalancing_routes.py Rebalance lifecycle routes
Components 24
Web application
- Workspace routing
Frontend/src/App.jsx - Authentication state
Frontend/src/context/AuthContext.jsx - Project state
Frontend/src/context/ProjectContext.jsx - Project workspaces
Frontend/src/pages/ProjectsPage.jsx - Project overview
Frontend/src/pages/OverviewPage.jsx - Team formation
Frontend/src/pages/TeamFormationPage.jsx - Task planning
Frontend/src/pages/AdminTaskPlanningPage.jsx - Member task tracking
Frontend/src/pages/MemberMyTasksPage.jsx - Crisis and recovery
Frontend/src/pages/RecoveryPage.jsx - Decision history
Frontend/src/pages/DecisionHistoryPage.jsx - API client
Frontend/src/api/client.js
API and workflows
- FastAPI application
backend/app/main.py - Project routes
backend/app/api/routes/projects.py - Team and member routes
backend/app/api/routes/team_and_members.py - Task and schedule routes
backend/app/api/routes/tasks_and_schedule.py - Rebalance lifecycle routes
backend/app/api/routes/rebalancing_routes.py
Planning algorithms
- Team selection
backend/app/algorithms/team_formation.py - Critical path scheduler
backend/app/algorithms/scheduler.py - Resource rebalancer
backend/app/algorithms/rebalancer.py - Decision explanations
backend/app/algorithms/explainer.py
Persistence
- Project repository
backend/app/repositories/project_repo.py - Member task proposal history repositories
backend/app/repositories/entities_repo.py - MongoDB and local cache
backend/app/database/connection.py
Other components
- Project user
Connections 35
- Project user → Workspace routing: uses
Frontend/src/App.jsx - Workspace routing → Authentication state: provides auth
Frontend/src/App.jsx - Workspace routing → Project state: provides project state
Frontend/src/App.jsx - Workspace routing → Project workspaces: routes to
Frontend/src/App.jsx - Workspace routing → Project overview: routes to
Frontend/src/App.jsx - Workspace routing → Team formation: routes to
Frontend/src/App.jsx - Workspace routing → Task planning: routes to
Frontend/src/App.jsx - Workspace routing → Member task tracking: routes to
Frontend/src/App.jsx - Workspace routing → Crisis and recovery: routes to
Frontend/src/App.jsx - Workspace routing → Decision history: routes to
Frontend/src/App.jsx - Authentication state → API client: calls
Frontend/src/context/AuthContext.jsx - Project state → API client: fetches data
Frontend/src/context/ProjectContext.jsx - Project workspaces → Project state: uses state
Frontend/src/pages/ProjectsPage.jsx - Project overview → Project state: uses state
Frontend/src/pages/OverviewPage.jsx - Task planning → API client: calls
Frontend/src/pages/AdminTaskPlanningPage.jsx - Member task tracking → API client: updates tasks
Frontend/src/pages/MemberMyTasksPage.jsx - Crisis and recovery → API client: requests recovery
Frontend/src/pages/RecoveryPage.jsx - Decision history → API client: loads history
Frontend/src/pages/DecisionHistoryPage.jsx - API client → FastAPI application: sends API requests
Frontend/src/api/client.js - FastAPI application → Project routes: registers router
backend/app/main.py - FastAPI application → Team and member routes: registers router
backend/app/main.py - FastAPI application → Task and schedule routes: registers router
backend/app/main.py - FastAPI application → Rebalance lifecycle routes: registers router
backend/app/main.py - Task and schedule routes → Critical path scheduler: calls
backend/app/api/routes/tasks_and_schedule.py - Rebalance lifecycle routes → Resource rebalancer: calls
backend/app/api/routes/rebalancing_routes.py - Rebalance lifecycle routes → Decision explanations: generates rationale
backend/app/api/routes/rebalancing_routes.py - Rebalance lifecycle routes → Member task proposal history repositories: loads and saves proposals
backend/app/api/routes/rebalancing_routes.py - Rebalance lifecycle routes → Project repository: loads project
backend/app/api/routes/rebalancing_routes.py - Task and schedule routes → Member task proposal history repositories: accesses tasks
backend/app/api/routes/tasks_and_schedule.py - Task and schedule routes → Project repository: accesses projects
backend/app/api/routes/tasks_and_schedule.py - Project routes → Project repository: uses repository
- Team and member routes → Team selection: uses team selection
- Project repository → MongoDB and local cache: reads and writes
backend/app/repositories/project_repo.py - Member task proposal history repositories → MongoDB and local cache: reads and writes
backend/app/repositories/entities_repo.py - Resource rebalancer → Critical path scheduler: uses scheduling
backend/app/algorithms/rebalancer.py