Discover β Map β Assess β Implement β Operate β Evidence β Audit
Privacy governance built for Algeria. Open source by design.
Created and maintained by Taher Amine ELHOUARI
π taheramine.org
DZ Privacy Compass is a privacy-first, self-hostable platform for implementing, operating, assessing, and evidencing an organisation's Algerian personal-data protection programme.
It brings legal requirements, processing activities, risks, evidence, DPO operations, data-subject rights, ANPDP readiness, privacy-by-design, assurance, reporting, and governance workflows into one operational workspace.
The project is centred on:
- Law 18-07 on the protection of individuals in the processing of personal data
- Law 25-11 amending and supplementing Law 18-07
- practical privacy governance and accountability
- evidence-based compliance and assurance
DZ Privacy Compass is independent open-source software. It is not an ANPDP or Algerian Government application and does not replace qualified legal advice.
| Area | What you can manage |
|---|---|
| πΊοΈ Data Mapping | Legal entities, departments, systems, data assets, processing activities and processor registers |
| βοΈ Legal & Compliance | Legal library, applicability, assessments, compliance mapping and legal dossiers |
| π€ DPO Governance | DPO activities, annual reporting, reviews and governance records |
| π¨ Rights Management | Data-subject request workflows, deadlines, correspondence and status tracking |
| ποΈ ANPDP Readiness | Formality assessment, preparation workflows and readiness packs |
| π‘οΈ Risk & Assurance | Risks, controls, findings, corrective actions, audits and assurance activities |
| π Evidence Vault | Controlled evidence storage, SHA-256 integrity and authenticated retrieval |
| π Third Parties & Transfers | Vendors, processors, subprocessors and international transfers |
| π§© Privacy by Design | Privacy reviews and impact-assessment workflows |
| π Special Reviews | Minors, sensitive data, biometrics, profiling and direct marketing |
| π Executive Dashboard | Operational privacy, compliance, risk, evidence and remediation indicators |
| π Reporting & Export | HTML, PDF, CSV, JSON and XLSX outputs where supported |
| π Backup & Restore | Database + Evidence Vault backup, manifests, verification and controlled restore |
DZ Privacy Compass is designed to answer operational questions quickly:
- How much of the legal framework has actually been assessed?
- What requires attention now?
- Which risks and actions are overdue?
- Where is evidence missing or stale?
- What privacy reviews are pending?
- What is happening across rights requests, incidents, vendors and transfers?
- What should management or the DPO focus on next?
Metrics are derived from real workspace data β not fabricated compliance scores.
The legal model is intentionally conservative.
v1.0.0 includes:
- 104 legal provision records
- 58 source-verified operational requirement summaries
- deliberate coverage of all 76 Law 18-07 articles
- deliberate coverage of all 8 Law 25-11 amending articles
- 359 / 359 extracted clauses mechanically recovered from archived official sources
- 358 independently approved interpretations
- 1 explicitly quarantined interpretation rather than falsely presenting uncertainty as settled law
Official statutory text and DZ Privacy Compass implementation guidance are kept conceptually separate.
A specific guardrail is also enforced for Title V bis, which is treated as a specialised competent-authority criminal-justice regime rather than being indiscriminately applied to ordinary private-sector organisations.
For the full methodology, see LEGAL_METHODOLOGY.md and LEGAL_COVERAGE_REPORT.md.
Security is part of the product architecture, not an afterthought.
- Argon2id password hashing with deployment pepper
- opaque, revocable server-side sessions
- optional local TOTP MFA
- AES-256-GCM protection for MFA secrets
- one-use MFA recovery codes
- server-side RBAC
- workspace / tenant isolation
- exact-origin CSRF enforcement
- login throttling and lockout
- authenticated Evidence Vault retrieval
- SHA-256 evidence integrity
- upload type/signature validation
- tamper-evident audit and operation chains
- permission-aware search and exports
- secure response headers and CSP
- operator-mediated password and MFA recovery
- no required SaaS identity provider
- no required telemetry or external analytics
Archive uploads remain deliberately disabled until complete hostile-archive protections are implemented and validated.
See SECURITY.md and SECURITY/THREAT_MODEL.md.
DZ Privacy Compass supports:
π«π· FranΓ§ais Β· π©πΏ Ψ§ΩΨΉΨ±Ψ¨ΩΨ© Β· π¬π§ English
Arabic includes proper RTL behavior, and the v1.0.0 release underwent browser validation across all three language foundations.
The interface supports:
- Dark
- Light
- System
themes and responsive desktop/laptop layouts.
- Node.js 22+
- npm
- Docker Desktop
- Git
Clone the repository and enter the project:
git clone https://github.com/MrTaherAmine/DZ-Privacy-Compass.git
cd DZ-Privacy-CompassRun the guided local setup:
npm run local:setupThe setup process:
- creates a safe local
.envwhen one does not exist; - installs dependencies from the committed lockfile;
- starts loopback-only PostgreSQL;
- validates and generates Prisma;
- applies the committed database migration;
- seeds the fictional demo workspace and legal corpus.
Create your first local administrator:
DZPC_BOOTSTRAP_EMAIL='admin@example.test' \
DZPC_BOOTSTRAP_NAME='Local Administrator' \
DZPC_BOOTSTRAP_PASSWORD='replace-with-a-unique-long-password' \
DZPC_BOOTSTRAP_WORKSPACE='primary' \
DZPC_BOOTSTRAP_WORKSPACE_NAME='My Organisation' \
npm run admin:bootstrapVerify the installation:
npm run local:verifyThen start the application:
npm run devOpen:
http://localhost:3000
French is the default locale. Arabic and English are available through /ar and /en.
Never use the example administrator password literally. Choose a unique strong local password.
Docker Compose is the primary packaged deployment model.
The application is designed so that the application runtime, PostgreSQL database and Evidence Vault can remain under the operator's control without mandatory cloud dependencies.
For production deployments, configure:
- TLS termination
- exact canonical
APP_URL - strong independent secrets
- persistent PostgreSQL storage
- persistent private Evidence Vault storage
- encrypted/off-host backups
- trusted proxy configuration where applicable
See DEPLOYMENT.md before exposing an installation beyond localhost.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DZ Privacy Compass β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Next.js 16 Β· React 19 Β· TypeScript β
β App Router Β· Server-rendered application β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Authentication Β· MFA Β· RBAC Β· Workspace isolation β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Privacy Β· Legal Β· Risk Β· Evidence Β· DPO Β· Assurance β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Prisma ORM β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β PostgreSQL 17 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Private Evidence Vault β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The project follows a security-conscious modular-monolith approach intended to remain understandable, deployable and maintainable without unnecessary infrastructure complexity.
For deeper technical detail, see ARCHITECTURE.md and API.md.
The final v1 release passed:
| Validation area | Status |
|---|---|
| Clean locked dependency install | β |
| Lint & TypeScript | β |
| Automated regression suite | β |
| Production build | β |
| Prisma validation & generation | β |
| Fresh PostgreSQL migration | β |
| Legal corpus verification | β |
| Authentication & MFA | β |
| RBAC & tenant isolation | β |
| Origin / CSRF / session controls | β |
| Representative CRUD | β |
| Evidence Vault integrity | β |
| Reports & exports | β |
| Database + Evidence Vault restore | β |
| FR / AR / EN browser QA | β |
| RTL & responsive validation | β |
| Docker clean start | β |
| Dependency audit | β |
| SBOM generation | β |
| Container security scan | β |
| Reproducible source artifact | β |
The release process and evidence are documented in RELEASE_CHECKLIST.md, RELEASE.md, TESTING.md, and release-evidence/.
| Document | Purpose |
|---|---|
| ARCHITECTURE.md | System architecture |
| API.md | API documentation |
| DEPLOYMENT.md | Production deployment |
| DEVELOPMENT.md | Development environment |
| SECURITY.md | Security model and reporting |
| BACKUP_RESTORE.md | Backup and restore |
| LEGAL_METHODOLOGY.md | Legal research methodology |
| LEGAL_COVERAGE_REPORT.md | Legal coverage |
| TESTING.md | Testing strategy |
| TRANSLATION.md | FR / AR / EN guidance |
| CONTRIBUTING.md | Contribution rules |
| CHANGELOG.md | Release history |
| ROADMAP.md | Future direction |
Contributions are welcome.
The most important rule is simple:
Do not invent legal requirements.
Contributions affecting legal content should be traceable to authoritative primary sources and include appropriate verification evidence and tests.
Please also:
- never commit client data;
- never commit credentials or secrets;
- preserve tenant-isolation and authorization controls;
- add regression coverage for behavioral changes;
- keep legal interpretation uncertainty explicit rather than silently resolving it.
See CONTRIBUTING.md.
Please do not publish exploit details in public GitHub issues.
Use the private maintainer contact route described in SECURITY.md.
Cross-tenant access, authentication bypass, Evidence Vault disclosure, integrity-chain bypass, and secret exposure are treated as release-blocking security defects.
DZ Privacy Compass is an independent open-source project.
It:
- is not ANPDP;
- is not an Algerian Government application;
- does not issue certification;
- does not guarantee legal compliance;
- does not replace qualified legal, privacy, cybersecurity or regulatory advice.
Organisations remain responsible for evaluating their own legal and operational circumstances.
See DISCLAIMER.md.
Licensed under the Apache License 2.0.
See LICENSE, NOTICE, and CITATION.cff.
If you use DZ Privacy Compass in research, training, advisory work or publications, citation is appreciated.
Created by Taher Amine ELHOUARI
Independent vCISO Β· Senior Advisor Β· Accredited Auditor Β· Certified Trainer
DZ Privacy Compass Β· v1.0.0