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

risk-lint

v1.0.4

Published

CLI tool to detect risky AI-generated code patterns

Readme

risk-lint


What Is risk-lint?

risk-lint scans JavaScript and TypeScript projects for risky patterns such as leaked secrets, debug leftovers, weak TypeScript usage, noisy comments, oversized files, and build failures.

By default it focuses on files changed in git, so it stays fast and useful in daily development.

Quick Start

Run without installing:

npx risk-lint

Or install globally:

npm install -g risk-lint
risk-lint

Add a reusable npm script to your project:

npx risk-lint init
npm run risk

Scan the whole project:

risk-lint --all

Why Use It?

| Signal | What it helps catch | | --- | --- | | High-risk secrets | API keys, tokens, and committed .env files | | Debug leftovers | debugger and console.* calls before deploy | | TypeScript weak spots | any usage that can hide bugs | | Unfinished work | TODO, FIXME, and HACK comments | | Maintainability drift | Source files growing past 500 lines | | Build confidence | Syntax and build failures from your package scripts |

Example Output

Clean project? You get a clean result and can move on.

Checks

| Level | Check | | --- | --- | | High | Possible OpenAI, Google, AWS, and Telegram tokens | | High | .env files | | High | debugger statements | | High | Build or syntax failures from npm run build, pnpm build, or yarn build | | Medium | console.log, console.warn, console.error, and console.debug | | Medium | TypeScript any annotations | | Medium | Files over 500 lines | | Low | TODO, FIXME, and HACK comments |

CLI Usage

# Scan changed files only
risk-lint

# Scan the entire project
risk-lint --all

# Use through npm without installing
npx risk-lint

# Add "risk": "risk-lint" to package.json scripts
npx risk-lint init

Ignored Paths

risk-lint skips common generated, dependency, and build folders:

node_modules
dist
build
.next
.nuxt
.astro
.vercel
.output
coverage
.git
*.d.ts
*.min.js

CI Example

Add a script to your package.json:

{
  "scripts": {
    "risk": "risk-lint"
  }
}

Then run it in CI:

npm run risk

Local Development

npm install
npm run build
npm start

Run the TypeScript source directly while developing:

npm run dev

Scan the full project while developing:

npm run dev -- --all

Publishing

Before publishing to npm:

npm install
npm run build
npm pack --dry-run
npm publish

The package publishes the compiled dist folder, this README, and the MIT license.

Feedback

Have an idea or found a bug?

  • 🐛 Open an Issue
  • 💡 Start a Discussion
  • ⭐ Star the project if it helps you

Contributions are always welcome.

License

MIT