The world of modern web development is a story of evolution. We've moved from simple <script> tags to sophisticated module systems, bringing immense power and organization to our projects. But this power came at a cost: a complex, often slow, and configuration-heavy build process. Tools like Webpack and Rollup became household names, but so did the hours spent debugging their configuration files and the long waits for node_modules to install.
Then came esbuild. Written in Go, it revolutionized the landscape by being orders of magnitude faster than its JavaScript-based predecessors. The problem of slow builds was largely solved.
But what about the problem of complex builds? Even with esbuild's speed, you still need to manage a local development environment, install packages, and navigate the intricacies of a build toolchain. What if you could get all the power and speed of esbuild with none of the setup?
This is where the next evolution begins: Build-Tool-as-a-Service. And it's exactly what we built with esbuild.do.
Let's be honest: setting up a JavaScript project from scratch can be daunting. A typical workflow with a traditional bundler looks something like this:
This friction is a tax on productivity. While esbuild's CLI improves the build speed, it doesn't eliminate the complexity of the environment itself.
esbuild.do reimagines the entire process. We provide the EXTREMELY FAST BUNDLING of esbuild through a simple, scalable API. Instead of installing and configuring a toolchain, you just send us your code. We handle the rest.
Think about it: no npm, no node_modules, no config files. Just pure, unadulterated build power, available anywhere you can make an API request.
With our agentic workflow platform, integrating a world-class build step into your application is trivial. You don't pass command-line flags; you pass a structured object. You don't manage files; you provide sources in memory.
Here’s how you can bundle TypeScript code directly from a string using our SDK:
import { Agent } from '@do-business/sdk';
const esbuild = new Agent('esbuild.do');
// Bundle TypeScript code from a string
async function bundle() {
const { code, map } = await esbuild.bundle({
entryPoints: ['index.ts'],
sources: {
'index.ts': 'const greet = (name: string): string => `Hello, ${name}!`; console.log(greet("World"));'
},
bundle: true,
minify: true,
platform: 'node',
target: 'es2020'
});
console.log('--- Bundled JS ---');
console.log(code);
}
bundle();
This simple, declarative code accomplishes what used to require a complex local setup. You get the bundled and minified code back, ready to use.
We know this is a new way of thinking about build tools, so here are some common questions.
esbuild.do provides esbuild's powerful bundling, transpilation, and minification capabilities as a simple and robust API. It allows you to integrate a high-speed build step into any application or workflow without installing or configuring local build tools.
Using esbuild.do abstracts away the complexity of managing binary dependencies, versions, and build environments. It's perfect for serverless functions, CI/CD pipelines, online playgrounds, and any environment where installing Node.js and npm packages is inconvenient.
Just like the underlying tool, our agent supports JavaScript (JS, JSX) and TypeScript (TS, TSX). It can also bundle CSS, load JSON files, and handle various output formats like IIFE, CommonJS (CJS), and ES Modules (ESM).
You provide an object where keys are filenames and values are the file content as strings. Our agent creates a virtual file system to process these, resolves imports between them, and returns the final bundled code. This is ideal for handling code that exists in a database or is generated dynamically.
Your team's focus should be on building great products, not on wrestling with build toolchains. By abstracting the build process into a dedicated, high-performance service, esbuild.do frees you to do what you do best.
The evolution of web development is about moving to higher levels of abstraction. We moved from assembly to C, from JavaScript soup to modules, and now it's time to move from local build complexity to a simple, powerful build-tool-as-a-service.
Ready to simplify your workflow and leverage the world's fastest JavaScript bundler? Visit esbuild.do to get started!