← Back to directory

Measure a supplied virtual JS/TS project before and after minification and tree-...

https://code.halowerk.com/v1/bundle-size

Overview

Measure a supplied virtual JS/TS project before and after minification and tree-shaking, with gzip size, dependency contributions and an optional final bundle. Builds the same caller-supplied project three ways using installed esbuild 0.28.2 (MIT): bundled without minification or tree-shaking, minified without tree-shaking, then minified with optional tree-shaking.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 13:00:15

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "entry": "main.js", "files": { "main.js": "import {add} from \"./math.js\"; export const answer=add(2,3);", "math.js": "export const add=(a,b)=>a+b;" }, "format": "esm" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Small JS, MJS, CJS, TS, JSX, TSX and JSON projects only: at most 16 files, 16384 source characters per file, 65536 source UTF-8 bytes in total and 100000 serialized worker input bytes.", "Every dependency source must be supplied. Bare imports need an explicit alias to a supplied file; no package registry, automatic package.json resolution, CSS/assets, custom plugins or computed module specifiers.", "Sizes describe the statically bundled dependency graph, not runtime-fetched resources or application behaviour. Compilation is not type-checking or a runtime correctness test.", "Analysis output is capped at 131072 bytes per bundle; optionally returned final bundle content at 65536 bytes. Gzip uses level 9 and reports its zlib runtime; compressor versions and web-server settings can change the compressed size. Optional content includes the exact gzip stream.", "One isolated code worker per hub process at a time. Resource exhaustion and compilation failures are rejected before settlement." ], "result": { "bundle_bytes": 113, "entry": "main.js", "final_bytes": 51, "final_gzip_bytes": 71, "format": "esm", "gzip_runtime": "zlib 1.3.1-e00f703", "inputs": [ { "bytes_in_final": 13, "path": "main.js", "source_bytes": 60 }, { "bytes_in_final": 17, "path": "math.js", "source_bytes": 28 } ], "minified_bytes": 51, "processed_source_bytes": 88, "provided_source_bytes": 88, "target": "es2020", "tree_shaking": { "delta_bytes": 0, "enabled": true }, "unused_provided_files": [], "wall_time_ms": 487, "warnings": [] }, "service": "bundle-size", "status": "success" }, "type": "json" }