Skip to main content

Data Privacy Hub

Data Privacy Compliance for Developers

Privacy regulations are multiplying worldwide. GDPR in Europe, CCPA in California, LGPD in Brazil, PIPEDA in Canada, the DPDP Act in India — each with unique documentation requirements, consent rules, and penalties. Codepliant scans your codebase once and generates compliance documentation for every regulation that applies to your application.

Global privacy regulations you need to know

If your application has users in more than one country, multiple privacy regulations likely apply simultaneously. Here are the five most impactful data privacy laws worldwide.

GDPR

General Data Protection Regulation

European Union

Applies to any organization processing personal data of EU/EEA residents, regardless of where the organization is based. Covers consent, data subject rights, breach notification, DPAs, and cross-border transfers.

Effective: May 2018Max penalty: Up to 4% of global annual turnover or EUR 20 million

CCPA / CPRA

California Consumer Privacy Act / California Privacy Rights Act

California, United States

Applies to for-profit businesses collecting personal information of California residents that meet revenue or data volume thresholds. Grants consumers rights to know, delete, opt-out of sale, and correct their data.

Effective: Jan 2020 / Jan 2023Max penalty: Up to $7,500 per intentional violation

LGPD

Lei Geral de Protecao de Dados

Brazil

Brazil's comprehensive data protection law modeled on GDPR. Applies to any processing of personal data collected in Brazil or of individuals located in Brazil, regardless of where the processor is based.

Effective: Sep 2020Max penalty: Up to 2% of revenue in Brazil, capped at BRL 50 million per violation

PIPEDA

Personal Information Protection and Electronic Documents Act

Canada

Canada's federal privacy law governing how private-sector organizations collect, use, and disclose personal information in the course of commercial activity. Provinces may have substantially similar legislation.

Effective: Apr 2000 (updated 2024)Max penalty: Up to CAD 100,000 per violation under current enforcement

DPDP Act

Digital Personal Data Protection Act

India

India's first comprehensive data protection law. Applies to processing of digital personal data collected in India or for offering goods/services to individuals in India. Introduces Data Fiduciary obligations and consent requirements.

Effective: Aug 2023 (rules pending)Max penalty: Up to INR 250 crore (approx. USD 30 million) per violation

How Codepliant scans for data privacy

Instead of filling out questionnaires about what data you collect, Codepliant reads your source code to find out. One scan detects every privacy-relevant pattern in your application.

1

Personal data detection

Identifies PII collection through form fields, database schemas, API inputs, and authentication flows

2

Third-party data sharing

Detects analytics SDKs, advertising pixels, payment processors, and external API integrations that receive user data

3

Cookie and tracker scanning

Finds tracking scripts, session management, and cookie-setting patterns across your frontend code

4

Data storage patterns

Scans ORM schemas, database configurations, and cloud storage integrations to map where personal data is stored

5

Cross-border transfer detection

Identifies cloud provider regions, CDN configurations, and third-party services that may transfer data internationally

6

Consent mechanism analysis

Detects consent management platforms, cookie banners, and opt-in/opt-out logic in your codebase

Privacy-by-design principles

Privacy by design, developed by Ann Cavoukian and enshrined in GDPR Article 25, requires that data protection is built into systems from the ground up. These seven foundational principles guide how Codepliant approaches compliance documentation.

1.Proactive not reactive

Prevent privacy issues before they occur. Codepliant detects data collection patterns in your code at build time, not after a breach.

2.Privacy as the default

Personal data should be automatically protected. Codepliant flags unnecessary data collection and generates documentation that reflects your actual practices.

3.Privacy embedded into design

Privacy should be built into systems, not bolted on. Run Codepliant in CI/CD to ensure every deployment has up-to-date compliance documentation.

4.Full functionality

Privacy and functionality are not trade-offs. Codepliant generates accurate documents from your code without requiring you to change your architecture.

5.End-to-end security

Data must be protected throughout its lifecycle. Codepliant detects encryption libraries, access controls, and data retention patterns in your codebase.

6.Visibility and transparency

Users deserve to know how their data is used. Codepliant generates privacy policies, cookie policies, and data flow maps that describe your actual services by name.

7.Respect for user privacy

Keep the user at the center. Codepliant generates DSAR guides, consent documentation, and data subject rights procedures tailored to your application.

Which regulations apply to you

You have users in the EU or EEA

GDPR, ePrivacy Directive, EU AI Act (if using AI)

You have users in California

CCPA/CPRA if you meet revenue or data volume thresholds

You have users in Brazil

LGPD — similar obligations to GDPR with local enforcement

You operate in Canada

PIPEDA at the federal level, plus provincial laws like PIPA (Alberta, BC)

You have users in India

DPDP Act — consent requirements and Data Fiduciary obligations

You handle health information

HIPAA, plus GDPR if EU users are included

You use AI or machine learning

EU AI Act, NIST AI RMF, state-level AI laws (Colorado, Illinois)

You operate a SaaS product

Privacy policy, terms of service, cookie policy at minimum — plus framework-specific docs depending on your users

Related compliance tools and guides

Frequently asked questions

What data privacy regulations does Codepliant cover?

Codepliant generates compliance documentation relevant to GDPR, CCPA/CPRA, LGPD, PIPEDA, the DPDP Act, ePrivacy Directive, and general data privacy best practices. It scans your code to detect what personal data you collect, how you process it, and which third parties receive it, then generates documentation tailored to each regulation.

How does Codepliant detect personal data usage in my codebase?

Codepliant performs static analysis across your project. It scans package.json dependencies, source code imports, environment variables, ORM schemas, API routes, and configuration files. It uses deterministic pattern matching (no AI/LLMs) to identify analytics SDKs, authentication flows, payment processors, database schemas, and other data-handling patterns.

Do I still need a lawyer for data privacy compliance?

Yes. Codepliant generates accurate first drafts based on your actual code, but privacy regulations are complex and jurisdiction-specific. We recommend having a qualified privacy attorney review generated documents before publishing. Codepliant saves you time and money by giving your lawyer an accurate starting point instead of a blank page.

What is privacy by design?

Privacy by design is a framework developed by Ann Cavoukian that embeds privacy protections into the design of systems and processes from the start, rather than adding them as an afterthought. It is now enshrined in Article 25 of GDPR as 'data protection by design and by default.' Codepliant supports this approach by integrating privacy scanning into your development workflow.

Can Codepliant help with data subject access requests (DSARs)?

Codepliant generates DSAR response guides that document what personal data your application collects, where it is stored, and how to retrieve or delete it. This gives your team a reference document for responding to access, deletion, and portability requests under GDPR, CCPA, and other regulations.

Does Codepliant send my code to any external server?

No. Codepliant runs entirely on your local machine. It makes zero network calls during scanning or document generation. Your source code never leaves your computer. This is a core architectural principle — not a feature toggle.

How often should I regenerate privacy documentation?

Regenerate whenever you add new third-party services, change data collection patterns, or deploy significant feature updates. The best approach is to run Codepliant in your CI/CD pipeline so documentation stays in sync with every deployment. The 'codepliant diff' command shows exactly what changed since the last generation.

What documents does Codepliant generate for data privacy?

Codepliant generates privacy policies, cookie policies, data processing agreements, data flow maps, DSAR guides, data retention policies, consent documentation, AI disclosures, terms of service, and many more — over 123 document types across all supported compliance frameworks.

Scan your codebase for data privacy compliance

Detect personal data usage, third-party sharing, and cookie tracking. Generate privacy documentation for every regulation that applies. Free, open source, no account required.

npx codepliant go

Works offline. Zero network calls. No API key needed.