estimate_bundle_size
Estimate the minified and gzipped bundle size of a web component by providing its tag name. Queries bundlephobia and npm registry with 24-hour caching.
Instructions
Estimate the bundle size (minified + gzipped) for a web component or its parent npm package. Queries bundlephobia and the npm registry. Results are cached in memory for 24 hours.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagName | Yes | The custom element tag name, e.g. "sl-button". | |
| package | No | Optional: explicit npm package name (e.g. "@shoelace-style/shoelace"). If omitted, the package is derived from componentPrefix in your config using a built-in prefix→package map (e.g. "sl"→"@shoelace-style/shoelace", "fluent-"→"@fluentui/web-components", "mwc-"→"@material/web", "ion-"→"@ionic/core", "vaadin-"→"@vaadin/components", "lion-"→"@lion/ui", "pf-"→"@patternfly/elements", "carbon-"→"@carbon/web-components"). If your prefix is not in this list, you must provide the package explicitly — omitting it will return a VALIDATION error. | |
| version | No | Package version to look up. Defaults to "latest". | |
| include_full_package | No | When false, suppresses the full_package size from the result. Defaults to true. |