How swiftbyte6/sih2026-2.0 works
The product is an AICTE portal for institutions to register and manage security deposits/FDRs and for officials to verify, review, and process them. Its central path is instrument/document submission, server-side extraction and regulatory checks, then human review and auditable case actions. The README documents lifecycle, release, renewal, administration, and integration capabilities. Some page and storage implementations were not sampled, so links to those areas are omitted unless documented.
Main entry points: dataService.js Unified data gateway · page.js Case verification · route.js Analysis endpoint · fdrOcrService.js Document extraction
Components 23
Portal workflows
- Instrument submission
app/institution/instruments/new/page.js - Institution workspace
app/institution - Case verification
app/official/verification/[id]/page.js
Verification intelligence
- Intelligence Hub
components/intelligence/IntelligenceHubView.js - Analysis endpoint
app/api/intelligence/analyze/route.js - Reviewer actions
app/api/intelligence/action/route.js - FDR OCR endpoint
app/api/intelligence/ocr-fdr/route.js - Document extraction
lib/intelligence/fdrOcrService.js - Cross-document checks
lib/intelligence/crossDocumentVerifier.js - Discrepancy engine
lib/intelligence/discrepancyEngine.js - Regulatory rules
lib/intelligence/regulatoryRules.js - Risk scoring
lib/intelligence/riskScoring.js - Gemini provider
lib/intelligence/geminiProvider.js
Data services
- Unified data gateway
lib/dataService.js - Demo case data
lib/mockData.js - Live Supabase data
lib/supabase/dataLive.js - Data-mode config
lib/config.js
Operations and lifecycle
- Release processing
app/official/release - Renewal and maturity
app/institution/renewals - Administration
app/admin - Email delivery
app/api/email/send/route.js
Other components
- Institution user
- Official reviewer
Connections 28
- Institution user → Instrument submission: submits documents
- Institution user → Institution workspace: manages deposits
- Instrument submission → Unified data gateway: stores instrument data
app/institution/instruments/new/page.js - Instrument submission → Document extraction: requests extraction
app/institution/instruments/new/page.js - Intelligence Hub → Analysis endpoint: requests analysis
- Intelligence Hub → Unified data gateway: loads case data
components/intelligence/IntelligenceHubView.js - Analysis endpoint → Gemini provider: invokes provider
app/api/intelligence/analyze/route.js - Analysis endpoint → Cross-document checks: runs checks
app/api/intelligence/analyze/route.js - Analysis endpoint → Regulatory rules: evaluates compliance
app/api/intelligence/analyze/route.js - Analysis endpoint → Unified data gateway: loads case data
app/api/intelligence/analyze/route.js - Gemini provider → Document extraction: uses extraction
lib/intelligence/geminiProvider.js - FDR OCR endpoint → Document extraction: extracts document
app/api/intelligence/ocr-fdr/route.js - FDR OCR endpoint → Unified data gateway: loads and saves data
app/api/intelligence/ocr-fdr/route.js - Official reviewer → Case verification: reviews case
- Case verification → Discrepancy engine: checks discrepancies
app/official/verification/[id]/page.js - Case verification → Risk scoring: scores risk
app/official/verification/[id]/page.js - Risk scoring → Discrepancy engine: uses findings
lib/intelligence/riskScoring.js - Discrepancy engine → Document extraction: normalizes bank names
lib/intelligence/discrepancyEngine.js - Case verification → Unified data gateway: reads case data
app/official/verification/[id]/page.js - Case verification → Reviewer actions: records reviewer actions
- Reviewer actions → Unified data gateway: updates case
app/api/intelligence/action/route.js - Unified data gateway → Data-mode config: selects data mode
lib/dataService.js - Unified data gateway → Demo case data: reads demo records
lib/dataService.js - Unified data gateway → Live Supabase data: delegates live queries
lib/dataService.js - Institution user → Renewal and maturity: manages renewal
- Official reviewer → Release processing: reviews release
- Official reviewer → Administration: administers portal
- Administration → Email delivery: sends notices