# styfle/packagephobia

⚖️ Find the cost of adding a new dependency to your project

Repository: https://github.com/styfle/packagephobia
Canonical: https://ross.abutalabs.com/products/packagephobia
Homepage: https://packagephobia.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: npm, npm-package, npm-module, cost, size, performance, npms, disk-space, hacktoberfest
Last push: 2026-08-15T17:05:11+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 3089, "days_push": 18, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2307, forks 59 (observed 2026-08-28T04:06:35.789475+00:00)

## What it is
Package Phobia is a web application that reports the install size and publish size of npm packages before you install them, tracking size changes over time. It offers a web UI, README badges, and a JSON API for programmatic access.

## Use cases
- check npm package install size before adding a dependency
- compare the size of two npm packages like express vs micro
- find javascript package bloat over time
- add a package size badge to my readme
- integrate package size lookup into a tool via json api
- avoid wasting disk space on heavy npm dependencies

## When to choose
- you want to evaluate the disk and install cost of an npm dependency before installing it
- you need to compare candidate packages by size to pick the leanest option
- you want size badges or a JSON API for npm package sizes

## When to avoid
- you need bundle-size analysis of your own application code rather than npm package install size
- you need security or license auditing of dependencies rather than size metrics
- you work outside the npm/JavaScript ecosystem

## Facets
- artifact type: application
- maturity: active
- function: analytics, developer-tools, http-server, data-visualization
- domain: developer-tools, web-development, performance
- platform: -
- tags: npm-package-size, dependency-analysis, disk-space, install-size, package-comparison, badges, json-api, npm, nodejs, web-server, typescript

## Member repositories
- styfle/packagephobia (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.789475+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:40.258858+00:00, confidence not recorded.
  - readme: https://github.com/styfle/packagephobia (fetched 2026-08-28T04:06:35.789475+00:00, sha c952877a303b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
