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

debt-collector

v1.0.0-alpha.13

Published

a nodejs tool to identify, track and mesure technical debt

Readme

debt-collector

A nodejs util to identify, track and mesure technical debt in a project.

Note that debt-collector is an alpha version and you should consider that bugs may occur and API may change without warnings. As debt-collector is a tool that does not interfere with your code base, even buggy, it is relatively safe to use. Considering the previous informations, we recomend to install a fixed version of debt-collector as of now.

Developer Documentation

Prerequisites

  • Node.js >= 18
  • pnpm (recommended) or npm
  • Git

Installation

  1. Clone the repository:
git clone https://github.com/gael-boyenval/debt-collector.git
cd debt-collector
  1. Install dependencies:
pnpm install

Development Setup

  1. Build the project:
pnpm build
  1. For development with watch mode:
pnpm dev

Testing

The project uses Vitest for testing. Available test commands:

  • Run tests once:
pnpm test
  • Run tests in watch mode:
pnpm test:watch
  • Run tests with coverage:
pnpm test:coverage

Local Development and Testing

To test the CLI locally during development:

  1. Link the package globally:
pnpm link --global
  1. Now you can use the debt-collector command from anywhere to test your changes.

  2. To unlink when you're done:

pnpm unlink --global

Project Structure

debt-collector/
├── source/
│   ├── commands/     # CLI commands implementation
│   ├── components/   # React components for CLI UI
│   └── lib/         # Core library functionality
├── docs/            # Documentation
└── tests/           # Test files

Code Style

The project uses:

  • ESLint with XO React configuration
  • Prettier for code formatting
  • TypeScript for type safety

To lint your code:

pnpm lint

Building for Production

To create a production build:

pnpm build

The build output will be in the dist directory.

Contributing

  1. Create a new branch for your feature
  2. Make your changes
  3. Run tests and linting
  4. Submit a pull request

Troubleshooting

If you encounter any issues:

  1. Make sure you're using Node.js >= 18
  2. Clear your node_modules and reinstall dependencies:
rm -rf node_modules
pnpm install
  1. Check if the package is properly linked if testing locally:
which debt-collector