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

@mattgraba/dev-toolkit

v2.1.0

Published

Dev Toolkit — an AI-assisted developer CLI for analyzing errors, debugging issues, and scaffolding projects. BYOK-first; optional hosted mode.

Readme

Dev Toolkit

An AI-assisted developer CLI for analyzing errors, explaining and fixing code, generating boilerplate, and getting terminal commands — from your terminal, with your own OpenAI key.

Features

  • BYOK-first — bring your own OpenAI key; no account, no server, your code never touches third-party infrastructure beyond OpenAI itself
  • Project-aware analysis — optionally include surrounding files as context (gitignore-respecting, credential-file denylist, capped at 50 files / 20KB each)
  • Six AI commands — analyze, explain, fix, generate, scaffold, terminal
  • Local history — queries are saved to ~/.dev-toolkit/history.json (BYOK mode), or server-side if you run the optional self-hosted server
  • Suggestion-only terminal commands — the terminal command prints suggested shell commands; it never executes anything

Installation

npm install -g @mattgraba/dev-toolkit

Verify:

devtk --help

Quick Start (BYOK)

# Set your OpenAI API key (stored locally, owner-only file permissions)
devtk config set-key sk-your-openai-api-key

# Analyze a file
devtk analyze -f ./src/buggy.js -l javascript

Your key is stored at ~/.dev-toolkit/config.json and calls go directly to OpenAI. The OPENAI_API_KEY environment variable takes precedence over the config file if both are set.

CLI Reference

| Command | Description | Key flags | | ---------- | ------------------------------------------------ | ------------------------------- | | config | Manage configuration (set-key, remove-key, show) | — | | analyze | Analyze buggy code → explanation + fix | -f <file> -l <language> | | explain | Plain-English explanation of code | -f <file> -l <language> | | fix | Corrected version of broken code | -f <file> -l <language> -o <out> | | generate | Generate code from a description | -d <description> -o <out> | | scaffold | Scaffold a React component | -n <name> -o <out> | | terminal | Suggest terminal commands for a goal | -g <goal> | | history | View past queries (local file or server) | — | | login | Authenticate with a self-hosted server (optional) | — |

Context-aware mode

devtk analyze -f ./src/index.js -l javascript --context

--context scans nearby .js/.ts/.json files and includes them in the prompt. The scan respects .gitignore, skips dotfiles and credential-shaped filenames (*.pem, *.key, id_rsa*, *credential*, *secret*, …), and is capped at 50 files of up to 20KB each.

Optional: Self-Hosted Server

The repo includes a full backend (Express API with JWT auth, per-user rate limiting, and MongoDB history) and a React web client. There is no public hosted instance — the server exists as a tested, self-hostable reference implementation and a demonstration of the project's backend engineering. If you run your own:

export DEV_TOOLKIT_API_URL=https://your-server.example.com
devtk login
devtk analyze -f ./src/buggy.js -l javascript

See docs/CONFIGURATION.md for server setup. BYOK is the way to use the tool day to day.

| | BYOK | Self-hosted server | |---|---|---| | Account required | No | Yes (on your server) | | OpenAI key | Yours, local | Your server's | | History | Local file | Server + web UI | | Privacy | Key and code stay local (OpenAI only) | Requests pass through your API |

Architecture

BYOK:         CLI ──────────────────────────────▶ OpenAI API

Self-hosted:  CLI ──┐
                    ├──▶ Express API (JWT auth, per-user rate limiting)
        Web client ─┘         │
                              ├──▶ OpenAI API
                              └──▶ MongoDB (users, history)

See docs/ARCHITECTURE.md for the full picture, and docs/RETROSPECTIVE.md for an honest audit of the v1 codebase and what v2 fixed.

Configuration

Config file: ~/.dev-toolkit/config.json (created with owner-only permissions; migrated automatically from ~/.dev-helper/ if you're upgrading).

| Field | Purpose | |-------|---------| | openaiApiKey | Your OpenAI key (BYOK mode) | | model | OpenAI model for BYOK mode (default gpt-4o-mini) — devtk config set-model <model> | | token | JWT from devtk login (self-hosted server mode) | | apiUrl | Your self-hosted server's URL |

Environment variables: OPENAI_API_KEY (overrides config key), DEV_TOOLKIT_MODEL (overrides model), DEV_TOOLKIT_API_URL (overrides API URL).

For self-hosting the server, see docs/CONFIGURATION.md.

Development

npm install          # CLI deps
npm test             # CLI tests
cd server && npm install && npm test   # server tests

Contributing

Pull requests are welcome. Please open an issue first to discuss proposed changes.

License

MIT © Matt Graba