Oxphobia is a fast JavaScript bundle size calculator that uses the Rust-based Oxc parser and minifier to measure minified and gzipped sizes of npm packages or local projects. It leverages jsDelivr to fetch npm sources recursively and performs simple tree-shaking based on process.env.NODE_ENV. Unlike similar tools (e.g., bundlephobia), it uses Oxc for faster parsing and minification, supports both remote packages and local projects, and runs as a CLI via npx. Current version 0.0.2 is early-stage, works only with Node.js >= 18.12.0, and ignores non-JS assets and complex bundler configurations.
npm install oxphobiaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Measures the minified and gzipped size of the lodash-es package via jsDelivr.
Check for updates; contribute fixes.
Use with awareness that only JS is measured.
For projects with complex configs, use platform-specific tools.
Verify the package name is correct and accessible on jsDelivr.
Specify an explicit entry file using the --entry option (not yet implemented).
No dependency data recorded yet.