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

dapi-cli

v1.1.1

Published

CLI debugger for AI agents — attach by PID, auto-context on every stop, multi-session

Downloads

225

Readme

dapi

Let your AI agent debug like a human developer.

dapi ships two things:

  • An agent skill — teaches your AI agent when to reach for the debugger, how to form a hypothesis, and how to confirm it with a single eval. Install once, works on every project.
  • The dapi CLI — a stateless CLI wrapper around the Debug Adapter Protocol (DAP). Set breakpoints, inspect runtime state, attach to running servers by PID — no IDE, no restart, no guesswork.

Every stop returns auto-context: location + source snippet + locals + stack + output in one shot. No follow-up calls needed.

Supports Python, Go, JavaScript/TypeScript, Rust, C, and C++.


Install the Skill

npx skills install anuk909/dapi

Install the CLI

npm install -g dapi-cli

Or zero-install — no setup needed:

npx -y dapi-cli start app.py --break app.py:25

Requires Node.js >= 18.


Quick Start

Debug a script

dapi start app.py --break app.py:25
# → paused at calculate() · app.py:25 [breakpoint]
#   Locals, stack, source snippet — all returned automatically

dapi eval "type(data[0]['age'])"   # confirm your hypothesis
dapi continue                      # next breakpoint
dapi close

Attach to a running server

ps aux | grep uvicorn
dapi attach --pid 12345 --break routes.py:42
curl localhost:8000/api/endpoint   # trigger the code path
dapi continue                      # waits for breakpoint hit
dapi eval "request.body"
dapi close                         # detaches, server keeps running

Commands

| Command | Description | |---------|-------------| | start <script> | Start a debug session | | attach --pid <PID> | Attach to a running process by PID | | attach [host:]port | Attach to an existing debug server | | step [over\|into\|out] | Step (default: over) | | continue | Resume / wait for next breakpoint | | context | Re-fetch auto-context without stepping | | eval <expression> | Evaluate in current frame | | vars | List local variables | | stack | Show call stack | | output | Drain buffered stdout/stderr | | break <file:line[:cond]> | Add breakpoint mid-session | | status | Show session state | | close | End the debug session |

See docs/cli-reference.md for all flags and multi-session usage.


Supported Languages

| Language | Extension | Adapter | Setup | |----------|-----------|---------|-------| | Python | .py | debugpy | auto-installed on attach --pid | | JavaScript/TypeScript | .js .ts | js-debug | Auto-installed on first use | | Go | .go | Delve | go install ...dlv@latest | | Rust/C/C++ | .rs .c .cpp | CodeLLDB | CODELLDB_PATH env var |

See docs/languages.md for language-specific setup details.


Credits

dapi is based on JoaquinCampo/agent-debugger (multi-language DAP support, attach by PID) and incorporates design ideas from AlmogBaku/debug-skill (auto-context, output buffering, multi-session).