# wix/import-cost

displays the import size of the package you are importing inside the code editor

Repository: https://github.com/wix/import-cost
Canonical: https://ross.abutalabs.com/products/import-cost
Homepage: https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost
Language: JavaScript
License: MIT
License Family: permissive
Topics: vscode, performance, performance-analysis, performance-visualization, webpack, perfmatters, webperf
Last push: 2024-03-23T18:56:29+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3336, "days_push": 893, "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 1382, forks 69 (observed 2026-08-28T04:04:34.372879+00:00)

## What it is
Import Cost is a VSCode extension (plus a reusable Node module) that displays the size of imported packages inline in the code editor, using webpack to calculate bundle cost. It supports JavaScript and TypeScript import/require syntax and has community plugins for JetBrains, Vim, and Atom.

## Use cases
- show package size of imports inline in vscode
- keep bundle size under control while coding
- check how heavy an npm dependency is before importing it
- monitor import cost in javascript and typescript projects
- build a similar import-size extension for another IDE

## When to choose
- you write JavaScript or TypeScript and want immediate feedback on dependency weight
- you use VSCode (or a supported editor plugin) and care about bundle performance
- you want to avoid accidentally importing large packages

## When to avoid
- you work in languages other than JavaScript/TypeScript
- you need exact production bundle analysis rather than per-import estimates
- you don't use an editor that has an import-cost plugin

## Facets
- artifact type: plugin
- maturity: stable
- function: developer-tools, monitoring, build-tool
- domain: developer-tools, frontend, web-development, performance
- platform: editor-plugin, cross-platform
- tags: vscode-extension, bundle-size, import-size, webpack, javascript, typescript, performance-analysis, nodejs

## Member repositories
- wix/import-cost (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:34.372879+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-30T04:40:08.493104+00:00, confidence not recorded.
  - readme: https://github.com/wix/import-cost (fetched 2026-08-28T04:04:34.372879+00:00, sha 9d666d2e4245)
  - homepage: https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost (fetched 2026-08-29T11:56:17.286784+00:00, sha 87e1abd2bd29)
  - registry_npm: https://registry.npmjs.org/import-cost (fetched 2026-08-29T11:56:17.295973+00:00, sha df5563515541)
- Data as of 2026-08-30T08:39:29.467469+00:00.
