npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tantainnovative/ndpr-toolkit

v1.0.10

Published

Nigerian Data Protection Compliance Toolkit for implementing NDPR and DPA compliant features

Readme

Nigerian Data Protection Compliance Toolkit (NDPR-Toolkit)

npm version License: MIT

An open-source toolkit that helps Nigerian developers implement Nigeria Data Protection Regulation (NDPR) and Data Protection Act (DPA) compliant features in their web applications.

Installation

npm install @tantainnovative/ndpr-toolkit
# or
yarn add @tantainnovative/ndpr-toolkit
# or
pnpm add @tantainnovative/ndpr-toolkit

Project Vision

This toolkit simplifies regulatory compliance for startups and businesses operating in Nigeria by providing ready-to-use components and tools for implementing data protection requirements.

Key Components

1. Consent Management System

New in v1.0.7: Complete flexibility with headless mode, custom UI support, and event-driven architecture.

Features:

  • Flexible Implementation: Use pre-built UI, headless mode, or hybrid approach
  • Full Customization: Override any component or behavior
  • Event-Driven: Subscribe to consent changes with event listeners
  • TypeScript Support: Fully typed with generic support for custom categories
  • Granular Consent: Analytics, marketing, functional, and custom categories
  • Audit Trail: Time-stamped consent history tracking

Quick Start:

import { ConsentManager } from '@tantainnovative/ndpr-toolkit';

// Basic usage with pre-built UI
function App() {
  return (
    <ConsentManager>
      {/* Your app content */}
    </ConsentManager>
  );
}

// Headless mode with custom UI
function HeadlessApp() {
  return (
    <ConsentManager headless>
      <YourCustomBanner />
      <YourCustomSettings />
    </ConsentManager>
  );
}

See full consent management documentation

2. Data Subject Rights Portal

  • Pre-built UI components for handling:
    • Right to access personal data
    • Right to rectification
    • Right to erasure ("right to be forgotten")
    • Right to restrict processing
    • Right to data portability
    • Dashboard for data controllers to manage requests
    • Local storage requestService to track and update requests in demos

3. Privacy Policy Generator

  • Interactive wizard to create NDPR-compliant privacy policies
  • Template system with customizable sections
  • Auto-update notifications when regulatory requirements change
  • Version history tracking

4. Data Protection Impact Assessment (DPIA) Tool

  • Questionnaire-based tool to help organizations assess data processing risks
  • Risk scoring matrix
  • Mitigation recommendation engine
  • Exportable reports for compliance documentation

5. Breach Notification Module

  • Templates for mandatory breach notifications
  • Workflow for documenting breach details
  • Timeline tracking to ensure 72-hour notification compliance
  • Notification delivery to authorities via API (if available)

6. Data Subject Request Service

  • Lightweight requestService storing requests in browser localStorage for demos
  • Helper methods to update request status and retrieve history

Quick Start

Using the Toolkit in Your Project

import { ConsentManager, useConsent } from '@tantainnovative/ndpr-toolkit';

function App() {
  return (
    <ConsentManager onConsentChange={(consent) => console.log('Consent updated:', consent)}>
      <YourApp />
    </ConsentManager>
  );
}

function YourApp() {
  const { consentState, openSettings } = useConsent();
  
  return (
    <div>
      {consentState.analytics && <AnalyticsScript />}
      <button onClick={openSettings}>Manage Cookies</button>
    </div>
  );
}

Development

To contribute or run the demo locally:

# Clone the repository
git clone https://github.com/tantainnovative/ndpr-toolkit.git
cd ndpr-toolkit

# Install dependencies
pnpm install

# Run development server
pnpm dev

Open http://localhost:3000 to see the demo.

Deployment

GitHub Pages

This project is configured to deploy automatically to GitHub Pages using GitHub Actions. When you push changes to the main branch, the following will happen:

  1. The GitHub Actions workflow will build the project
  2. The built files will be deployed to GitHub Pages
  3. Your site will be available at https://[your-username].github.io/ndpr-toolkit/

To manually deploy to GitHub Pages:

# Build the project
npm run build

# Deploy to GitHub Pages (if you have gh-pages installed)
npm run deploy

Configuration

The GitHub Pages deployment is configured in the following files:

  • next.config.ts - Contains the Next.js configuration for static export
  • .github/workflows/deploy.yml - Contains the GitHub Actions workflow for automated deployment

Technical Stack

  • Next.js with App Router
  • TypeScript
  • Tailwind CSS
  • React

License

MIT License

Author

Abraham Esandayinze Tanta

Senior Software Engineer with over a decade of experience in ethical hacking, software development, Linux and network administration. Based in Lagos, Nigeria.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Support

If you find this toolkit helpful, please consider:

  • ⭐ Starring the repository
  • 🐛 Reporting bugs and issues
  • 💡 Suggesting new features
  • 🤝 Contributing to the codebase