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 🙏

© 2024 – Pkg Stats / Ryan Hefner

metro-visualizer

v0.56.4

Published

Suite of visual analysis tools for the metro bundler

Downloads

275

Readme

Metro Visualizer

npm version

📊 The interactive visualizer for Metro 🚇

A friendly and versatile tool to visualize the bundler's work.

The goal of this project is to provide a suite of analysis tools for bundle sizes and dependencies, while also making Metro more transparent and fun to use for entry level developers.

Setup

  1. Install the metro-visualizer package in your project.

    yarn add metro-visualizer 
    npm install metro-visualizer --save 
  2. Enable the visualizer in your metro config. For a metro.config.js config file, add the following:

    module.exports = {
        // ...
        server: {
            // ...
            enableVisualizer: true
        }
    };
  3. Run metro and point your browser to http://localhost:8081/visualizer.

Overview

Dashboard for triggering builds

You can easily toggle options for your builds.

build-options

The bundler's performance and activity is shown graphically.

build-options

Dependency graph

Visualize a bundle's dependency graph. Search for modules to explore the graph incrementally.

build-options

build-options

Search for all the paths between two modules to better understand your bundle.

build-options

Customize the way the graph is displayed.

build-options

Development

Follow the Metro guidelines for contributing to the project. There's a utility script to facilitate development. It spawns a Metro server with the visualizer enabled on this package itself. Run it with yarn dev or npm run dev from the metro-visualizer folder and trigger builds as it is shown in the screenshots above.