dpdp-kit is an open-source Node.js toolkit for India's Digital Personal Data Protection Act. You declare why you hold each piece of personal data in one typed config, and it keeps consent records you can prove, carries out erasure on time, logs who reads what, and fails CI when your schema drifts.
Until now it only spoke Drizzle. 0.4.0 works with the database you already have : Prisma, MongoDB and Mongoose, or any Postgres client. It also adds breach records with the Board's 72-hour deadline.
But the part I want to write about is how I tested it, because that's where the surprises were.
Not legal advice. dpdp-kit helps you put compliance into practice; it doesn't make an app compliant on its own.
The test: a year of Chai & Co
Unit tests check functions. Compliance is about what happens over months: someone withdraws consent today, and the law says their data goes a year later.…