MCPcopy Index your code
hub / github.com/pastelsky/bundlephobia

github.com/pastelsky/bundlephobia @v1.2.1 sqlite

repository ↗ · DeepWiki ↗ · release v1.2.1 ↗
216 symbols 502 edges 100 files 9 documented · 4%
README
<img src="https://cdn.rawgit.com/pastelsky/bundlephobia/bundlephobia/client/assets/site-logo.svg" alt="" width="290" height="235" />

bundlephobia.com

Know the performance impact of including an npm package in your app's bundle.

Features

  • Works with ES6 packages
  • Can build css and scss packages as well (beta)
  • Reports historical trends
  • See package composition

Badges

Built using bundlephobia

  • Size in browser - As seen on package searches at yarnpkg.com
  • bundlephobia-cli - A Command Line client for bundlephobia
  • importcost - An Atom plugin to display size of imported packages

Support

Liked bundlephobia? Used it's API to build something cool? Let us know!

We could use some 💛 on our opencollective page –

FAQ

1. Why does search for package X throw MissingDependencyError ?

This error is thrown if a package requires a dependency without adding it in its dependencies or peerDependencies list. In the absence of such a definition, we cannot reliably report the size of the package - since we cannot resolve any information about the package.

In such a case, it's best to report an issue with the package author asking the missing package to be added to its package.json

2. I see a BuildError for package X, but I'm not sure why.

You can see a detailed stack trace in your devtools console, and open an issue with the relevant details. Working on a more ideal solution for this.

Contributing

See Contributing

Core symbols most depended-on inside this repo

get
called by 44
client/api.js
error
called by 28
server/Logger.js
parsePackageString
called by 21
utils/common.utils.js
set
called by 20
server/Logger.js
respondWithError
called by 9
server/middlewares/results/error.middleware.js
encodeFirebaseKey
called by 8
cache-service/cache.utils.js
formatSize
called by 8
utils/index.js
info
called by 6
server/Logger.js

Shape

Function 98
Method 75
Class 43

Languages

TypeScript100%

Modules by API surface

server/Queue.js17 symbols
client/components/ProgressHex/progress-hex-timeline.js15 symbols
utils/rebuild.utils.js12 symbols
server/middlewares/similar-packages/similarPackages.middleware.js11 symbols
client/api.js11 symbols
server/Logger.js10 symbols
client/components/Treemap/squarify.js9 symbols
utils/index.js8 symbols
client/components/Header/Header.js8 symbols
client/components/BuildProgressIndicator/BuildProgressIndicator.js8 symbols
bin/updateHistoricalData.js8 symbols
utils/firebase.utils.js7 symbols

Dependencies from manifests, versioned

@babel/core7.6.0 · 1×
@babel/preset-env7.6.0 · 1×
@zeit/next-css1.0.1 · 1×
@zeit/next-sass1.0.1 · 1×
animejs3.1.0 · 1×
array-to-sentence2.0.0 · 1×
autoprefixer7.1.2 · 1×
axios0.19.0 · 1×
babel-jest24.9.0 · 1×
babel-plugin-css-modules-transform1.6.1 · 1×
babel-plugin-inline-react-svg1.1.0 · 1×

For agents

$ claude mcp add bundlephobia \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact