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

@api-extractor-tools/change-detector

v0.1.0

Published

Detects changes between two API Extractor rollup files

Readme

Change detector

npm version

This hybrid package (CLI / library) analyzes a pair of declaration file rollups generated by @microsoft/api-extractor and provides a detailed report of the degree of change found between them. The intended use of this tool is to provide library authors with detailed guidance (and actionable explanations) around how they should represent a given change using Semantic Versioning.

Version comparison example

In a given git repo, a developer is working on a publishing a new version of their library. For now, let's ignore how we obtain them, but we end up with .d.ts rollups for

  • The public version of their library at v1.1.0
  • The public version of their library at a yet-to-be-versioned next release they're currently preparing.

If, through analysis of the old and new .d.ts rollups, we found

// old
/**
 * Greet a planet!
 * @public
 */
export function greet(planet: 'earth' | 'mars'): string

and

// new
/**
 * Greet a planet!
 * @public
 */
export function greet(planet: 'earth' | 'mars', prefix?: string): string

We could regard recommend this change as compatible with a MINOR release. New functionality has been added and so the API signature changed, but it should not interfere with established use of the library. We'd recommend a version of 1.2.0

But if instead in the new rollup we found

// new
/**
 * Greet a planet!
 * @public
 */
export function greet(planet: 'earth' | 'mars', prefix: string): string

The fact that the new parameter is not optional means this should be modeled as a MAJOR release. Established users who engage with this function must change their code to align with the new contract.

These comparisons should be made using the TypeScript compiler API, through performing a type equivalence check on a per-exported-symbol basis.

Ultimately this tool should generate a very clear report, describing what the overall recommendation of what the version expression of the yet-to-be-published version of the library should be, and a clear list of the changes that were identified and how they were incorporated into arriving at the recommendation.