How abhinavtie2008/rinavi works
RINAVI is a privacy-first citizen companion for preparing and managing government-service applications; it organizes and exports assistance packets but does not submit them. The main workflow is sign-in and purpose-scoped consent, upload and extract document evidence, review/promote values into a profile, prepare and preflight a catalog-based draft, then export or freeze it in the locker for journey tracking and re-application. The graph includes documented capabilities whose implementation was not sampled; their links are omitted where evidence is unavailable.
Main entry points: api.ts API client · router.py API router · audit/service.py Redacted audit trail · applications/service.py Draft lifecycle and export
Components 29
Citizen web app
- Web experience
apps/web/src/features - API client
apps/web/src/lib/api.ts - Sign-in and passkeys
apps/web/src/features/auth/SignInArea.tsx - Consent controls
apps/web/src/features/consent/ConsentPage.tsx
Identity and consent
- Identity routes
backend/app/modules/identity/routes.py - Consent routes
backend/app/modules/consent/routes.py - Consent policy
backend/app/modules/consent/service.py - Session and consent checks
backend/app/api/deps.py
Documents and profile
- Document vault
apps/web/src/features/vault/VaultPage.tsx - Vault endpoints
backend/app/modules/vault/routes.py - Vault lifecycle
backend/app/modules/vault/service.py - File storage
backend/app/modules/vault/storage.py - Document processing
backend/app/modules/documents/pipeline.py - Profile review
apps/web/src/features/profile/ProfilePage.tsx - Profile endpoints
backend/app/modules/profile/routes.py - Profile values
backend/app/modules/profile/service.py
Application preparation
- Service catalog
apps/web/src/features/catalog/ServicesPage.tsx - Catalog definitions
backend/app/modules/catalog/loader.py - Draft preparation
apps/web/src/features/applications/DraftDetail.tsx - Draft lifecycle and export
backend/app/modules/applications/service.py - Draft endpoints
backend/app/modules/applications/routes.py - Application locker
apps/web/src/features/locker/CaseDetail.tsx - Case tracking and reapply
backend/app/modules/locker/service.py - Locker endpoints
backend/app/modules/locker/routes.py
Platform services
- Redacted audit trail
backend/app/modules/audit/service.py - Application database
backend/app/core/db.py - API router
backend/app/api/router.py - Backend application
backend/app/main.py
Other components
- Citizen
Connections 46
- Citizen → Web experience: uses
- Web experience → API client: requests API
- Sign-in and passkeys → API client: requests API
- Consent controls → API client: requests API
- Document vault → API client: requests API
- Profile review → API client: requests API
- Service catalog → API client: requests API
- Draft preparation → API client: requests API
- Application locker → API client: requests API
- API client → API router: calls
- Backend application → API router: mounts routes
backend/app/main.py - API router → Identity routes: registers
backend/app/api/router.py - API router → Consent routes: registers
backend/app/api/router.py - API router → Vault endpoints: registers
backend/app/api/router.py - API router → Profile endpoints: registers
backend/app/api/router.py - API router → Draft endpoints: registers
backend/app/api/router.py - API router → Locker endpoints: registers
backend/app/api/router.py - Identity routes → Session and consent checks: uses session checks
backend/app/modules/identity/routes.py - Session and consent checks → Consent policy: checks consent
backend/app/api/deps.py - Consent routes → Consent policy: calls
backend/app/modules/consent/routes.py - Identity routes → Redacted audit trail: records events
backend/app/modules/identity/routes.py - Consent routes → Redacted audit trail: records events
backend/app/modules/consent/routes.py - Service catalog → Catalog definitions: retrieves services
- Draft endpoints → Draft lifecycle and export: calls
backend/app/modules/applications/routes.py - Draft lifecycle and export → Catalog definitions: loads definitions
backend/app/modules/applications/service.py - Draft endpoints → Case tracking and reapply: creates case
backend/app/modules/applications/routes.py - Locker endpoints → Case tracking and reapply: calls
backend/app/modules/locker/routes.py - Case tracking and reapply → Draft lifecycle and export: rebuilds draft
backend/app/modules/locker/service.py - Draft endpoints → Redacted audit trail: records events
backend/app/modules/applications/routes.py - Locker endpoints → Redacted audit trail: records events
backend/app/modules/locker/routes.py - Vault endpoints → Vault lifecycle: calls
backend/app/modules/vault/routes.py - Vault endpoints → Document processing: processes document
backend/app/modules/vault/routes.py - Vault lifecycle → File storage: reads and deletes
backend/app/modules/vault/service.py - Document processing → File storage: reads bytes
backend/app/modules/documents/pipeline.py - Document processing → Application database: writes extracted fields
backend/app/modules/documents/pipeline.py - Vault endpoints → Profile values: marks sources stale
backend/app/modules/vault/routes.py - Vault endpoints → Redacted audit trail: records events
backend/app/modules/vault/routes.py - Profile endpoints → Profile values: calls
backend/app/modules/profile/routes.py - Profile endpoints → Vault lifecycle: gets source document
backend/app/modules/profile/routes.py - Profile endpoints → Redacted audit trail: records events
backend/app/modules/profile/routes.py - Draft lifecycle and export → Profile values: reads confirmed values
- Draft lifecycle and export → Vault lifecycle: checks linked documents
backend/app/modules/applications/service.py - Redacted audit trail → Application database: stores events
backend/app/modules/audit/service.py - Vault lifecycle → Application database: stores metadata
- Draft lifecycle and export → Application database: stores drafts
- Case tracking and reapply → Application database: stores cases