gitwtfhub

wtf is jsize?

gaearon/jsize — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2017-07-27

3JavaScriptAudience · developerComplexity · 1/5DormantSetup · easy

TL;DR

A command-line tool that shows the real size of any npm package, both minified and gzip-compressed, before you commit to installing it.

Mindmap

mindmap
  root((jsize))
    What it does
      Shows package size
      Minified size
      Gzip size
      Per file breakdown
    Tech stack
      Node CLI
      npm registry
    Use cases
      Compare packages
      Audit dependencies
      Check peer deps
    Audience
      Frontend developers
      Team leads
    Features
      Scoped packages
      Verbose mode
      Multiple packages at once

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Check how much a package like jquery or lodash will add to your app before installing it.

REASON 2

Compare two competing packages to pick the lighter one for a faster app.

REASON 3

Audit a project's dependencies to find which ones are bloating the bundle.

REASON 4

Check a package together with its peer dependencies, like react-dom with react, to see their combined size.

What's in the stack?

Node.jsCLInpm

How it stacks up

gaearon/jsizeamarjitjim/browserpilotandershaig/cssess
Stars333
LanguageJavaScriptJavaScriptJavaScript
Last pushed2017-07-272011-08-19
MaintenanceDormantDormant
Setup difficultyeasymoderateeasy
Complexity1/53/51/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Yoink these prompts

Prompt 1
Write a short script that uses jsize to compare the bundle size of lodash and lodash-es.
Prompt 2
Explain how to add a pre-commit check that runs jsize on any newly added npm dependency.
Prompt 3
Help me set up jsize in my CI pipeline to fail a build if a new dependency adds more than 50kb gzipped.
Prompt 4
Show me how to use jsize's --verbose flag to see the size difference between raw, minified, and gzip stages.

Frequently asked questions

wtf is jsize?

A command-line tool that shows the real size of any npm package, both minified and gzip-compressed, before you commit to installing it.

What language is jsize written in?

Mainly JavaScript. The stack also includes Node.js, CLI, npm.

Is jsize actively maintained?

Dormant — no commits in 2+ years (last push 2017-07-27).

How hard is jsize to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is jsize for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.