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

project-health-analyzer

v1.0.13

Published

> A friendly CLI tool that **analyzes your project’s health**, shows rich reports (console + JSON + PNG + HTML), and even helps you **safely upgrade dependencies**.

Readme

Project Health Analyzer

A friendly CLI tool that analyzes your project’s health, shows rich reports (console + JSON + PNG + HTML), and even helps you safely upgrade dependencies.

🟢 This package helps maintain healthy & future-ready projects by detecting issues early and guiding developers toward improvements.


🚀 Installation

Option 1: Run via npx (recommended)

You don’t need to install it globally if you use npx.

npx project-health-analyzer

Option 2: Run via npm

npm i -g project-health-analyzer

✨ What it does

project-health-analyzer runs inside your project folder and gives you a 360° health check:

🧠 Core Insights

  • Project Size Overview

    • Total project size in MB
    • Helps you spot bloated repos early
  • Tech Stack Detection (GitHub-style)

    • Detects languages by file extensions (.ts, .js, .html, .scss, etc.)
    • Shows percentage usage per language (e.g. TypeScript (92%) | HTML (5%) | SCSS (3%))
  • Dependency Analysis (npm / yarn / pnpm)

    • Detects outdated dependencies
    • Shows current → wanted → latest versions
    • Separates:
      • Safe updates (same major version)
      • Major updates (breaking changes likely)
  • Unused Dependencies Detector

    • Scans your source code and flags dependencies that are never imported
    • Example:
      • Unused: moment, request
  • Project Bloat Radar

    • Finds folders that occupy the most space
    • Example:
      • assets/images (98 MB)
      • dist (22 MB)
      • screenshots (15 MB)

💚 Health & Trend Metrics

  • Overall Project Health Score (0–100)

    • Combines:
      • Outdated dependencies
      • Vulnerability count (if integrated)
      • Dead files (if integrated)
      • Project size
    • Lower score → more risk; higher score → healthier project
    • Shown in:
      • Console
      • JSON report
      • HTML + PNG report
      • Stylish badge at top of the report
  • Health Trend Over Time

    • Each scan is logged into .project-health-history.json
    • Shows last few scores, e.g.:
      • 62 → 68 → 74 → 81 → 87
    • Tells you if your project is:
      • 🚀 Improving
      • Declining
      • Stable

📊 Reports Generated

Every run of project-health-analyzer generates:

  • 🖥 Console Report

    • Quick summary box with:
      • Project size
      • Tech stack summary
      • Total outdated deps
      • Vulnerabilities count (if wired)
      • Dead files count (if wired)
      • Health score
      • Unused dependencies count
      • Biggest folder info
    • Plus:
      • Safe updates list
      • Major updates list
      • Health trend
  • 📁 JSON Report (machine-readable)

    • Location: logs/report-YYYY-MM-DDTHH-MM-SS.json
    • Contains:
      • All metrics
      • Upgrade summary
      • Trend data
  • 🌐 HTML Report

    • Location: logs/report-YYYY-MM-DDTHH-MM-SS.html
    • Clean HTML report rendering all sections
    • Used as a base for PNG
  • 🖼 PNG Snapshot Report

    • Location: logs/report-YYYY-MM-DDTHH-MM-SS.png
    • A visual snapshot of the full HTML report
    • Includes a badge-style Health Score bar

🔧 Smart Upgrade Assistant

The tool doesn’t just tell you what’s wrong — it helps you fix it:

  • Classifies dependency updates into:

    • 🟢 Safe updates (same major version → non-breaking)
    • 🔴 Major updates (breaking risk)
  • After the scan:

    • If outdated dependencies exist, it will:
      • Either ask you in the terminal:

        Do you want to update safe (non-breaking) dependencies now?

      • Or auto-apply updates if you use the --fix flag
  • Safe auto-fix behavior:

    • Only updates dependencies where:
      • currentMajor === latestMajor
    • Runs the appropriate command based on:
      • npmnpm install <pkg>@<latest>
      • yarnyarn add <pkg>@<latest>
      • pnpmpnpm add <pkg>@<latest>
  • To clear the old logs use --cleanflag


Keywords:
project health · dependency audit · unused dependencies · outdated packages · security analysis · auto fix · tech stack detection · project analytics · health score · cli tool · CI reporting · developer productivity