Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

esbuild

Pack your site's code into small fast files.

Build tools and bundlersNPM

GitHubWebsite

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.md

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

85 / 100
Gid Score, #42 overall
443M
downloads a week, npm
40.2K
GitHub stars
310
agent projects use it
esbuild: downloads per weeknpm, esbuild 443,230,940
esbuild: GitHub starsevanw/esbuild 40,170

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

225 projects, 6.9%
132 projects, 4.4%
113 projects, 4.6%
38 projects, 8.1%
34 projects, 10.2%
33 projects, 7.0%
25 projects, 7.3%
15 projects, 5.4%

Often used with

In 50.0% of its projects
In 57.1% of its projects
In 89.7% of its projects
In 41.9% of its projects
In 38.7% of its projects
In 23.9% of its projects
In 28.7% of its projects
In 46.1% of its projects

More about esbuild

Head to head
More in Build tools and bundlers

Alternatives

esbuild This page

MITGid 85443M/wk

Vite

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.

MITGid 92288M/wk

tsup

Pick tsup when you publish a TypeScript library and want esbuild-based builds with type files set up for you.

Rollup

Pick Rollup when you need its large plugin set and fine control over library output.

SWC

Super-fast Rust-based JavaScript compiler and bundler alternative to Babel.

Apache-2.0Gid 7861.9M/wk

webpack

Module bundler that packages JavaScript, assets and dependencies for browser deployment.

MITGid 8376.9M/wk

Compare esbuild with another tool

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.”

  1. Install esbuild into the project with the exact version written down.

    npm install --save-exact --save-dev esbuild

    From esbuild.github.io/getting-started/

  2. Bundle your entry file into one output file.

    ./node_modules/.bin/esbuild app.jsx --bundle --outfile=out.js

    From esbuild.github.io/getting-started/

  3. Save the command as a build script so anyone can run npm run build.

    {
      "scripts": {
        "build": "esbuild app.jsx --bundle --outfile=out.js"
      }
    }
    

    From esbuild.github.io/getting-started/

Mistakes to avoid

Moving from esbuild 0.28.x to 0.29.x as if it were a routine patch update
Pin the exact version (npm install --save-exact esbuild) and read the changelog before a minor-version bump

Before 1.0, esbuild puts changes that can break builds into minor versions.

Treating a successful esbuild run as proof the TypeScript is correct
Run tsc --noEmit (in CI or next to watch mode) as a separate step

esbuild strips types without checking them; in our run const n: number = "not a number" built with exit code 0.

Bundling server code with the default browser settings
Add --platform=node so fs, path and other built-in modules stay outside the bundle

The default target is the browser; the node platform marks Node's own modules as external.

npm install --ignore-scripts --no-optional (both flags) in CI or Docker
Install without those flags, or with at most one of them

esbuild ships its program as an optional package plus an install script; with both turned off it cannot install.

TypeScript settings without isolatedModules
Set "isolatedModules": true in tsconfig.json

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.