Registry / devops / oxphobia

oxphobia

JSON →
library0.0.2jsnpmunverified

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 oxphobia
INSTALL
IMPORT
SIG · OXPHOBIA
O
oxphobia
devopsjavascriptv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

oxphobia
npx oxphobia [package-name]
oxphobia
This is a CLI tool; direct import is not supported.

Measures the minified and gzipped size of the lodash-es package via jsDelivr.

npx oxphobia lodash-es
Debug
Known issues
gotchaPackage version 0.0.2 is early-stage and may produce inaccurate results for complex packages.
fix
Check for updates; contribute fixes.
affects: <=0.0.2
gotchaNon-JS assets (CSS, images) are ignored, so reported size does not reflect total bundle size.
fix
Use with awareness that only JS is measured.
affects: all
gotchaAdvanced bundler configurations (Webpack/Rollup/Vite plugins) are not supported; only static import/require analysis.
fix
For projects with complex configs, use platform-specific tools.
affects: all
Errors
Common errors & fixes
Error: Failed to download package: <package>
jsDelivr CDN timeouts or package does not exist (may include scoped packages incorrectly).
fix
Verify the package name is correct and accessible on jsDelivr.
TypeError: This package does not have a 'main' or 'module' field.
The package's package.json lacks a main/module/exports entry point.
fix
Specify an explicit entry file using the --entry option (not yet implemented).
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
oxphobia — npm install oxphobia · libregistry