Work / PrivacySuraksha

Case study · Compliance

PrivacySuraksha: a DPDP consent management platform

A compliance platform for India's Digital Personal Data Protection (DPDP) Act: a consent widget, PII scanners and a consent ledger that auditors can verify without trusting the company's database.

Role
Primary developer, at Cloudzent
Hard part
Proving consent without asking anyone to trust our database.
Result
Live in production. Auditors can verify any consent record without access to our database.
Built by
Sparsh Prajapati, full-stack engineer

The consent widget

One script tag. Shadow DOM, so the host page can't break it. Consent Mode v2 and GPC, before the first click.

It speaks 22 Indian languages and weighs 11.8 KB, so it can sit on any site without slowing it down.

Finding personal data

Scans S3, Postgres, MySQL and every laptop. Classifies what it finds. Masks it in every report.

A ledger nobody can quietly edit

Every consent event is hashed. Every day is sealed into one SHA-256 Merkle root, signed with Ed25519 and anchored to Bitcoin.

Auditors can check any single record against the signed root without having to trust the company's database. The home page has a live version: change one letter of a record and watch the proof fail.

Architecture

One monorepo, five apps. Postgres with Drizzle. Tested with Vitest.

  • api: Hono on Cloudflare Workers
  • dashboard: React, Clerk auth
  • admin: React, internal operations
  • scanner: S3, Postgres, MySQL + endpoint agent
  • website: Astro

Compliance modules

Beyond consent, the platform covers the registers a compliance team works from:

  • ROPA
  • DPIA
  • 72-hour breach register
  • Vendor risk
  • Rights requests with SLA

Stack

Cloudflare Workers · Hono · React · Clerk · Astro · PostgreSQL · Drizzle · Vitest

Links

Need something like this?

I take on freelance projects and remote roles, including with teams outside India. Send a few lines about what you're building and when you need it.

Email meHow I work

More work