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

@wisemen/danger

v0.0.5

Published

Reusable [Danger JS](https://danger.systems/js/) rules and a composite GitHub Action for running them, built for monorepos laid out as `apps/api` + `apps/web` (or any number of `apps/<name>` folders).

Readme

@wisemen/danger

Reusable Danger JS rules and a composite GitHub Action for running them, built for monorepos laid out as apps/api + apps/web (or any number of apps/<name> folders).

Installation

The action installs its own dependencies, but you can also add the package directly:

pnpm add -D danger @wisemen/danger

Usage

Danger already runs for you as part of the general project "build & test" workflow - there's no need to add anything to your own workflows.

This runs once per PR and posts a single combined comment - see "Scoped configuration" below for how a monorepo splits its rules across root/api/web without multiple workflow runs.

Configuring rules

By default, no rules are enabled - Danger runs but posts nothing (see "Built-in rules" below for the full list, which will grow over time). Add a dangerfile.ts (or .js) at your repo root to enable/disable rules or add your own. Export configureDanger to tweak global config and toggle rules, and/or rules to add project-specific rules:

// dangerfile.ts
import type { DefaultConfig, Rule } from '@wisemen/danger'

export function configureDanger (config: DefaultConfig): DefaultConfig {
  config.rules['changelog-updated'] = { enabled: true }

  return config
}

export const rules: Record<string, Rule> = {
  // your custom rules
}

Scoped configuration for monorepos

You can configure Danger three ways in a monorepo with apps/api and apps/web:

| File | Scope | |------------------------------|---------------------------| | dangerfile.ts | Whole repo (root) | | apps/api/dangerfile.ts | apps/api/** only | | apps/web/dangerfile.ts | apps/web/** only |

Each dangerfile is discovered automatically - you opt a folder in just by adding the file there, nothing else needs registering. All discovered dangerfiles run in the same process against the same PR, so their output accumulates into one combined comment.

A rule scoped to apps/api (or any non-root scope) is skipped entirely when the PR doesn't touch that folder - so enabling conventional-commits in apps/api/dangerfile.ts will fail a PR that changes apps/api/** with a bad commit message, but will not fail (or even run) a web-only PR. The root dangerfile is never skipped - it always sees the whole repo.

// apps/api/dangerfile.ts
import type { DefaultConfig } from '@wisemen/danger'

export function configureDanger (config: DefaultConfig): DefaultConfig {
  config.rules['conventional-commits'] = { enabled: true, checkCommitMessages: true }

  return config
}

Rules receive the resolved scope ('' for root, e.g. 'apps/api' otherwise) and pre-filtered scopedFiles (modified/created/deleted/edited/all) on their RuleContext, so custom rules can stay scope-agnostic:

export const myRule = createRule('my-rule', 'My Rule', '...', async ({ scopedFiles }) => {
  const touchedMigrations = scopedFiles.edited.filter(f => f.includes('/migrations/'))
  // ...
})

The built-in changelog-updated rule derives its default target from scope too: dangerfile.ts looks for CHANGELOG.md, apps/api/dangerfile.ts looks for apps/api/CHANGELOG.md, and so on - override with config.rules['changelog-updated'].changelogPath if you need something else.

Built-in rules

All built-in rules are disabled by default - enable the ones you want via config.rules in configureDanger (see "Configuring rules" above).

  • changelog-updated - fails if the scope's CHANGELOG.md wasn't updated with a complete ### Description / ### Migration entry.
  • conventional-commits - warns on commits that don't follow Conventional Commits.