A tool based on D3.js for analyzing/visualizing webpack bundle/stats or electrode.io project
Last updated 4 years ago by jchip .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install electrode-electrify 
SYNC missed versions from official npm registry.

electrify NPM version Build Status Dependency Status

What is Electrify?

Electrify is an webpack visualizer tool for visualizing and analyzing Webpack bundles, it is a UI tool based on D3.js for visualizing the module tree of electrode + webpack project bundles. It's especially handy for catching large and/or duplicate modules which might be either bloating up your bundle or slowing down the build process.

Checkout a live working DEMO.



Electrify lives on npm, so if you haven't installed npm already make sure you have node installed on your machine first.

Installing should then be as easy as:

sudo npm install -g electrode-electrify

Command-Line Interface

electrify [stats-bundle(s)...] {options}

  -h, --help    Displays these instructions.
  -O, --open    Opens viewer in a new browser window automatically
  -m, --mode    the default file scale mode to display: should be
                either "count" or "size". Default: size

When you install electrify globally, electrify command-line tool is made available as the quickest means of checking out your bundle. As of electrode-electrify@v1.0.0, the tool takes any webpack-stats object example as input and spits out a standalone HTML page as output.

You can easily chain the stats file into another command, or use the --open flag to open electrify in your browser automatically:

For example:

electrify build/stats.json --open


You can switch between multiple color palettes, most of which serve to highlight specific features of your bundle:

Structure Highlights

Structure Highlights

Highlights node_modules directories as green and lib directories as orange. This makes it easier to scan for "kitchen sink" modules or modules with lots of dependencies.

File Types

File Types

Highlights each file type (e.g. .js, .css, etc.) a different color. Helpful for tracking down code generated from a transform that's bloating up your bundle more than expected.



Nothing particularly special about these palettes – colored for legibility and aesthetics respectively.

Search By Filename

Search by filename to get to the exact location of the file along with size that file is contributing to the Javascript bundle. Props to @jherr for implementing the Search functionality.


Apache-2.0 © WalmartLabs
Built with :heart: by Team Electrode @WalmartLabs.

Other useful bundle/stats viewers

Current Tags

  • 2.1.1-0                                ...           beta (4 years ago)
  • 1.2.2                                ...           latest (4 years ago)

14 Versions

  • 1.2.2                                ...           4 years ago
  • 2.4.1                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.1-0                                ...           4 years ago
  • 2.1.0-0                                ...           4 years ago
  • 2.0.0-0                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Today 0
This Week 2
This Month 4
Last Day 2
Last Week 0
Last Month 3
Dependencies (14)
Dev Dependencies (14)

Copyright 2014 - 2017 © taobao.org |