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

complexity-cli

v1.1.0

Published

A CLI tool for managing project complexity and knowledge maps

Downloads

327

Readme

complexity-cli

npm package

A CLI tool for managing project complexity and knowledge maps. Perfect for tracking what developers need to know to work on your project, with AI-friendly workflows.

Installation

npm install -g complexity-cli

Local Development

If you want to contribute or develop locally:

git clone https://github.com/SamBWagner/complexity-cli.git
cd complexity-cli
npm install
npm run build
npm link

Usage

Initialize a Complexity Map

Create a new COMPLEXITY.md file in your project:

complexity init --name "My Project"

Or run without flags to be prompted for the project name:

complexity init

Add Concepts

Add technologies, frameworks, or concepts to your complexity map:

# Basic usage
complexity add "TypeScript" 3 backend

# Without area (will use "___" as placeholder)
complexity add "TypeScript" 3

# Using --level flag
complexity add "TypeScript" --level 3 backend

Criticality Levels:

  • 3 = Critical: Can't do meaningful work without it
  • 2 = Important: Will encounter regularly; gaps will slow you down
  • 1 = Situational: Comes up occasionally or is abstracted away

List Concepts

View all concepts in your complexity map:

complexity list

The list command automatically searches upward through directories (stopping at git repo root) to find COMPLEXITY.md, so you can run it from any subdirectory.

Update Concepts

Modify existing concepts:

# Update level
complexity update "TypeScript" --level 2

# Update area
complexity update "TypeScript" --area "frontend"

# Update name
complexity update "TypeScript" --name "TypeScript/JavaScript"

# Update multiple properties
complexity update "TypeScript" --level 3 --area "fullstack"

Remove Concepts

Remove a concept from the map:

complexity remove "TypeScript"

# Skip confirmation prompt
complexity remove "TypeScript" --force

Get AI Prompt

Generate a prompt for AI tools to help analyze your project:

complexity prompt

This outputs a comprehensive prompt that instructs an AI to:

  • Analyze your project's complexity
  • Use the complexity CLI to maintain consistency
  • Consider all relevant technologies and concepts

Note: I really recommend using a larger, thinking AI model like Claude Opus or GPT 5.x. This tool's duty isn't the analysis of the project. But, rather the maintenance of a simple markdown document. Bigger model, better time.

Features

  • Simple CLI: Easy-to-use commands for managing complexity documentation
  • Validation: Duplicate detection and confirmation for new areas
  • Auto-formatting: Automatically updates all sections and statistics
  • Sorting: Concepts sorted by criticality (3→1), then alphabetically
  • Git-aware: complexity list searches upward to git repo root
  • AI-friendly: Designed to be used by AI agents for analysis

File Format

The tool generates and maintains a COMPLEXITY.md file with:

  • Summary Statistics: Total concepts, areas, and breakdown by criticality
  • Tiered Sections: What you NEED, SHOULD, and EVENTUALLY learn
  • Full Reference Table: Complete sortable table of all concepts

Example output:

# Project Complexity & Knowledge Map

A guide to what you need to know to work on My Project, broken into three tiers.

> **5 technologies/concepts** across 3 areas **2 critical** **2 important** **1
> situational**

---

## **What you NEED to know to do any meaningful work**

- Node.js
- TypeScript

## **What you SHOULD know to be very helpful**

- React
- PostgreSQL

## **What you should EVENTUALLY learn for specific areas**

- Docker

---

## Full Reference

| Topic      | Area     | Criticality (1-3) |
| ---------- | -------- | ----------------- |
| Node.js    | backend  | 3                 |
| TypeScript | backend  | 3                 |
| PostgreSQL | backend  | 2                 |
| React      | frontend | 2                 |
| Docker     | devops   | 1                 |

License

MIT