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

@atlaspack/inspector

v0.0.49

Published

> _experimental quality, lacks verification and testing of certain features_

Readme

@atlaspack/inspector

experimental quality, lacks verification and testing of certain features

Usage

Run a production build, then:

npm install -g @atlaspack/inspector
inspector --target $APP_DIRECTORY/.atlaspack-cache

Overview

@atlaspack/inspector provides a UI for looking at atlaspack cache data, including bundle sizes and reasons why certain files are included in bundles.

Usage

  • this will only work with a cache that is built with the same version of atlaspack/* packages the inspector is using
atlaspack-inspector --target ./my-project-directory
# or
atlaspack-inspector --target ./my-project-directory/.atlaspack-cache

Please see "Building" and "Developing" to how to build this project.

Feature overview

Treemaps

@atlaspack/inspector renders tree-maps using the FoamTree library. Users can open tree-maps of the largest scale applications bundle graphs.

Treemap

  • Clicking a bundle will focus on all related bundles
  • Double clicking a bundle will open it for analysis on a drill-down page

Treemap drill-down

Bottom-up

When on the drill-down page, clicking a directory will "open" its contents and allow the developer to drill-down on the sizes.

The bottom panel will render tables with different ways of traversing the data and understanding why a certain directory or dependency has been included into the bundle.

Cache analysis

Cache inspector

A separate route shows raw cache information. At the moment this is simply a view where an atlaspack developer can open individual cache entries, but ideally it'd be expanded to render more semantic information about the cache, such as relationships between cache nodes.

Building

To build the inspector, first build the atlaspack repository:

yarn run build

Then build the inspector back-end and front-end with:

yarn workspace @atlaspack/inspector prepack

Developing

Example starting the server in development mode

yarn workspace @atlaspack/inspector dev --target $PWD/.parcel-cache

Example starting the frontend in development mode

yarn workspace @atlaspack/inspector-frontend dev

Testing

There are few unit-tests for the back-end and express integration tests in test/backend. Those will use mocha, sinon and superagent, mostly for consistency with the rest of this repository.

End-to-end tests are mostly visual regression tests on test/e2e-test. Those tests will build a project, spawn an inspector server and open its front-end on a web-browser, then check it is rendering correctly.

Running unit tests:

yarn workspace @atlaspack/inspector test:unit

Running playwright end-to-end tests:

yarn playwright install-deps
yarn playwright install

yarn build
yarn workspace @atlaspack/inspector test:e2e

@atlaspack/inspector front-end

The inspector front-end is using @atlaskit/* packages from the Atlassian design system.

Its tech-stack at the moment is:

  • react
  • react-router
  • mobx
  • CSS modules
  • foamtree
  • react-query, and other tanstack packages