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

@stratametriq/cli

v1.5.0

Published

Headless CLI and CI/CD DevSecOps Governance Gate for StrataMetriq

Readme

@stratametriq/cli — Headless DevSecOps & Architecture Governance CLI

npm version License: MIT

StrataMetriq helps engineering teams understand software architecture, predict the impact of code changes, and prevent risky deployments before they happen.

@stratametriq/cli is the standalone headless DevSecOps and Architecture Governance engine for StrataMetriq. It runs offline on your local machine or inside CI/CD pipelines to enforce architectural boundaries, detect production risks, and prevent security regressions before code is merged.


⚡ Quick Start (No Installation Required)

Run a complete 13-point DevSecOps and Architecture scan directly in your terminal:

npx @stratametriq/cli scan .

🛠️ All Available Commands & Usage Examples

1. Standard Local Scan

Analyze your current codebase and output a colorized summary table of project health, duplicate code pairs, circular dependency loops, and production risks:

npx @stratametriq/cli scan .

2. Pull Request Audit Mode (--diff)

Scan only files modified in your current branch against origin/main. Ideal for CI/CD pull request checks:

npx @stratametriq/cli scan . --diff origin/main --fail-on-high

3. Downstream Ripple Impact Analysis (impact)

Calculate exact downstream dependencies across APIs, database tables, and UI components before modifying a file:

npx @stratametriq/cli impact src/services/UserService.ts

4. Enterprise Architecture Configuration Wizard (init)

Generate a clean .stratametriqrc.json execution configuration file:

npx @stratametriq/cli init

To also generate custom architecture boundary & governance rules (stratametriq.rules.yml), pass --governance:

npx @stratametriq/cli init --governance

5. Export Security & Compliance Reports

Export machine-readable reports for GitHub Advanced Security, GitLab Security, or PR comment bots:

# Export OASIS SARIF v2.1.0 report (integrates into GitHub Advanced Security / Code Scanning tab)
npx @stratametriq/cli scan . --sarif stratametriq.sarif

# Export Markdown summary (ideal for GitHub Actions PR comments)
npx @stratametriq/cli scan . --md pr-report.md

# Export complete architecture graph JSON
npx @stratametriq/cli scan . --json architecture.json

🏛️ Enterprise Custom Architecture Governance (stratametriq.rules.yml)

Enforce organizational architecture standards across your monorepo or layered application. Define forbidden import boundaries in stratametriq.rules.yml:

version: 1
rules:
  - name: "UI layer cannot import Database layer directly"
    source: "src/ui/**"
    forbiddenTarget: "src/db/**"
    severity: "HIGH"
    message: "UI components must go through src/services/ or API endpoints."

  - name: "Domain isolation"
    source: "src/domain/**"
    forbiddenTarget: "src/infra/**"
    severity: "HIGH"
    message: "Domain layer must remain decoupled from infrastructure details."

When stratametriq scan . runs, any illegal import boundary violation triggers a HIGH severity failure along with clear 1-line 💡 Fix remediation instructions.


🚦 Quality Gates & CI/CD Flags

| CLI Flag | Description | CI/CD Pipeline Exit Behavior | | :--- | :--- | :--- | | --fail-on-high | Block build if any HIGH severity risk or custom governance rule is broken. | Exits 1 (Fails Pipeline) | | --fail-on-circular | Block build if any Circular Dependency loop is detected. | Exits 1 (Fails Pipeline) | | --max-circular <N> | Allow up to N circular dependency loops before failing pipeline. | Exits 1 if loops > N | | --min-health <N> | Block build if Project Health Score drops below N% (1–100). | Exits 1 if Health < N |


🤖 GitHub Actions Workflow Example

Create .github/workflows/stratametriq.yml in your repository:

name: StrataMetriq DevSecOps Audit
on: [push, pull_request]

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Run StrataMetriq Scan
        run: npx @stratametriq/cli scan . --diff origin/main --fail-on-high --sarif results.sarif

      - name: Upload SARIF to GitHub Advanced Security
        uses: github/codeql-action/upload-sarif@v3
        if: always()
        with:
          sarif_file: results.sarif

🌐 Polyglot Language Support

Out-of-the-box AST parsing and architectural mapping across:

  • JavaScript & TypeScript (.js, .ts, .jsx, .tsx)
  • Python (.py)
  • Java & Kotlin (.java, .kt)
  • Go (.go)
  • C# (.cs)

📄 License

MIT © StrataMetriq Engineering Team