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

code-vitals

v1.1.11

Published

Enterprise-ready code quality and security analyzer for TypeScript & CI/CD pipelines

Readme

CodeVitals

CodeVitals is a lightweight CLI tool for TypeScript and JavaScript projects that helps teams maintain secure, clean, and reliable code. It combines dependency checks, dead code analysis, and YAML/Kubernetes configuration audits into a single, easy-to-use tool.

Key Features

  • Dependency Health Checks – Detect vulnerable or outdated packages.
  • Dead Code Analysis – Identify unused exports, imports, and variables.
  • YAML Security Checks – Detect unsafe patterns in CI/CD pipeline configurations.
  • Kubernetes Best Practices – Spot common misconfigurations and security risks.
  • CI/CD Friendly – Exit codes and JSON reports make integration effortless.

Ideal for enterprise and team projects that want to enforce safe, maintainable, and scalable code practices.

Installation

Install globally via NPM:

npm install -g code-vitals

Usage

Run CodeVitals in the root of your project:

# Check dependencies for vulnerabilities and outdated packages
code-v deps

# Analyze dead code, unused variables, and unsafe patterns
code-v code

# Show CLI help
code-v help

Reports

CodeVitals generates JSON reports at the root of your project:

  • codeVitals-ts-report.json: TypeScript dead code and unused imports/exports.
  • codeVitals-yaml-report.json: YAML unsafe patterns detection.
  • codeVitals-k8s-report.json: Kubernetes security and and configuration issues.

Reports are automatically overwritten on each run. If no issues are found, the files are removed.

CI/CD Integration

Easily integrate into your CI pipelines (GitHub Actions example):

name: CodeVitals Check

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  code-vitals:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "18"
      - run: npm install -g code-vitals
      - run: code-v deps
      - run: code-v code

The pipeline fails automatically if any vulnerabilities, dead code, or unsafe patterns are detected.

Project Structure

bin/                 # CLI entry point
src/
  runDeadCodeCheck/
    index.ts          # Dependency check runner
    tsAnalyzer.ts     # Dead code analysis
    astParser.ts      # TypeScript AST parser
    yamlAnalyzer.ts   # YAML unsafe patterns analysis
  runDependencyCheck/
    index.ts          # Dependency check runner
    npmAudit.ts       # NPM audit
    outdated.ts       # Outdated packages check
  utils/
    logger.ts         # Logging utilities
package.json
tsconfig.json
README.md

Why CodeVitals?

  • All-in-one – Dependency, dead code, and config audits in a single tool.
  • Lightweight & Native – No extra dependencies, fully Node.js-based.
  • CI/CD Ready – JSON reports and exit codes for automated pipelines.
  • Easy to Use – Minimal setup, intuitive CLI.

License

MIT License