explaingit

patrickjs/package-size

Analysis updated 2026-07-17 · repo last pushed 2026-06-24

1JavaScriptAudience · developerComplexity · 1/5ActiveSetup · easy

TLDR

A tool that tells you exactly how many bytes a JavaScript package adds to your website, raw, gzipped, and Brotli-compressed.

Mindmap

mindmap
  root((repo))
    What it does
      Measures package size
      Raw gzip brotli
      Caches results locally
    Tech stack
      JavaScript
      esm.unpkg.com
      GitHub Pages
    Use cases
      Check bundle bloat
      Verify optimizations
      Track dependency updates
    Audience
      Frontend developers
      Product managers
      Package maintainers

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

What do people build with it?

USE CASE 1

Check how much a dependency like react really costs in download size.

USE CASE 2

Compare a package's size before and after an optimization.

USE CASE 3

Spot when a dependency update unexpectedly added a lot of weight.

USE CASE 4

Share a link with a teammate so they can see a package's size without installing anything.

What is it built with?

JavaScriptNode.jsGitHub Pages

How does it compare?

patrickjs/package-size0xmukesh/docusaurus-tutoriala15n/andrewscheuermann
Stars111
LanguageJavaScriptJavaScriptJavaScript
Last pushed2026-06-242021-12-272015-01-11
MaintenanceActiveDormantDormant
Setup difficultyeasyeasymoderate
Complexity1/52/51/5
Audiencedeveloperdevelopergeneral

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

How do you get it running?

Difficulty · easy Time to first run · 5min

Copy-paste prompts

Prompt 1
Show me how to check the gzip and Brotli size of a package using this tool.
Prompt 2
Help me compare the bundle size of two versions of the same package.
Prompt 3
Explain how this tool decides what counts as a package's size versus its whole dependency tree.
Prompt 4
Walk me through using the hosted dashboard version instead of the command line.

Frequently asked questions

What is package-size?

A tool that tells you exactly how many bytes a JavaScript package adds to your website, raw, gzipped, and Brotli-compressed.

What language is package-size written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, GitHub Pages.

Is package-size actively maintained?

Active — commit in last 30 days (last push 2026-06-24).

How hard is package-size to set up?

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

Who is package-size for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.