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

lean-dev

v0.1.6

Published

Universal AI dev efficiency toolkit — reduce token usage across Claude Code, Cursor, Copilot, and Codex

Readme

lean-dev

Universal AI dev efficiency toolkit for Claude Code, Cursor, GitHub Copilot, and Codex.

Reduces token usage via smart context management, model switching, and session discipline.

Install

npx lean-dev init

Options

npx lean-dev init --tool claude-code
npx lean-dev init --tool cursor
npx lean-dev init --tool copilot
npx lean-dev init --tool codex
npx lean-dev init --all

Update existing files

npx lean-dev update

Prompts you to select which files to overwrite. Useful after a new lean-dev release.

npx lean-dev update --tool claude-code   # specific tool
npx lean-dev update --all                # all tools
npx lean-dev init --force                # overwrite everything, no prompts

What it does

Copies lean configuration templates into your project:

| Tool | Files Created | |------|---------------| | Claude Code | CLAUDE.md, .claudeignore, .claude/commands/lean-dev.md, .claude/docs/STACK.md, .claude/docs/ARCHITECTURE.md | | Cursor | .cursorrules, .cursor/rules/lean-dev.mdc | | GitHub Copilot | .github/copilot-instructions.md | | Codex | AGENTS.md |

Files that already exist are never overwritten.

Claude Code — /lean-dev command

After npx lean-dev init --tool claude-code, type /lean-dev in Claude Code.

[IG] Generate / update agent ignore (eg: .claudeignore)
[ST] Generate STACK.md and ARCHITECTURE.md
[MD] Restructure CLAUDE.md
[CM] Compact session
[LD] Start lean dev session
[HK] How to use lean-dev

Recommended setup order

/lean-dev → IG   generate ignore file
/lean-dev → ST   scan project and generate STACK.md + ARCHITECTURE.md
/lean-dev → MD   tighten CLAUDE.md
/lean-dev → LD   start working

During a session

| Command | Action | |---------|--------| | LD | Start a focused task — one task per session | | CM | Compact when context gets large | | /clear | Start fresh for a new task |

How it works

IG — Scans the project using Haiku. Adds obvious artifacts silently (node_modules, dist, .git). Asks before adding anything uncertain ("Ignore Docker files?").

ST — Uses Haiku to read dependency manifests (package.json, go.mod, Cargo.toml, etc.) and scan directory structure. Generates STACK.md and ARCHITECTURE.md from what it finds — no placeholders. You choose which to update.

MD — Reads CLAUDE.md and proposes a leaner version. Shows the diff, asks before writing.

LD — Asks for one task, loads only relevant files, states the model tier for each step.

Model Switching

| Task | Model | |------|-------| | File search, grep, read | Haiku / small model | | Planning, analysis | Sonnet / mid model | | Writing / editing code | Sonnet / mid model | | Complex refactor, architecture | Opus / large model |

Baked into each tool's config as behavioral guidance.

Contributing

See CONTRIBUTING.md.

License

Copyright 2025 Nipun R

Licensed under the Apache License, Version 2.0. You may use, distribute, and modify this software freely. Derivative works must carry the same license and attribution notices.