turbo
Turborepo is a high-performance build system for JavaScript and TypeScript monorepos that provides intelligent caching, parallel execution, and incremental buil…
Installation
npm install -D turbo
yarn add -D turbo
pnpm add -D turbo
Import
// turbo.json configuration
Quick Example
// turbo.json
{
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"test": {
"dependsOn": ["build"]
},
"lint": {}
}
}About turbo
Turborepo is a high-performance build system for JavaScript and TypeScript monorepos that provides intelligent caching, parallel execution, and incremental builds. Turbo analyzes the dependency graph between packages in your monorepo and runs tasks (build, test, lint) in the optimal order with maximum parallelism, skipping work that has already been done through content-aware hashing of inputs. Local caching stores previous build outputs keyed by the hash of source files, dependencies, and environment variables, allowing subsequent builds to be completed in milliseconds by restoring cached artifacts. Remote caching through Vercel enables sharing build caches across team members and CI environments, so a build completed by one developer benefits the entire team. Turbo's pipeline configuration defines task dependencies (e.g., build depends on ^build of dependencies) and which outputs to cache. The tool integrates with any package manager (npm, yarn, pnpm) and works alongside existing build tools — it orchestrates when tasks run, not how they run. Turborepo is particularly impactful in large monorepos where full rebuilds take minutes but incremental cached builds complete in seconds.
Quick Facts
| Package | turbo |
| Category | Build Tool |
| Weekly Downloads | 3M+ |
| License | MIT |
| Install | npm install -D turbo |
Related Packages
Nx is a powerful build system with first-class monorepo support and powerful integrations that provi…
Lerna is the original JavaScript monorepo management tool, providing utilities for managing multi-pa…
Changesets is a tool for managing versioning and changelogs in multi-package repositories, focusing …
TypeScript is a strongly typed programming language that builds on JavaScript, adding static type de…
Vite is a next-generation frontend build tool created by Evan You (creator of Vue.js) that provides …
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.