v3.0 — Now Available

NDPA Compliance
Made Beautiful

The complete React toolkit for Nigeria Data Protection Act 2023 compliance — ship consent, DSR, DPIA, breach notifications, and more in minutes, not months.

app/layout.tsx
tsx
import { NDPRProvider } from '@tantainnovative/ndpr-toolkit';

export default function RootLayout({ children }) {
  return (
    <NDPRProvider config={{ appName: 'MyApp' }}>
      {children}
    </NDPRProvider>
  );
}
8
Compliance Modules
316
Passing Tests
0
Peer Dependencies
16–19
React Versions
Quickstart

Full Compliance in 3 Files

Drop in three files and you have a consent banner, a privacy policy page, and a data request portal — all NDPA-compliant.

app/layout.tsx
tsx
// app/layout.tsx
import { NDPRProvider } from '@tantainnovative/ndpr-toolkit';

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <NDPRProvider
          config={{
            appName: 'Acme Corp',
            contactEmail: 'privacy@acme.ng',
          }}
        >
          {children}
        </NDPRProvider>
      </body>
    </html>
  );
}
Modules

Everything Compliance Needs

Eight purpose-built modules covering every requirement of the Nigeria Data Protection Act 2023.

Architecture

Choose Your Layer

Use the high-level presets, drop down to composable components, or go full-headless with hooks and core utilities.

1
Presets
Drop-in components with zero config. Works out of the box.
2
Components
Composable, styled building blocks you control.
3
Hooks
Logic-only hooks — bring your own UI.
4
Core
Pure TypeScript utilities, framework agnostic.
5
Adapters
Swap storage backends: localStorage, Postgres, Redis.
tsx
// One import — fully styled, NDPA-ready
import { ConsentBanner } from '@tantainnovative/ndpr-toolkit';

export default function App() {
  return (
    <ConsentBanner
      position="bottom"
      theme="dark"
      onAccept={handleAccept}
    />
  );
}
Compliance Score

Know Your Score

Run a real-time compliance audit against the NDPA 2023 framework and get an actionable breakdown of gaps.

73/ 100
Consent Management
DSR Portal
Privacy Policy
Breach Notification
DPIA
Lawful Basis
Cross-Border
ROPA
compliance-check.ts
ts
import { getComplianceScore } from '@tantainnovative/ndpr-toolkit';

const score = getComplianceScore({
  hasConsentManagement: true,
  hasDSRPortal: true,
  hasDPIA: true,
  hasBreachNotification: true,
  hasPrivacyPolicy: true,
  hasLawfulBasis: false,
  hasCrossBorder: false,
  hasROPA: false,
});

// { score: 63, grade: 'C', modules: [...] }
73/100 overall score with letter grade
Per-module pass/fail breakdown
Actionable gap recommendations
Grades from A to F scale
Open Source — MIT License

Ready to Ship Compliance?

One package, eight modules, zero excuses. Get NDPA-compliant in an afternoon.

$pnpm add @tantainnovative/ndpr-toolkit
Read the DocsBrowse Demos