What is this?
esbuild is an extremely fast bundler for the web, written in Go. Its stated goal is to bring about a new era of build tool performance with an easy-to-use modern bundler.
Is esbuild a command-line tool, a library, or both?
Both — it ships a CLI plus a straightforward API you can call from JavaScript and from Go.
How do I add it to a project?
Install it locally with 'npm install esbuild', then follow the getting started instructions to run your first build from the CLI or from code.
Does it work on Windows, or only on macOS and Linux?
It runs on Windows, macOS, and Linux — being written in Go, it ships as native binaries for each platform.
Is esbuild only for React projects?
No — React and TSX are just part of its built-in language support; it bundles plain JavaScript, TypeScript, and CSS too, with or without a framework.
Does it help during development, or is it only a production build tool?
Both: esbuild ships a local server and watch mode for rebuilding on change while you develop, plus a plugin system for customizing the build.