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

code-auger

v0.1.6

Published

A CLI tool for managing code auto-generated by your dependencies.

Downloads

105

Readme

Copyright © 2026 Gage Sorrell. Released under the MIT license.

Code Auger

Purpose. A lightweight CLI tool for adding auto-generated code to your dependents (likewise, from your dependencies).

Usage

With dependencies that support code-auger

If a dependency of your package supports code-auger, then to use its code-generating features, first install the code-auger CLI,

npm init code-auger

This will add code-auger as a devDependency, and will create a default code-auger.config.ts in the root of your package.

To see what dependencies support code-auger, run the ls command,

npx code-auger ls

All dependencies currently installed that support code-auger will have basic entries in the code-auger-config.ts file when it is created.

To make supported dependencies write their auto-generated code to your package, simply run the code-auger command (via npx or an npm script),

    "scripts": {
        "prebuild": "code-auger",
        // ...
    }

The init command above adds the above prebuild script in your package.json (if your package.json has a build script and no pre-existing prebuild script).

The --pkg flag allows you to limit which packages generate code when code-auger is run. For example,

    "scripts": {
        "prebuild": "code-auger --pkg reactive-event",
        // ...
    }

will cause only the reactive-event dependency to generate code for your package.

To limit which modules a given package generates, use the --pkg flag followed by exactly one package (you may use the --pkg flag multiple times in the same command), then specify the modules that you want that dependency to generate for you with the --module flag (delimited by a space). For example,

    "scripts": {
        "prebuild": "code-auger --pkg reactive-event --module registrar preload",
        // ...
    }

[!TIP] The ls command mention earlier will also state the names of the modules that it can generate for you, if the package can generate more than one module.

Add code-generation support to your package

To offer code-generation abilities to your users via code-auger, install code-auger like in the previous subsection, but with the --author flag (please note the -- before the flag),

npm init code-auger -- --author

This will add code-auger as a devDependency to your package, and will generate a code-auger.author.config.ts to the root of your package.