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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gptdd

v1.0.1

Published

_A single-file, test-driven-development feedback loop with GPT 🌀_

Downloads

5

Readme

gptdd 🧪

A single-file, test-driven-development feedback loop with GPT 🌀

How it Works

Given command which runs a test and a file to edit , gptdd feeds the test results to GPT4, requests a fix, and offers the user the option to apply the fix.

💭 It would be amazing to build this in at the test runner/IDE-level, but in the interest of it being language and test-runner agnostic, it's a standalone script. If you're interested in building an IDE plugin, please reach out!

gptdd demo fast

Usage

npx gptdd \
  --fileToFix lib/myFunc.ts \
  --testToRun "pnpm vitest run lib/myFunc.test.ts" \
  --apiKey "sk-..."

CLI Options

| Option | Description | | ----------------- | -------------------------------------------------------- | | --fileToFix, -f | The file to edit. | | --testToRun, -t | The command to run once to get the initial test results. | | --apiKey, -a | Your OpenAI API key. |

Specific Examples

The following examples specific to your language/test-runner. If you don't see what you're looking for, please contribute!

Javascript - Vitest

npx gptdd \
  --f lib/myFunc.ts \
  --t "pnpm vitest run lib/myFunc.test.ts" \
  --a "sk-..."

Javascript - Jest

npx gptdd \
  --f lib/myFunc.ts \
  --t "pnpm jest examples/myFunc.test.ts" \
  --a "sk-..."

Development

We recommend using pnpm. Clone the repository, run pnpm install. Then run pnpm link --global to make the gptdd command available globally. From there, you can make tweaks and test them out by running gptdd in a directory with a test and file to fix.

Contributing

We strongly welcome contributions of any kind- simply open a PR explaining what you've changed and why and we'll go from there.