How adwaidhnair/newproject1 works
Northstar is a multi-tenant ERP operations intelligence platform. Users enter through the executive control tower, select an organization and location, and use API-backed views to inspect operational KPIs, exceptions, supplier/item risk, and process performance; they can also import purchase orders through a governed CSV workflow. The backend routes requests, enforces access, and delegates analytics to separate engines over canonical operational data. The README documents workflow configuration and industry profiles, but their implementation details were not sampled; those links are therefore omitted. Edges reflect shown imports or documented relationships.
Main entry points: main.py API and request routing · erp_models.py Canonical ERP records · csv_connector.py Purchase order import · App.jsx Executive control tower
Components 15
User experience
- Executive control tower
frontend/src/App.jsx
Access and API
- API and request routing
backend/app/main.py - Authentication and access
backend/app/core/auth.py - Identity records
backend/app/models/auth_models.py
Operational data
- SQL database sessions
backend/app/core/database.py - Canonical ERP records
backend/app/models/erp_models.py - Purchase order import
backend/app/connectors/csv_connector.py
Operations intelligence
- Control tower KPIs
backend/app/engines/kpi_engine.py - Business rule evaluation
backend/app/engines/rules_engine.py - Vendor and item risk
backend/app/engines/intelligence_engine.py - Process mining and simulation
backend/app/engines/process_mining_engine.py
Tenant configuration
- Industry terminology profiles
backend/app/profiles - Workflow configuration
backend/app/main.py - Tenant seed scenarios
backend/seed_data.py
Other components
- Business user
Connections 21
- Business user → Executive control tower: uses
README.md - Executive control tower → API and request routing: calls API
README.md - API and request routing → Executive control tower: returns results
README.md - API and request routing → Authentication and access: uses access checks
backend/app/main.py - Authentication and access → Identity records: queries identity
backend/app/core/auth.py - API and request routing → SQL database sessions: gets sessions
backend/app/main.py - Identity records → SQL database sessions: uses database base
backend/app/models/auth_models.py - Canonical ERP records → SQL database sessions: uses database base
backend/app/models/erp_models.py - API and request routing → Purchase order import: routes imports
backend/app/main.py - Purchase order import → Business rule evaluation: triggers reevaluation
README.md - API and request routing → Control tower KPIs: calls
backend/app/main.py - API and request routing → Business rule evaluation: calls
backend/app/main.py - API and request routing → Vendor and item risk: calls
backend/app/main.py - API and request routing → Process mining and simulation: calls
backend/app/main.py - Control tower KPIs → Canonical ERP records: queries
backend/app/engines/kpi_engine.py - Business rule evaluation → Canonical ERP records: evaluates records
backend/app/engines/rules_engine.py - Vendor and item risk → Canonical ERP records: scores records
backend/app/engines/intelligence_engine.py - Process mining and simulation → Canonical ERP records: analyzes records
backend/app/engines/process_mining_engine.py - Purchase order import → Canonical ERP records: upserts orders
backend/app/connectors/csv_connector.py - API and request routing → Workflow configuration: configures workflows
backend/app/main.py - Tenant seed scenarios → Canonical ERP records: seeds records
backend/seed_data.py