Developer releases CLI tool to help JS/TS apps comply with India's DPDP Act 2023
India's Digital Personal Data Protection (DPDP) Act, 2023 is now in force, carrying penalties of up to ₹250 crore for violations such as loading trackers without user consent or storing personal data unencrypted. A developer has released an open-source CLI tool called @dpdp-india/audit that statically scans JavaScript and TypeScript codebases to flag non-compliant patterns, functioning similarly to ESLint but focused on privacy rules. The tool covers 13 rules, detecting issues ranging from unguarded Google Analytics and Facebook Pixel loads to bulk data exports lacking audit trails. It also ships with a ready-to-use Next.js consent system, including a banner component and a consent-aware script loader, so developers can remediate flagged issues quickly. The package additionally supports SARIF output for integration with GitHub Code Scanning and can be configured to fail CI builds when violations are detected.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in