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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tantainnovative/create-ndpr

v0.1.0

Published

CLI scaffolder for NDPA compliance with @tantainnovative/ndpr-toolkit

Readme

create-ndpr

CLI scaffolder for NDPA compliance using @tantainnovative/ndpr-toolkit.

Usage

npx @tantainnovative/create-ndpr

Or with the short alias (once published to npm):

npx create-ndpr

Run this from the root of an existing project. The CLI detects your stack and generates the right files with no manual copy-pasting.

What it does

  1. Detects your project setup — checks for next.config.*, express in package.json, an app/ directory (App Router vs Pages Router), prisma/schema.prisma, and drizzle.config.*.

  2. Prompts for a few details:

    • Organisation name
    • DPO (Data Protection Officer) email address
    • Framework (auto-detected, can override)
    • ORM: Prisma / Drizzle / None
    • Which compliance modules to include
  3. Generates files tailored to your stack.

What it generates

| File | When | |------|------| | .env.example | Always | | prisma/schema.prisma | ORM = Prisma (skips if already exists) | | src/drizzle/ndpr-schema.ts | ORM = Drizzle | | app/ndpr-layout.tsx | Next.js App Router | | app/api/consent/route.ts | Next.js + consent module | | app/api/dsr/route.ts | Next.js + dsr module | | app/api/breach/route.ts | Next.js + breach module | | pages/api/consent.ts | Next.js Pages Router + consent | | pages/api/dsr.ts | Next.js Pages Router + dsr | | pages/api/breach.ts | Next.js Pages Router + breach | | src/ndpr/index.ts | Express | | src/ndpr/routes/consent.ts | Express + consent module |

All generated files use {{ORG_NAME}} and {{DPO_EMAIL}} substituted with your answers.

Modules

| Module | NDPA reference | Description | |--------|---------------|-------------| | consent | §25–26 | Consent collection, storage, and withdrawal | | dsr | §34–38 | Data subject rights request intake and tracking | | breach | §40 | 72-hour breach notification workflow | | policy | — | Privacy policy scaffolding | | dpia | — | Data Protection Impact Assessment | | lawful-basis | §25 | Lawful basis register | | cross-border | §43 | Cross-border data transfer management | | ropa | Accountability | Record of Processing Activities |

After generation

With Prisma

# Copy .env.example → .env and set DATABASE_URL
cp .env.example .env

# Install dependencies
pnpm add @prisma/client @tantainnovative/ndpr-toolkit
pnpm add -D prisma

# Run migrations
pnpm prisma migrate dev --name ndpr-init

With Drizzle

cp .env.example .env

pnpm add drizzle-orm @paralleldrive/cuid2 @tantainnovative/ndpr-toolkit
pnpm add -D drizzle-kit

pnpm drizzle-kit push

Next.js — wire up the layout

// app/layout.tsx
import NDPRLayout from '@/app/ndpr-layout';

export default async function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <NDPRLayout>
          {children}
        </NDPRLayout>
      </body>
    </html>
  );
}

Express — mount the router

import express from 'express';
import { createNDPRRouter } from './src/ndpr';

const app = express();
app.use(express.json());
app.use('/api/ndpr', createNDPRRouter());

Requirements

  • Node.js 18+
  • Zero external dependencies — works with npx out of the box

Links

  • Toolkit docs: https://ndpr-toolkit.tantainnovative.com
  • GitHub: https://github.com/tantainnovative/ndpr-toolkit
  • NDPC: https://ndpr.gov.ng