1. License
“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
MIT allows use in paid and closed-source products; the built files are your code.
github.com/evanw/esbuild/blob/main/LICENSE.md3. Used by agents' projects
Dependency in 310 public GitHub projects set up for AI coding agents that we scanned (5.0%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily; card checked Nov 10, 2026. Tap a verdict to see its source.How we checkedReport an error
What esbuild does
esbuild is a free build tool for websites and apps. It joins your many code files into one or a few small files that a browser or server can load. It understands TypeScript, JSX and CSS without setup, and it can shrink files and rebuild them as you save. Many other tools run it inside them.
What people build with it
One small script file for a site
Your TypeScript files and the libraries they use become a single small file that the page loads with one script tag.
Run TypeScript scripts on a server
A small server, bot or cron script written in TypeScript is turned into one plain JavaScript file that Node.js runs directly.
Page reloads when you save
While you work, the browser page reloads by itself each time you save a file, with no separate dev server to set up.
A build script your assistant can extend
When the command line gets long, the same build lives in a short JavaScript file that is easy to read and change.
Code that also runs in older browsers
Newer JavaScript you or your assistant write is rewritten into older forms for the browser versions your visitors use.
One-file widget for other sites Idea
A chat button or booking form that other site owners add with a single script tag ships as one file with nothing else to install.
esbuild popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How esbuild is used
- esbuild is a dependency in 310 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (6.4% of the 4,867 JavaScript/TypeScript ones), #3 of 185 in build tools and bundlers.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 919; those are left out of every share on this page.
- The most used alternative in our scan is Vite (1,238 projects).
- Projects that use it most often also use tsx (50.0%), Vitest (57.1%), TypeScript (89.7%).
- It is more common in projects set up for OpenClaw (10.2%) than for GitHub Copilot (4.4%).
By coding agent
Often used with
More about esbuild
Head to head
- esbuild vs SWC used together in 35 projects
- esbuild vs webpack used together in 5 projects
More in Build tools and bundlers
Alternatives
esbuild This page
Pick Vite when you want a ready dev server with instant updates and a production build for a whole web app, not just a bundling step.
Pick tsup when you publish a TypeScript library and want esbuild-based builds with type files set up for you.
Pick Rollup when you need its large plugin set and fine control over library output.
Super-fast Rust-based JavaScript compiler and bundler alternative to Babel.
Module bundler that packages JavaScript, assets and dependencies for browser deployment.
Get started
Tell your AI assistant
“Add esbuild 0.28.2 as an exact dev dependency and a "build" script that bundles src/app.ts with --bundle --minify --sourcemap into dist/app.js, and run tsc --noEmit separately for type checks.”
Install esbuild into the project with the exact version written down.
npm install --save-exact --save-dev esbuildBundle your entry file into one output file.
./node_modules/.bin/esbuild app.jsx --bundle --outfile=out.jsSave the command as a build script so anyone can run npm run build.
{ "scripts": { "build": "esbuild app.jsx --bundle --outfile=out.js" } }
Mistakes to avoid
Before 1.0, esbuild puts changes that can break builds into minor versions.
esbuild strips types without checking them; in our run const n: number = "not a number" built with exit code 0.
The default target is the browser; the node platform marks Node's own modules as external.
esbuild ships its program as an optional package plus an install script; with both turned off it cannot install.
esbuild compiles each file alone and cannot tell whether an imported name is a type or a value.
Questions
Can I use it in a paid product?
Yes, it is MIT-licensed.
Does it check my TypeScript for type errors?
No. It removes the types and builds; run tsc --noEmit next to it. In our run a file with a wrong type built with exit code 0.
Can I use it without Node.js?
Yes. The command is a native program; you can download the package for your system from the npm registry and unpack it.
Which version range should I put in package.json?
An exact version, or at most the same minor version (~0.28.2), because minor releases may break builds before 1.0.