How aryanguptacs0-png/nigrani-mplads-fraud-detection-ai-system works
NIGRANI is a public-funds audit and risk-intelligence platform for MPLADS works. The documented workflow runs from batch ingestion and hybrid anomaly scoring to a Flask analytics API, then to role-scoped dashboards, case review, work investigation, vendor and cost analysis, and Excel reporting. The excerpts establish frontend routing, API requests, transformations, and export calls; README claims cover backend analytics and ingestion, but sampled backend source does not establish their internal call graph, so those links are documented or omitted.
Main entry points: App.tsx Application Shell · mpladsApi.ts API Client · utils.ts Audit Utilities · RiskCasesView.tsx Risk Case Registry
Components 18
Data Ingestion
- MPLADS Ingestion
backend/pipelines - SQLite Work Store
backend/pipelines
Risk Analytics
- Risk Engine
backend/analytics_engine.py - Batch Analysis
backend/analysis
Analytics API
- Dashboard API
backend/dashboard.py
Audit Interface
- Application Shell
frontend/src/App.tsx - API Client
frontend/src/services/mpladsApi.ts - Governance Overview
frontend/src/components/OverviewDashboard.tsx - Risk Case Registry
frontend/src/components/RiskCasesView.tsx - Work Investigation
frontend/src/components/WorkDetailView.tsx - Vendor Risk
frontend/src/components/VendorRiskView.tsx - Cost Benchmarks
frontend/src/components/BenchmarkExplorer.tsx - Audit Data Types
frontend/src/types.ts - Audit Utilities
frontend/src/utils.ts - Launch Screen
frontend/src/components/LaunchScreen.tsx
Reporting
- Report Generation
backend/generate_report.py - Excel Export
frontend/src/utils/exportExcel.ts
Other components
- Governance Users
Connections 22
- Governance Users → Application Shell: uses
frontend/src/App.tsx - Application Shell → API Client: requests data
frontend/src/App.tsx - API Client → Dashboard API: HTTP requests
frontend/src/services/mpladsApi.ts - MPLADS Ingestion → SQLite Work Store: loads records
- SQLite Work Store → Risk Engine: supplies works
- Risk Engine → Dashboard API: serves analytics
- Batch Analysis → Risk Engine: analyzes works
- Application Shell → Launch Screen: shows before launch
frontend/src/App.tsx - Application Shell → Governance Overview: renders view
frontend/src/App.tsx - Application Shell → Risk Case Registry: renders view
frontend/src/App.tsx - Application Shell → Work Investigation: renders view
frontend/src/App.tsx - Application Shell → Vendor Risk: renders view
frontend/src/App.tsx - Application Shell → Cost Benchmarks: renders view
frontend/src/App.tsx - Risk Case Registry → API Client: loads alerts
frontend/src/components/RiskCasesView.tsx - Work Investigation → API Client: loads alerts
frontend/src/components/WorkDetailView.tsx - Application Shell → Excel Export: exports overview
frontend/src/App.tsx - Dashboard API → Report Generation: uses report generator
backend/dashboard.py - API Client → Audit Data Types: transforms into
frontend/src/services/mpladsApi.ts - Risk Case Registry → Audit Utilities: formats flags
frontend/src/components/RiskCasesView.tsx - Governance Overview → Audit Utilities: formats metrics
frontend/src/components/OverviewDashboard.tsx - Cost Benchmarks → Audit Utilities: formats costs
frontend/src/components/BenchmarkExplorer.tsx - Excel Export → Audit Utilities: formats currency
frontend/src/utils/exportExcel.ts