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

@hardened/rules-risk

v0.1.2

Published

Production reliability risk rules for hardened — detect and auto-fix HTTP calls without timeouts, fetch without AbortSignal, floating promises, and more.

Downloads

40

Readme

@hardened/rules-risk

Production-reliability risk rules for hardened.

Seven deterministic AST-based rules that detect the kinds of unbounded-I/O patterns that cause production outages. Ships with the hardened CLI; published separately so rule authors can extend or replace the catalogue.

Rules shipped

| Rule | Severity | Auto-fix | Detects | | --- | --- | :-: | --- | | risk/http-no-timeout | error | yes | axios, got, ky, native http/https calls missing a timeout | | risk/db-no-query-timeout | error | yes | pg / mysql2 queries missing a statement timeout | | risk/prisma-no-timeout | error | yes | Prisma operations and $transaction calls missing a timeout option | | risk/fetch-no-abort-signal | warning | finding-only | fetch() calls without an AbortSignal | | risk/floating-promise | warning | finding-only | Promise-returning calls that nothing awaits, catches, or chains | | risk/await-in-loop | warning | finding-only | Sequential await patterns where parallelism may be intended | | risk/promise-all-no-settled | info | finding-only | Discarded Promise.all fan-outs where Promise.allSettled would be safer |

Each rule has deep documentation under docs/errors/.

Install

npm install @hardened/rules-risk

Usually you don't install this directly — the hardened CLI already bundles it.

Usage

import { Scanner, loadConfig } from "@hardened/core"
import { riskRules } from "@hardened/rules-risk"

const config = await loadConfig(process.cwd())
const scanner = new Scanner({ rules: riskRules, config, cwd: process.cwd() })
const findings = await scanner.run()

Status

Rules may add new patterns or tighten detection logic during 0.x. Rule IDs are stable once shipped.

Full docs + source

compactbench/hardened

License

Apache-2.0.