Menu

I ran a fake tea shop for a year to test my DPDP Act library (dpdp-kit 0.4.0)
📰

I ran a fake tea shop for a year to test my DPDP Act library (dpdp-kit 0.4.0)

DEV Community: mongodb·YOGESH BANSAL·16 days ago
#NU9I8kIm
#devtomongodb#devto#dev#dpdp#prisma
Long article (1078 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.