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

create-stackrules

v0.1.5

Published

One command to enforce clean architecture in any codebase. Detects your stack, patches ESLint, finds every violation.

Readme

create-stackrules

One command to enforce clean architecture in any codebase, any language.

Usage

Scan any codebase (any language)

npx create-stackrules clean

Works on JavaScript, TypeScript, Python, Go, Java, Ruby, Rust, Kotlin, PHP, C#, Swift.

Scans every source file, finds architecture violations, generates a markdown prompt you paste into Claude Code, Cursor, or any AI chat. The AI fixes everything.

  StackRules Clean

  Found 11 source files
    python: 11 files

  Found 11 violation(s):
    File too complex: 3
    Raw SQL query: 7
    Missing logging in service: 1

  Cleanup prompt saved to stackrules-cleanup.md

Add to JS/TS project (ESLint integration)

npx create-stackrules inject

This command:

  1. Detects your stack (Next.js, Supabase, Stripe, Express, etc.)
  2. Installs eslint-plugin-stackrules
  3. Patches your existing ESLint config (keeps your org rules intact)
  4. Creates .stackrules.json for org-level customization
  5. Adds lint scripts to package.json

Then run npx eslint . for real-time errors in VSCode.

Scaffold new project

npx create-stackrules init

What it catches

Regardless of language:

  • Service imports in wrong places — database, payment, email, AI SDKs imported outside services/
  • Missing logging — service files without structured logging
  • Raw SQL — queries that should use an ORM
  • Lint suppressioneslint-disable, # noqa, nolint, @SuppressWarnings
  • Complex files — 200+ line files that should be split
  • Route/controller bloat — handlers with direct DB calls and no logging

Supported languages

| Language | Extensions | Import detection | Logger detection | |----------|-----------|-----------------|-----------------| | JavaScript/TypeScript | .js .jsx .ts .tsx | import/require | console, winston, pino | | Python | .py | import/from | logging, logger, print | | Go | .go | import | log, zap, logrus | | Java | .java | import | Logger, LOG | | Ruby | .rb | require | logger, Rails.logger | | Rust | .rs | use/extern crate | log, tracing | | Kotlin | .kt | import | logger, Log | | PHP | .php | use/require_once | Log, error_log | | C# | .cs | using | (basic) | | Swift | .swift | import | (basic) |

License

MIT