How abhilasya77/drift-bitnbuild26 works
Tawashir is an identity-continuity platform: a user submits identity documents, confirms extracted fields, receives cross-document consistency results, and—when eligible—gets a temporary QR credential whose fingerprint can be verified independently. Unclear cases go to human review; biometric checks and document renewal/permanent-ID linking extend the flow. The graph reflects documented capabilities and sampled call ownership; several router and service implementations were not sampled, so their internal wiring is shown only where documented by the README or API entry point.
Main entry points: main.py FastAPI entry · workflow.py Workflow services · db.py Application database · documents.py Document intake
Components 28
Web clients
- Identity app
frontend/app.js - API client
frontend/api.js - Reviewer view
frontend/review.html - Credential verifier
frontend/verify.html
Identity evidence
- FastAPI entry
backend/app/main.py - Identity profiles
backend/app/routers/profiles.py - Document intake
backend/app/routers/documents.py - Private file storage
backend/app/services/storage.py - OCR and MRZ
backend/app/services/ocr.py - Application database
backend/app/db.py - Authentication and roles
backend/app/auth.py
Review and eligibility
- Consistency reports
backend/app/routers/consistency.py - Consistency engine
backend/ml/consistency.py - Workflow services
backend/app/workflow.py - Exception review
backend/app/routers/reviews.py - Biometric checks
backend/app/routers/biometric.py - Eligibility checks
backend/app/routers/credentials.py
Credential assurance
- Credential lifecycle
backend/app/services/credentials.py - Permanent ID linking
backend/app/routers/permanent.py - Expiry notifications
backend/app/routers/notifications.py - Chain attestation
backend/app/services/web3_attest.py - Attestation contract
blockchain/contracts/CredentialAttestation.sol
Other components
- Identity applicant
- Human reviewer
- Service verifier
- Supabase services
- CompreFace
- Polygon Amoy
Connections 38
- Identity applicant → Identity app: submits identity
- Human reviewer → Reviewer view: reviews cases
- Service verifier → Credential verifier: scans credential
- Identity app → API client: requests API
- Reviewer view → API client: requests API
- Credential verifier → API client: requests API
- API client → FastAPI entry: calls HTTPS
- FastAPI entry → Identity profiles: dispatches routes
- FastAPI entry → Document intake: dispatches routes
- FastAPI entry → Consistency reports: dispatches routes
- FastAPI entry → Exception review: dispatches routes
- FastAPI entry → Biometric checks: dispatches routes
- FastAPI entry → Eligibility checks: dispatches routes
- FastAPI entry → Permanent ID linking: dispatches routes
- FastAPI entry → Expiry notifications: dispatches routes
- FastAPI entry → Authentication and roles: authenticates requests
- FastAPI entry → Application database: initializes database
- Identity profiles → Application database: reads and writes
- Document intake → Private file storage: stores and loads files
- Document intake → OCR and MRZ: extracts fields
- Document intake → Application database: stores document data
- Private file storage → Supabase services: stores files
- Authentication and roles → Supabase services: checks user token
- Consistency reports → Workflow services: requests evaluation
- Workflow services → Consistency engine: compares fields
- Workflow services → Application database: reads and writes
- Exception review → Workflow services: loads case evidence
- Exception review → Private file storage: loads reviewer files
- Biometric checks → Workflow services: records results
- Biometric checks → CompreFace: checks face
- Eligibility checks → Workflow services: checks eligibility
- Eligibility checks → Credential lifecycle: issues credential
- Credential lifecycle → Application database: stores credential
- Credential lifecycle → Chain attestation: attests fingerprint
- Chain attestation → Attestation contract: writes attestation
- Attestation contract → Polygon Amoy: records fingerprint
- Permanent ID linking → Workflow services: links permanent ID
- Expiry notifications → Workflow services: checks document health