How shuvakant6623/project_brsr_nexus works
BRSR Reporting Portal is a metadata-driven sustainability data-management and reporting platform. Users authenticate, configure entities and framework metrics, collect evidence-backed values, then validate, calculate, consolidate and review results before locking a period and generating immutable PDF reports. The graph preserves the documented dashboard, lineage, trends, imports, notifications and human-reviewed AI extraction capabilities. Backend wiring is partly evidenced by the app entrypoint and sampled services; several capability relationships are documented in the README rather than verified in unsampled source.
Main entry points: main.py Backend API · ai/service.py AI extraction · reporting/service.py Period snapshots and reports · collection/service.py Value collection
Components 25
User interface
- Web portal
frontend/app/layout.tsx - Session management
frontend/components/AuthProvider.tsx
Data governance
- Authentication
backend/app/auth/router.py - Entity hierarchy
backend/app/entities/router.py - BRSR framework
backend/app/framework/router.py - Value collection
backend/app/collection/service.py - Evidence management
backend/app/evidence/service.py - Bulk CSV import
backend/app/imports/service.py - AI extraction
backend/app/ai/service.py
Data processing
- Validation and anomalies
backend/app/validation/engine.py - Unit normalization
backend/app/normalization/units.py - Derived calculations
backend/app/calculation/service.py - Hierarchy consolidation
backend/app/consolidation/service.py
Reporting and insight
- Live dashboard
backend/app/dashboard/router.py - Value lineage
backend/app/lineage/router.py - Lineage-aware trends
backend/app/trends/router.py - Period snapshots and reports
backend/app/reporting/service.py
Platform services
- Backend API
backend/app/main.py - Async report worker
backend/app/workers/tasks.py - Audit trail
backend/app/audit/service.py - PostgreSQL
- Redis
- S3-compatible storage
backend/app/infra/storage.py
Other components
- Portal user
- Optional LLM provider
Connections 32
- Portal user → Web portal: uses
README.md - Web portal → Session management: maintains session
frontend/components/AuthProvider.tsx - Session management → Backend API: requests identity
frontend/components/AuthProvider.tsx - Backend API → Authentication: routes requests
backend/app/main.py - Backend API → Entity hierarchy: routes requests
backend/app/main.py - Backend API → BRSR framework: routes requests
backend/app/main.py - Backend API → Value collection: routes requests
backend/app/main.py - Backend API → Validation and anomalies: routes requests
backend/app/main.py - Backend API → Hierarchy consolidation: routes requests
backend/app/main.py - Backend API → Live dashboard: routes requests
backend/app/main.py - Backend API → Value lineage: routes requests
backend/app/main.py - Backend API → Period snapshots and reports: routes requests
backend/app/main.py - Backend API → Bulk CSV import: routes requests
backend/app/main.py - Backend API → AI extraction: routes requests
backend/app/main.py - Backend API → Evidence management: routes requests
backend/app/main.py - Value collection → Unit normalization: normalizes units
README.md - Value collection → Validation and anomalies: validates values
README.md - Validation and anomalies → Derived calculations: enables derived values
README.md - Hierarchy consolidation → PostgreSQL: stores traces
backend/app/consolidation/service.py - Period snapshots and reports → Async report worker: queues PDF work
README.md - Async report worker → Redis: uses queue
README.md - Period snapshots and reports → S3-compatible storage: stores report files
backend/app/reporting/service.py - Backend API → PostgreSQL: serves data
README.md - Evidence management → S3-compatible storage: stores evidence
README.md - AI extraction → Evidence management: extracts from
README.md - AI extraction → Optional LLM provider: optionally queries
backend/app/ai/service.py - Live dashboard → PostgreSQL: reads summaries
backend/app/dashboard/router.py - Portal user → Bulk CSV import: uploads CSV
README.md - Portal user → Period snapshots and reports: locks period
README.md - Portal user → AI extraction: reviews suggestions
README.md - Value lineage → Lineage-aware trends: informs trends
README.md - Backend API → Audit trail: records actions
README.md