How httpsanjay/nyaya_vault works
NyayaVault is a Django legal-document and investigation-case management system. Its main workflow is role-based user access, case and document management, review and signing of document versions, with integrity checks and audit history. The README also documents asynchronous OCR; the sampled task code shows it updating version records and calling text extraction. Source excerpts are partial, so uncertain wiring—especially semantic search and REST API behavior—is not represented.
Main entry points: views.py Case and document workflows · urls.py Web routes · models.py Cases and versions · tasks.py OCR task
Components 17
Identity and access
- Web routes
nyaya_vault/urls.py - Accounts and dashboard
accounts/views.py - User accounts
accounts/models.py - Account serializers
accounts/serializers.py
Cases and documents
- Case and document workflows
cases/views.py - Cases and versions
cases/models.py - Case and document forms
cases/forms.py - Case permissions
cases/permissions.py
Review and traceability
- Hash and signature
cases/views.py - Audit recording
audit/utils.py - Audit history
audit/views.py - Audit records
audit/models.py
Text processing
- OCR task
cases/tasks.py - Text extraction
cases/ocr.py
Other components
- Legal users
- Redis broker
- Relational database
Connections 19
- Legal users → Web routes: use web app
- Web routes → Accounts and dashboard: route requests
- Web routes → Case and document workflows: route requests
- Web routes → Audit history: route requests
- Accounts and dashboard → User accounts: read accounts
- Accounts and dashboard → Cases and versions: read case data
- Case and document workflows → Case and document forms: validate input
- Case and document workflows → Case permissions: check access
- Case and document workflows → Cases and versions: manage documents
- Case and document workflows → Hash and signature: verify and sign
- Case and document workflows → Audit recording: record actions
- Audit history → Audit records: read history
- Audit recording → Audit records: write records
- OCR task → Cases and versions: update version
- OCR task → Text extraction: extract text
- OCR task → Redis broker: run asynchronously
- User accounts → Relational database: persist accounts
- Cases and versions → Relational database: persist case data
- Audit records → Relational database: persist audit