How thesolverse/permitflow-nexus works
PermitFlow Nexus is a Maharashtra industrial-permit and compliance platform for entrepreneurs, government officers, and administrators. The main journey is project setup, rules-based approval discovery, document submission and validation, application review and inspection, then ongoing compliance and incentive discovery. The map combines documented product capabilities with evidenced frontend, API, persistence, and AI components. Several feature pages were not sampled; their inclusion and broad workflow links rely on the README, not inspection of their implementations.
Main entry points: AppContext.tsx Shared App State · App.tsx Role-Based App · SmartChecklistPage.tsx Approval Checklist · ApplyApprovalModal.tsx Application Submission
Components 30
Portal and State
- Role-Based App
src/App.tsx - Login and Roles
src/components/auth/LoginPage.tsx - Shared App State
src/context/AppContext.tsx
Entrepreneur Journey
- Project Setup
src/components/entrepreneur/NewProjectForm.tsx - Approval Checklist
src/components/entrepreneur/SmartChecklistPage.tsx - Application Submission
src/components/entrepreneur/ApplyApprovalModal.tsx - Document Centre
src/components/entrepreneur/DocumentCentrePage.tsx - Application Tracking
src/components/entrepreneur/ApplicationTrackerPage.tsx - Compliance Calendar
src/components/entrepreneur/ComplianceCalendarPage.tsx - Incentive Finder
src/components/entrepreneur/IncentiveFinderPage.tsx - AI Assistant
src/components/entrepreneur/AiAssistantPage.tsx
Government Operations
- Application Review
src/components/officer/ApplicationReviewModal.tsx - Inspection Management
src/components/officer/OfficerInspectionPage.tsx - Query Management
src/components/officer/OfficerQueryPage.tsx - SLA Analytics
src/components/officer/SlaAnalyticsPage.tsx - Rules Administration
src/components/admin/RulesEngineManager.tsx - Notification Centre
src/components/admin/NotificationCentrePage.tsx - Audit Logs
src/components/admin/AuditLogsPage.tsx
Platform Services
- Rules Engine
src/utils/rulesEngine.ts - OCR Validation
src/utils/realOcrAnalyzer.ts - Risk Guidance
src/utils/riskCalculator.ts - Regulatory Knowledge
server/ai/regulatoryKnowledge.ts
API and Persistence
- REST Client
src/services/api.ts - Express API
server/server.ts - Data Queries
server/db/queries.ts - Database Pool
server/db/pool.ts - Application Database
server/db/pool.ts
Other components
- Entrepreneur
- Government Officer
- Platform Admin
Connections 32
- Entrepreneur → Role-Based App: uses portal
- Government Officer → Role-Based App: uses portal
- Platform Admin → Role-Based App: uses portal
- Role-Based App → Login and Roles: routes to
src/App.tsx - Role-Based App → Shared App State: reads state
src/App.tsx - Shared App State → REST Client: fetches data
src/context/AppContext.tsx - Entrepreneur → Project Setup: registers project
- Project Setup → Shared App State: updates project
- Shared App State → Approval Checklist: supplies project
src/components/entrepreneur/SmartChecklistPage.tsx - Approval Checklist → Rules Engine: uses rules
src/components/entrepreneur/SmartChecklistPage.tsx - Approval Checklist → Application Submission: starts application
src/components/entrepreneur/SmartChecklistPage.tsx - Entrepreneur → Document Centre: submits documents
- Application Submission → OCR Validation: validates documents
src/components/entrepreneur/ApplyApprovalModal.tsx - Application Submission → REST Client: sends application
src/components/entrepreneur/ApplyApprovalModal.tsx - Shared App State → Application Tracking: supplies status
- Entrepreneur → Compliance Calendar: monitors renewals
- Entrepreneur → Incentive Finder: discovers incentives
- Entrepreneur → Risk Guidance: reviews guidance
- Entrepreneur → AI Assistant: asks questions
- Government Officer → Application Review: reviews applications
- Government Officer → Inspection Management: manages inspections
- Government Officer → Query Management: handles queries
- Government Officer → SLA Analytics: reviews SLAs
- Platform Admin → Rules Administration: configures rules
- Rules Administration → Shared App State: adds rules
src/components/admin/RulesEngineManager.tsx - Platform Admin → Notification Centre: manages alerts
- Platform Admin → Audit Logs: reviews actions
- REST Client → Express API: calls REST API
- Express API → Data Queries: calls queries
server/server.ts - Data Queries → Database Pool: uses connection
server/db/queries.ts - Database Pool → Application Database: connects to
server/db/pool.ts - Express API → Regulatory Knowledge: queries knowledge
server/server.ts