How sunandan89/anumati works
Anumati is a Frappe-based DPDP consent platform for nonprofits. Its principal workflow is assisted or offline field capture: register a data principal, record consent or withdrawal, apply verification and enforcement rules, and preserve signed, hash-chained evidence. Separate capabilities cover notices and multilingual publishing, rights requests, breach and audit handling, outbound messages, and operational analytics. The graph emphasizes API-to-domain behavior and ledger internals evidenced in excerpts or the README; several documented subsystems are represented at their exact enclosing source directories because their implementations were not sampled.
Main entry points: consent.py Consent API · chain.py Hash-chain ledger · principal.py Principal API · field_device Offline field app
Components 26
Field consent
- Offline field app
anumati/anumati/doctype/field_device - Principal API
anumati/api/v1/principal.py - Principal records
anumati/anumati/doctype/data_principal - Profile answers
anumati/profile.py - Consent API
anumati/api/v1/consent.py - Verification
anumati/api/v1/verification.py - Consent enforcement
anumati/enforcement.py - Consent events and state
anumati/anumati/doctype/consent_event
Privacy governance
- Notice publishing
anumati/anumati/doctype/notice_template - Rights requests
anumati/api/v1/rights.py - Breach incidents
anumati/anumati/doctype/breach_incident - Retention and purge
anumati/anumati/doctype/retention_policy - Audit trail
anumati/anumati/doctype/audit_entry
Trust and evidence
- Hash-chain ledger
anumati/ledger/chain.py - Canonical payloads
anumati/ledger/canonical.py - Tenant key store
anumati/ledger/keystore.py - Ed25519 signing
anumati/ledger/signing.py - Evidence capture
anumati/evidence.py - PII protection
anumati/pii.py
Platform services
- Message channels
anumati/channels/__init__.py - MSG91 adapter
anumati/channels/msg91.py - API validation
anumati/api/schema.py
Operations and insight
- Dashboard analytics
anumati/anumati/dashboard_chart - Profile totals
anumati/anumati/report/profile_answer_totals/profile_answer_totals.py - Programme dashboard
anumati/anumati/workspace
Other components
- Field worker
Connections 24
- Field worker → Offline field app: records offline
README.md - Offline field app → Principal API: syncs people
- Principal API → API validation: validates input
anumati/api/v1/principal.py - Principal API → Principal records: saves records
anumati/api/v1/principal.py - Principal API → Profile answers: saves answers
anumati/api/v1/principal.py - Offline field app → Consent API: submits decisions
- Consent API → API validation: validates input
anumati/api/v1/consent.py - Consent API → Principal records: checks person
anumati/api/v1/consent.py - Consent API → Notice publishing: checks published notice
anumati/api/v1/consent.py - Consent API → Consent events and state: inserts events
anumati/api/v1/consent.py - Consent API → Consent enforcement: invalidates state
anumati/api/v1/consent.py - Verification → Consent events and state: updates verification
- Consent events and state → Hash-chain ledger: seals records
- Hash-chain ledger → Canonical payloads: canonicalizes
anumati/ledger/chain.py - Hash-chain ledger → Tenant key store: gets active key
anumati/ledger/chain.py - Hash-chain ledger → Ed25519 signing: signs hashes
anumati/ledger/chain.py - Tenant key store → Ed25519 signing: generates keypair
anumati/ledger/keystore.py - Consent API → Evidence capture: accepts evidence
- Principal records → PII protection: protects personal data
- Rights requests → Consent API: uses consent API
anumati/api/v1/rights.py - Audit trail → Hash-chain ledger: sealed by chain
- Message channels → MSG91 adapter: dispatches SMS
anumati/channels/__init__.py - Dashboard analytics → Programme dashboard: supports reporting
- Profile totals → Profile answers: summarizes answers