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

@introspect-cli/introspect

v0.1.0

Published

Your code, deeply analyzed. Multi-language code scanner with 432 detection rules, git intelligence, live server security scanning, and AI-powered insights.

Downloads

135

Readme

Introspect

Your code, deeply analyzed. Your server, thoroughly probed.

Multi-language code scanner with 432 detection rules, git intelligence, live server security scanning, and AI-powered insights. Scans GitHub repos, local projects, and ZIP uploads for security vulnerabilities, performance issues, dead code, and leaked secrets — across 13 languages.

npx introspect scan https://github.com/owner/repo

Installation

# Use directly (no install needed)
npx introspect scan https://github.com/owner/repo

# Or install globally
npm install -g introspect

Commands

introspect scan <url|path>

Scan a GitHub repository or local directory.

# Scan a GitHub repo
introspect scan https://github.com/expressjs/express

# Scan current directory
introspect scan .

# Scan specific folder
introspect scan /path/to/project

Output includes:

  • Overall health score (0-100)
  • Category scores: Security, Performance, Quality, Dead Code, Dependencies, Docs, Git Health
  • Issues sorted by severity with file locations
  • Before/after fix suggestions

introspect report --format <md|json|html>

Export the last scan result as a report file.

# Markdown report
introspect report --format md

# JSON report
introspect report --format json -o report.json

# Standalone HTML report (styled, dark theme)
introspect report --format html -o report.html

introspect review <file>

Scan a single file for issues. Optionally get AI-powered code review.

# Basic scan
introspect review src/app.ts

# With AI review (requires API key)
INTROSPECT_AI_KEY=your_key INTROSPECT_AI_PROVIDER=groq introspect review src/app.ts

introspect pr

Generate a pull request description from your current git diff.

INTROSPECT_AI_KEY=your_key INTROSPECT_AI_PROVIDER=groq introspect pr

introspect chat [url|path]

Interactive chat about your codebase with AI. Ask questions about scan findings, architecture, and code quality.

# Chat about a GitHub repo
INTROSPECT_AI_KEY=your_key INTROSPECT_AI_PROVIDER=groq introspect chat https://github.com/owner/repo

# Chat about last scanned repo
INTROSPECT_AI_KEY=your_key INTROSPECT_AI_PROVIDER=groq introspect chat

What It Detects

Code Scanning (432 Rules)

| Category | Rules | Examples | |---|---|---| | Security | 253 | SQL injection, XSS, CSRF, SSRF, command injection, secrets, weak crypto, deserialization, XXE | | Performance | 38 | N+1 queries (10 ORMs), blocking I/O, bundle bloat, missing indexes | | Code Quality | 29 | Deep nesting, long functions, magic numbers, complexity | | Secrets | 112 | AWS, GCP, Stripe, GitHub, OpenAI, Anthropic, private keys, DB URLs, JWT |

Git Intelligence (6 Checks)

  • Bus factor — single contributor risk
  • Code hotspots — frequently changed files
  • Velocity trend — commit activity trends
  • Stale files — untouched code
  • Team concentration — workload imbalance
  • Author ownership — who owns what

Languages Supported

JavaScript, TypeScript, Python, PHP, Ruby, Go, Java, C#, Rust, Kotlin, Swift, C++, Docker, Kubernetes, CI/CD configs


AI Features (Optional — BYOK)

All 432 rules work without any API key. For AI features, bring your own key:

export INTROSPECT_AI_KEY=your_api_key
export INTROSPECT_AI_PROVIDER=groq  # or openai, anthropic

| Provider | Cost | Get key at | |---|---|---| | Groq | Free | console.groq.com | | OpenAI | Paid | platform.openai.com | | Anthropic | Paid | console.anthropic.com |

Available AI Features

  • Senior Code Review — detailed feedback like a senior engineer
  • Shadow CTO — strategic advice and architecture recommendations
  • Blame Therapy — empathetic explanations + constructive fixes
  • Migration Planner — step-by-step migration plans
  • Onboarding Guide — new developer guide for the repo
  • Release Notes — changelog from scan findings
  • Code DNA — coding patterns and style analysis
  • Interview Questions — tech questions based on the codebase
  • Postmortem — incident-style report for critical issues
  • Codebase Chat — ask questions about your code
  • PR Summary — generate PR descriptions
  • Narrative Report — AI summary of scan findings

Custom Rules

Create .introspect/rules/ in your project with YAML rule files:

id: no-console-log
language: [javascript, typescript]
severity: medium
category: quality
pattern: "console\\.log\\("
message: "Remove console.log before committing. Use a proper logger instead."
fix:
  bad: "console.log(data)"
  good: "logger.info(data)"

Ignore Rules

Create .introspectignore in your project root:

# Skip specific rules
rule:magic-number
rule:file-too-long

# Skip files/folders
path:test/
path:*.test.ts
path:vendor/

Environment Variables

| Variable | Required | Description | |---|---|---| | GITHUB_TOKEN | For GitHub scans | Personal access token (public_repo scope) | | INTROSPECT_AI_KEY | For AI features | API key from Groq/OpenAI/Anthropic | | INTROSPECT_AI_PROVIDER | For AI features | groq, openai, or anthropic |


Web Dashboard

Introspect also has a web dashboard with radar charts, live scan progress, server security probing, and interactive results. See the full project on GitHub.


License

Free for personal and non-commercial use. See LICENSE for details.

Author

Kishan Patel