{
 "kind": "tool",
 "slug": "esbuild",
 "path": "tools/esbuild/",
 "name": "esbuild",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Build tools and bundlers",
   "tools/build-tools/"
  ]
 ],
 "lead": "Pack your site's code into small fast files.",
 "chips": [
  {
   "label": "Build tools and bundlers",
   "path": "tools/build-tools/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install esbuild"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/evanw/esbuild"
  },
  {
   "label": "Website",
   "href": "https://github.com/evanw/esbuild#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "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",
   "note": "MIT allows use in paid and closed-source products; the built files are your code.",
   "src": "https://github.com/evanw/esbuild/blob/main/LICENSE.md"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Aug 9, 2026",
   "note": "Latest GitHub release Aug 8, 2026. ",
   "src": "https://github.com/evanw/esbuild"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "310 projects",
   "status": "info",
   "sub": "#3 of 185 in its category",
   "note": "Dependency in 310 public GitHub projects set up for AI coding agents that we scanned (5.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What esbuild does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "One small script file for a site",
       "text": "Your TypeScript files and the libraries they use become a single small file that the page loads with one script tag.",
       "idea": false
      },
      {
       "title": "Run TypeScript scripts on a server",
       "text": "A small server, bot or cron script written in TypeScript is turned into one plain JavaScript file that Node.js runs directly.",
       "idea": false
      },
      {
       "title": "Page reloads when you save",
       "text": "While you work, the browser page reloads by itself each time you save a file, with no separate dev server to set up.",
       "idea": false
      },
      {
       "title": "A build script your assistant can extend",
       "text": "When the command line gets long, the same build lives in a short JavaScript file that is easy to read and change.",
       "idea": false
      },
      {
       "title": "Code that also runs in older browsers",
       "text": "Newer JavaScript you or your assistant write is rewritten into older forms for the browser versions your visitors use.",
       "idea": false
      },
      {
       "title": "One-file widget for other sites",
       "text": "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.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "esbuild popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "85",
       "of": "/ 100",
       "l": "Gid Score, #42 overall"
      },
      {
       "n": "443M",
       "l": "downloads a week, npm"
      },
      {
       "n": "40.2K",
       "l": "GitHub stars"
      },
      {
       "n": "310",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How esbuild is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "225 projects, 6.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "132 projects, 4.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "113 projects, 4.6%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "38 projects, 8.1%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "34 projects, 10.2%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "33 projects, 7.0%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "25 projects, 7.3%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "15 projects, 5.4%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 50.0% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 57.1% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 89.7% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 41.9% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 38.7% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      },
      {
       "l": "In 23.9% of its projects",
       "v": "Express",
       "path": "tools/express/"
      },
      {
       "l": "In 28.7% of its projects",
       "v": "jsdom",
       "path": "tools/jsdom/"
      },
      {
       "l": "In 46.1% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about esbuild",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Head to head",
       "items": [
        {
         "text": "esbuild vs SWC",
         "note": "used together in 35 projects",
         "path": "tools/compare/esbuild-vs-swc/"
        },
        {
         "text": "esbuild vs webpack",
         "note": "used together in 5 projects",
         "path": "tools/compare/esbuild-vs-webpack/"
        }
       ]
      },
      {
       "title": "More in Build tools and bundlers",
       "path": "tools/build-tools/",
       "items": [
        {
         "text": "Turborepo",
         "path": "tools/turbo/"
        },
        {
         "text": "Babel (JavaScript)",
         "path": "tools/babel-npm/"
        },
        {
         "text": "Laravel Vite Plugin",
         "path": "tools/laravel-vite-plugin/"
        },
        {
         "text": "React Compiler Babel Plugin",
         "path": "tools/babel-plugin-react-compiler/"
        },
        {
         "text": "Nx",
         "path": "tools/nx/"
        },
        {
         "text": "vite-tsconfig-paths",
         "path": "tools/vite-tsconfig-paths/"
        },
        {
         "text": "Nx JS Plugin",
         "path": "tools/nx-js/"
        },
        {
         "text": "packaging",
         "path": "tools/packaging/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "esbuild",
       "me": true,
       "facts": [
        "MIT",
        "Gid 85",
        "443M/wk"
       ]
      },
      {
       "name": "Vite",
       "why": "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.",
       "path": "tools/vite/",
       "facts": [
        "MIT",
        "Gid 92",
        "288M/wk"
       ]
      },
      {
       "name": "tsup",
       "why": "Pick tsup when you publish a TypeScript library and want esbuild-based builds with type files set up for you.",
       "path": "tools/tsup/",
       "facts": []
      },
      {
       "name": "Rollup",
       "why": "Pick Rollup when you need its large plugin set and fine control over library output.",
       "path": "tools/rollup/",
       "facts": []
      },
      {
       "name": "SWC",
       "why": "Super-fast Rust-based JavaScript compiler and bundler alternative to Babel.",
       "path": "tools/swc-core/",
       "facts": [
        "Apache-2.0",
        "Gid 78",
        "61.9M/wk"
       ]
      },
      {
       "name": "webpack",
       "why": "Module bundler that packages JavaScript, assets and dependencies for browser deployment.",
       "path": "tools/webpack/",
       "facts": [
        "MIT",
        "Gid 83",
        "76.9M/wk"
       ]
      }
     ],
     "more": "Compare esbuild with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install esbuild into the project with the exact version written down.",
       "code": "npm install --save-exact --save-dev esbuild",
       "src": "https://esbuild.github.io/getting-started/"
      },
      {
       "text": "Bundle your entry file into one output file.",
       "code": "./node_modules/.bin/esbuild app.jsx --bundle --outfile=out.js",
       "src": "https://esbuild.github.io/getting-started/"
      },
      {
       "text": "Save the command as a build script so anyone can run npm run build.",
       "code": "{\n  \"scripts\": {\n    \"build\": \"esbuild app.jsx --bundle --outfile=out.js\"\n  }\n}\n",
       "src": "https://esbuild.github.io/getting-started/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Moving from esbuild 0.28.x to 0.29.x as if it were a routine patch update",
       "fix": "Pin the exact version (npm install --save-exact esbuild) and read the changelog before a minor-version bump",
       "why": "Before 1.0, esbuild puts changes that can break builds into minor versions."
      },
      {
       "dont": "Treating a successful esbuild run as proof the TypeScript is correct",
       "fix": "Run tsc --noEmit (in CI or next to watch mode) as a separate step",
       "why": "esbuild strips types without checking them; in our run const n: number = \"not a number\" built with exit code 0."
      },
      {
       "dont": "Bundling server code with the default browser settings",
       "fix": "Add --platform=node so fs, path and other built-in modules stay outside the bundle",
       "why": "The default target is the browser; the node platform marks Node's own modules as external."
      },
      {
       "dont": "npm install --ignore-scripts --no-optional (both flags) in CI or Docker",
       "fix": "Install without those flags, or with at most one of them",
       "why": "esbuild ships its program as an optional package plus an install script; with both turned off it cannot install."
      },
      {
       "dont": "TypeScript settings without isolatedModules",
       "fix": "Set \"isolatedModules\": true in tsconfig.json",
       "why": "esbuild compiles each file alone and cannot tell whether an imported name is a type or a value."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Can I use it in a paid product?",
       "a": "Yes, it is MIT-licensed.",
       "evidence": {
        "url": "https://github.com/evanw/esbuild/blob/main/LICENSE.md",
        "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction"
       }
      },
      {
       "q": "Does it check my TypeScript for type errors?",
       "a": "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.",
       "evidence": {
        "url": "https://esbuild.github.io/content-types/",
        "quote": "However, esbuild does not do any type checking so you will still need to run tsc -noEmit in parallel with esbuild to check types."
       }
      },
      {
       "q": "Can I use it without Node.js?",
       "a": "Yes. The command is a native program; you can download the package for your system from the npm registry and unpack it.",
       "evidence": {
        "url": "https://esbuild.github.io/getting-started/",
        "quote": "Although the precompiled native executables are hosted using npm, you don't actually need npm installed to download them."
       }
      },
      {
       "q": "Which version range should I put in package.json?",
       "a": "An exact version, or at most the same minor version (~0.28.2), because minor releases may break builds before 1.0.",
       "evidence": {
        "url": "https://esbuild.github.io/faq/",
        "quote": "If you plan to use esbuild for something real, you should either pin the exact version (maximum safety) or pin the major and minor versions (only accept backwards-compatible upgrades)."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm esbuild"
  ],
  [
   "Category",
   "Build tools and bundlers"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "84.7"
  ],
  [
   "Rank in category",
   "#3 of 185"
  ],
  [
   "GitHub",
   "evanw/esbuild"
  ],
  [
   "Last change",
   "Aug 9, 2026"
  ]
 ],
 "good": [
  "It does not check TypeScript types. Code with a type mistake still builds, so a separate type check has to run as well.",
  "It is not at version 1.0 yet; its own docs call it a late-stage beta, and changes that can break your build come in minor versions.",
  "It is mostly built by one main developer, who says new features are paused while fixes and releases continue. Version 0.28.2 came out on 8 August 2026."
 ],
 "checked_line": "Read by AgentGid from 9 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/evanw.png"
}