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

@meza/adr-tools

v2.0.1

Published

> This is a Typescript fork of Nat Pryce's [ADR-TOOLS](https://github.com/npryce/adr-tools). >There are a few other forks out there which do some parts of the original tool but none actually do it fully. >This does. >More documentation to follow very soon

Readme

ADR-TOOLS

This is a Typescript fork of Nat Pryce's ADR-TOOLS. There are a few other forks out there which do some parts of the original tool but none actually do it fully. This does. More documentation to follow very soon!

Using ADRs

If you’re interested in reading more about what ADRs are and why they’re important, check this article out.

ADR Location Convention

By convention we store the decisions in doc/adr (this repo is configured via .adr-dir).

You can also check where the directory is by inspecting the .adr-dir file’s contents.

ADR CLI in node land

Managing the files and templates by hand is laborious and is not expected from anyone. We have a tool capable of handling that.

You can install it by running

npm install --save-dev @meza/adr-tools

This will give you the following shorthands:

Creating new records

adr new A new decision the team has made

This will automatically figure out the numbering sequence, get the correct filename format and use the title inside of an ADR template.

By default, adr new only writes the file. To open it after creation, pass --open:

adr new --open A new decision the team has made

You can also force a specific opener via --open-with (optionally with args):

adr new --open-with "code --wait" A new decision the team has made

When --open is set and --open-with is not, the tool prefers VISUAL, then EDITOR (but ignores npm-injected editor defaults), then falls back to the OS default opener.

Superseding previous decisions

We work in an agile environment where we aim to fail fast. Some of our decisions will turn out to be invalid within a new context. In those situations we would want to record a new decision to supersede our previous one.

Let’s say we had a decision “0003-use-jest-for-testing.md” but we recently learned that vitest is faster. Then we would want to record that but also update 0003 to reflect the fact that it’s no longer valid.

adr new -s 3 Use vitest for testing

The -s flag tells the tool to update record #3 with a link to the newly created decision.

Linking decisions

Sometimes there are situations when a new decision has another type of link to a previous record and not a supersede.

That can be expressed as follows:

adr new -l "3:Amends:Amended by" use jest only for pact testing

This will link the new and old issues together. The old one will get a link looking like “Amended by: Use jest only for pact testing” while the newly created ADR will have a section saying: “Amends: Use Jest For Testing”. Both with the appropriate numbering and navigational links set up.

Other things

There’s more to the tool. You can get help with

adr help

Conventions

An ADR file MUST have a # title at the top and a ## Status header.

Local Development

See CONTRIBUTING.md for the recommended local setup and verification commands.

Commits

This project uses conventional commits. See conventional-commits.

There are git hooks that check the commit messages and enforce the commit rules. There is a helper tool to make it easier to create commits when unfamiliar with the rules:

yarn commit

This will use the commitlint prompt tool to help you create commits.