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

diffesense

v1.6.0

Published

Framework-agnostic JavaScript/TypeScript change-risk engine for PR reviews

Readme

DiffeSense

Know your risk before you merge.

Change-risk intelligence for JavaScript/TypeScript pull requests.

npm version npm downloads License

Quick Start · Documentation · Policy Packs


What is DiffeSense?

DiffeSense analyzes your code changes and tells you which files are risky and what to do about them.

It's not a linter. It's a risk engine that helps you make better merge decisions.

$ dsense

DiffeSense  •  risk gate for code changes

Top 3 risky files
Risk  Sev       Blast  File                      Why
8.9   CRITICAL  12     src/auth/middleware.ts    auth-boundary; async patterns
7.2   HIGH      6      src/api/client.ts         error handling weak
6.8   HIGH      3      src/components/Cart.tsx   heavy component

Exit code: 1 (FAIL)

Traditional tools: "Missing semicolon on line 42"
DiffeSense: "This auth file has 12 dependents and 4 side-effects. Run npm test -- auth"


Quick Start

GitHub Actions (60 seconds)

# .github/workflows/diffesense.yml
name: DiffeSense
on:
  pull_request:
    branches: [main]

jobs:
  analyze:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - run: npx diffesense@latest --policy-pack enterprise --format markdown

Local Development

npm install -g diffesense
dsense                           # auto-detect changes
dsense --policy-pack enterprise  # strict CI mode
dsense --format markdown         # PR comment format

Policy Packs

Pre-configured policies for different use cases. Start in 60 seconds.

| Pack | Fail Threshold | Best For | |------|----------------|----------| | startup (default) | Risk ≥ 8.8 | Fast-moving teams | | enterprise | Risk ≥ 7.5, 2+ HIGH | Strict CI gates | | oss | Risk ≥ 9.2 | Open-source projects |

dsense --policy-pack enterprise
dsense init --pack enterprise
dsense packs --verbose

Key Features

  • 220+ Risk Signals — Security, correctness, performance, framework-specific
  • Blast Radius — See how many files depend on your changes
  • Smart Ignore — Lockfiles and generated code filtered automatically
  • Actionable Output — Not "add tests", but npm test -- auth
  • CI Ready — GitHub Actions, GitLab CI templates included
  • Zero Config — Works out of the box with sensible defaults

Supported Frameworks

| Frontend | Backend | Mobile/Desktop | |----------|---------|----------------| | React, Next.js | Node.js, Express | React Native, Expo | | Vue, Nuxt | NestJS, Fastify | Electron, Tauri | | Angular | GraphQL, REST | | | Svelte, SvelteKit | WebSocket, SSE | |


Documentation

| Guide | Description | |-------|-------------| | Quick Start | Get started in 5 minutes | | CLI Reference | All commands and options | | Policy Packs | Enterprise/Startup/OSS configs | | Detectors | 220+ signal reference | | Output Formats | Console, Markdown, JSON |


Programmatic API

import { analyze } from 'diffesense';

const result = await analyze({
  cwd: '/path/to/repo',
  scope: 'branch',
  base: 'main',
});

console.log(`Exit: ${result.exitCode}`);
console.log(`Blockers: ${result.summary.blockerCount}`);

License & Brand

License: Apache-2.0 — Free for commercial use, modification, and distribution.

Brand: See BRAND_GUIDELINES.md for name and logo usage.

Security: See SECURITY.md for reporting vulnerabilities.


Contributing

Contributions welcome! See CONTRIBUTING.md.


Support