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

@georgios-drivas/devlens

v1.1.0

Published

CLI tool that scans your project and generates an agent-friendly JSON manifest of your structure, entrypoints, stack, and environment.

Readme

devlens

Generate a single JSON file that gives any AI agent an accurate picture of your project.

When you drop an agent into an unfamiliar codebase, it wastes context figuring out the basics — what package manager is in use, where the entry files are, which env vars are missing, what tools are configured. devlens scans your project once and produces a concise, structured manifest so agents can skip that discovery phase entirely.

Installation

# No install needed
npx @georgios-drivas/devlens

# Or globally
npm install -g @georgios-drivas/devlens

Usage

Run in your project root:

devlens                        # writes project-structure.json
devlens --json                 # prints to stdout
devlens --out context.json     # custom output path
devlens --help

Commit project-structure.json alongside your code, or generate it on-the-fly and pipe it into your agent's context. Either works.

Output

{
  "project": {
    "name": "my-app"
  },
  "runtime": {
    "packageManager": "pnpm",
    "languageHints": ["typescript"]
  },
  "dependencies": {
    "production": ["express", "react"],
    "development": ["eslint", "typescript", "vitest"],
    "categories": {
      "ui": ["react"],
      "server": ["express"],
      "testing": ["vitest"]
    }
  },
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "test": "vitest"
  },
  "config": {
    "tools": ["eslint", "typescript", "vite", "vitest"]
  },
  "codebase": {
    "sourceFiles": 42,
    "testFiles": 8,
    "linesOfCode": 3800
  },
  "environment": {
    "declared": ["DATABASE_URL", "STRIPE_KEY"],
    "used": [{ "name": "DATABASE_URL", "files": ["src/lib/db.ts"] }],
    "unused": [{ "name": "STRIPE_KEY", "declaredIn": [".env"] }],
    "missing": [{ "name": "REDIS_URL", "referencedIn": ["src/cache.ts"] }]
  },
  "source": {
    "hasDocker": true,
    "hasCLI": false,
    "hasTests": true,
    "hasCI": true
  }
}

What each field tells an agent

runtime — How to install dependencies and run the project. languageHints signals whether to expect .ts files and type errors.

dependencies.categories — Pre-bucketed into ui, server, and testing so an agent can reason about the stack without parsing all deps itself.

config.tools — The active toolchain: typescript, vite, vitest, eslint, prettier. Tells an agent which configs exist and what commands are valid.

codebase — High-level repository metrics: source file count, test file count, and total lines of code. This helps an agent estimate project size and complexity at a glance.

environment — The most immediately actionable section. missing lists every env var referenced in code but absent from any .env file — a common source of runtime failures an agent should flag or fix before doing anything else. unused surfaces declared vars that are never read.

source — Four booleans that answer common agent questions up front: is there a containerization setup, a CLI entry, a test suite, a CI pipeline?

Ignored by default

Directories: node_modules, .git, .next, dist, build, coverage, .turbo, .vercel, out

Path segments: generated/, src/generated/, prisma/generated/

Contributing

Issues and PRs welcome at github.com/GeorgiosDrivas/devlens.