How jpsiddharth2008/mindforge-tatva-finals works
MindForge provides an officer portal for issuing and managing institutional documents, plus a public verification flow. Issuance stores document bytes and metadata, then supports an on-chain credential step; verification has a fast exact-hash lookup and a richer three-tier engine. The README notes the forensic verdict engine is not yet connected to verification, so that branch is shown as a documented capability rather than an active endpoint. Several backend modules were not sampled, so uncertain internal links are omitted.
Main entry points: app.js REST routes · api.js API client · verification.js Tiered verification · App.jsx Web portal
Components 30
User portals
- Web portal
frontend/src/App.jsx - Issue document
frontend/src/pages/Issue.jsx - Verify document
frontend/src/pages/Verify.jsx - Document management
frontend/src/pages/DocumentDetail.jsx - API client
frontend/src/api.js - Issuance and revoke flows
frontend/src/flows.js
API and identity
- Officer session
frontend/src/auth.jsx - REST routes
backend/app.js - Authentication
backend/auth.js
Credential lifecycle
- Issuance coordinator
backend/issuance.js - Document records
backend/documents.js - Audit trail
backend/audit.js - QR payload
backend/qr.js
Verification engine
- SHA-256 lookup
backend/app.js - Tiered verification
backend/verification.js - Field extraction
backend/extract.js - Canonical content hash
backend/src/services/canonical.service.js - Image preprocessing
backend/src/services/preprocess.service.js - OCR
backend/src/services/ocr.service.js - Perceptual analysis
backend/phash.js - Verdict and field diffs
backend/forensics.js
Persistence and trust
- Document object storage
backend/storage.js - Blockchain service
backend/src/services/blockchain.service.js - Blockchain configuration
backend/src/config/blockchain.js - Wallet chain actions
frontend/src/chain.js - MongoDB
- AWS S3
- Polygon network
Other components
- Issuing officer
- Public verifier
Connections 35
- Issuing officer → Web portal: uses
README.md - Public verifier → Web portal: uses
README.md - Web portal → Issue document: routes to
frontend/src/App.jsx - Web portal → Verify document: routes to
frontend/src/App.jsx - Issue document → API client: uploads to
frontend/src/pages/Issue.jsx - Verify document → API client: submits to
frontend/src/api.js - Document management → API client: loads records
frontend/src/pages/DocumentDetail.jsx - Issue document → Issuance and revoke flows: starts flow
frontend/src/pages/Issue.jsx - Document management → Issuance and revoke flows: starts revoke
frontend/src/pages/DocumentDetail.jsx - Issuance and revoke flows → Wallet chain actions: sends transaction
frontend/src/flows.js - Issuance and revoke flows → API client: reports status
frontend/src/flows.js - Officer session → API client: tracks session
frontend/src/auth.jsx - API client → REST routes: calls API
frontend/src/api.js - REST routes → Authentication: checks identity
backend/app.js - REST routes → Issuance coordinator: coordinates issue
backend/app.js - Issuance coordinator → Document records: reads and writes
backend/issuance.js - REST routes → Document object storage: stores bytes
backend/app.js - REST routes → SHA-256 lookup: handles hash lookup
backend/app.js - SHA-256 lookup → Document records: looks up hash
backend/app.js - REST routes → Tiered verification: dispatches verify
backend/app.js - Tiered verification → Perceptual analysis: computes visual tier
backend/verification.js - Tiered verification → Field extraction: extracts fields
backend/verification.js - Field extraction → Canonical content hash: hashes fields
backend/extract.js - OCR → Image preprocessing: preprocesses image
backend/src/services/ocr.service.js - Tiered verification → Verdict and field diffs: assembles verdict
backend/verification.js - Tiered verification → QR payload: checks QR
backend/verification.js - REST routes → Audit trail: records activity
backend/app.js - REST routes → Blockchain service: checks chain
- Blockchain service → Blockchain configuration: loads settings
backend/src/services/blockchain.service.js - Blockchain service → Polygon network: reads chain
- Document records → MongoDB: persists metadata
- Document object storage → AWS S3: stores objects
backend/storage.js - Wallet chain actions → Polygon network: submits transactions
- REST routes → Document records: serves records
backend/app.js - REST routes → QR payload: serves QR payload
backend/app.js