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

codepliant

v1.1.1

Published

Scan your codebase, generate compliance documents. Privacy Policy, Terms of Service, AI Disclosure, Cookie Policy, DPA — all from your actual code.

Readme


Quick Start

# 1. Go to your project directory
cd your-project

# 2. Run one command
npx codepliant go

# 3. Check the generated legal/ directory
ls legal/
# → legal/    ai/    security/    privacy/    vendor/    audit/    governance/

That's it. No signup. No API key. No config file. Runs locally in under 1 second. Your code never leaves your machine.

Want to customize? See Configuration. Want HTML/PDF? Run codepliant go --format html.


Why does this exist?

You added Stripe last week. OpenAI the week before. Supabase for auth. PostHog for analytics. Sentry for error tracking.

Each one collects user data. Each one requires disclosure in your privacy policy. And starting August 2, 2026, the EU AI Act requires you to disclose every AI system in your application — with fines up to EUR 35 million.

Do you know exactly what data your app collects? Most developers don't. Codepliant reads your actual code and tells you.


How it works

package.json:    "stripe": "^14.0"       → Payment data collection
source code:     import OpenAI from "openai"  → AI usage, needs disclosure
.env:            SENTRY_DSN=https://...   → Error monitoring, collects IPs
Prisma schema:   email String @unique     → Personal data storage
API route:       POST /api/chat { email } → Data intake endpoint
docker-compose:  postgres, redis          → Data persistence infrastructure

Codepliant scans your dependencies, imports, env vars, database schemas, API routes, and infrastructure configs — then generates documents that mention your actual services by name.

Not "third-party analytics providers" — it says "PostHog" because it found PostHog in your code.

Supports: JavaScript/TypeScript, Python, Go, Ruby, Elixir, PHP, Rust, Java, .NET — and frameworks like Rails, Laravel, Express, FastAPI, Django.


What you get

legal/
├── legal/       Privacy Policy, Terms of Service, Cookie Policy, AI Disclosure, Refund Policy, DPA
├── ai/          AI Model Card, AI Governance Framework, AI Impact Assessment, AI Ethics Statement
├── security/    Security Policy, Incident Response Plan, Encryption Policy, Disaster Recovery
├── privacy/     Data Dictionary, Data Flow Map, DSAR Guide, Retention Policy, Consent Records
├── vendor/      Sub-Processor List, Vendor Risk Assessment, Security Questionnaire, Exit Plan
├── audit/       SOC 2 Checklist, ISO 27001 Checklist, Risk Register, Compliance Gap Analysis
├── governance/  Executive Dashboard, Compliance Roadmap, KPI Dashboard, Board Report
├── hr/          Employee Privacy Notice, Training Record, Onboarding Guide
├── config/      Cookie Consent Config (JSON), Privacy Dashboard Config (JSON)
└── guides/      Quick Start Guide, Automation Guide

123+ documents total. Each one is personalized to your detected services, data fields, and infrastructure.

Browse example output from cal.com (23 services detected) →

Documents your users will see

| Document | Why you need it | Where to put it | |----------|----------------|-----------------| | Privacy Policy | Legally required if you collect any user data (GDPR Art. 13, CCPA). Can't list on app stores or run ads without one. | /privacy on your website | | Terms of Service | Limits your liability. Without it, users can sue you in any jurisdiction for any reason. | /terms on your website | | Cookie Policy | Required by ePrivacy Directive if you use analytics, tracking, or auth cookies. | /cookies on your website | | AI Disclosure | Required by EU AI Act Art. 50 (effective Aug 2, 2026). Fines up to EUR 35M. | /ai-disclosure on your website |

Documents for enterprise sales

| Document | Why you need it | |----------|----------------| | Data Processing Agreement | Required by GDPR Art. 28. Every B2B customer in Europe will ask for this. | | Sub-Processor List | Part of DPA — list every third-party that touches customer data. | | Security Policy | Required for SOC 2 and vendor security reviews. |

Documents for audits

| Document | Which audit | |----------|-------------| | SOC 2 Checklist | SOC 2 Type I / Type II | | ISO 27001 Checklist | ISO 27001 certification | | Privacy Impact Assessment | GDPR Art. 35, new feature launches | | Incident Response Plan | SOC 2, ISO 27001, GDPR (72-hour breach window) |

AI-specific (EU AI Act)

| Document | Regulatory basis | |----------|-----------------| | AI Model Card | EU AI Act Art. 53 | | AI Governance Framework | EU AI Act + NIST AI RMF | | AI Impact Assessment | EU AI Act + Colorado AI Act |

Full document type reference →


vs. existing tools

| Termly / Iubenda | Codepliant | |---|---| | "Do you collect email addresses?" — I think so? | Reads email: String @unique from your Prisma schema | | "Do you use AI?" — Yes but what do I disclose? | Detects OpenAI + Anthropic, generates Art. 50 disclosure | | "List your sub-processors" — Uhh... | Finds Stripe, Sentry, Resend — generates the full list | | 30 minutes of forms → generic template | 30 seconds → 123+ documents tailored to your code |


Tested against 1200+ real projects

| Project | Stack | Services Found | |---------|-------|---------------| | cal.com | Next.js + Prisma | 23 services | | chatwoot | Ruby/Rails | 24 services | | twenty | NestJS | 19 services | | documenso | Next.js + Prisma | 16 services | | maybe | Ruby/Rails | 16 services | | medusa | Express | 14 services | | mastodon | Ruby/Rails | 14 services | | formbricks | Next.js | 13 services | | saleor | Django | 5 services |

Each project includes the full generated legal/ directory — browse them on GitHub →


All commands

npx codepliant go                  # Generate all compliance documents
npx codepliant go --format html    # HTML compliance page for your website
npx codepliant go --format pdf     # PDF output
npx codepliant scan                # Just scan, no files generated
npx codepliant init                # Interactive setup (.codepliantrc.json)
npx codepliant check               # Check if docs are up to date
npx codepliant dashboard           # Compliance dashboard
npx codepliant certify             # Generate compliance certificate
npx codepliant count               # Quick stats (one-line, scriptable)

Configuration

Create .codepliantrc.json in your project root:

{
  "companyName": "Your Company",
  "contactEmail": "[email protected]",
  "jurisdictions": ["gdpr", "ccpa", "uk-gdpr"],
  "dpoEmail": "[email protected]"
}

CI/CD (GitHub Action)

- uses: joechensmartz/codepliant@v1
  with:
    fail-on-missing: true    # Fail if required docs are missing
    comment-on-pr: true      # Post compliance summary on PRs
    format: markdown          # markdown, html, pdf, json

Outputs services-count, documents-count, and compliance-score for use in subsequent steps.

MCP Server (Claude Code / Cursor)

{ "mcpServers": { "codepliant": { "command": "npx", "args": ["codepliant-mcp"] } } }

Output formats

Markdown (default), HTML, PDF, JSON, DOCX, Notion, Confluence, GitHub Pages, cookie consent banner, embeddable widget — see all formats →


Generating the Demo GIF

The demo GIF in this README is generated with VHS from demo.tape.

# Install VHS
brew install charmbracelet/tap/vhs

# Generate the GIF
vhs demo.tape

The output is written to assets/demo.gif.

Links

License

MIT — free forever.


Zero network calls. Your code never leaves your machine. Verify it.