Turborepo
High-performance build system for monorepos with task parallelization.
3. Used by agents' projects
Dependency in 363 public GitHub projects set up for AI coding agents that we scanned (5.8%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
turborepo.dev/llms.txtFrom the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Turborepo does
Turborepo calls itself "the build system for coding agents": it caches and schedules the <code>package.json</code> scripts a repo already has, and it adds terminal commands that give an agent docs, repository structure and affected-only checks.
Turborepo popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Turborepo is used
- Turborepo is a dependency in 363 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (7.5% of the 4,867 JavaScript/TypeScript ones), #2 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 596; those are left out of every share on this page.
- The most used alternative in our scan is Nx (127 projects).
- Projects that use it most often also use Biome (28.1%), TypeScript (77.7%), Husky (29.8%).
- It is more common in projects set up for OpenAI Codex (15.8%) than for Devin Desktop (3.9%).
By coding agent
Often used with
Turborepo in practice
Strengths
Turborepo does not ask you to rewrite your build. The docs say it uses your existing scripts and declared dependencies, plus a single <code>turbo.json</code>, and can be adopted incrementally.
Remote Caching stores task results so CI can reuse them instead of rebuilding. The docs make the claim directly.
The docs say Turborepo orders build, test and lint work and spreads it across all available cores. You do not have to sequence these tasks by hand.
The docs say it works with npm, yarn or pnpm because it follows npm ecosystem conventions.
Watch out for
A Just-in-Time package exports TypeScript directly and has no build step of its own. The docs say Turborepo therefore cannot cache a build for it.
Packages transpiled by their consumer cannot use TypeScript path aliases. For TypeScript 5.4 or later, the docs recommend Node.js subpath imports instead.
When an internal package exports raw TypeScript, a type error inside it makes type-checking fail in a dependent package. The docs note this can be confusing or problematic.
Link to Remote Cache, run tasks, inspect the repo
# Link to Remote Cache
turbo login
turbo link
# Run tasks
turbo run build
turbo run build --affected
# Find tasks
turbo run
# Find packages
turbo ls
# Get deep repository context
turbo query --schemaMore about Turborepo
Agent Skills for it
- : The React Framework
- : The build system for coding agents.
- turborepo-caching: Configure Turborepo for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, optimizing build pipelines,
- turborepo: Configure and troubleshoot Turborepo repositories. Use when working with turbo.json, task pipelines, caching, Remote Cache, the turbo CLI, f
Head to head
- Turborepo vs Nx used together in 0 projects
Packages around it
- husky: Git hooks
- @biomejs: Formatter and linter
- prettier: Code formatter
- lint-staged: Lint staged files
- @changesets/cli: Versioning and changelogs
- vitest: Test runner
More in Build tools and bundlers
Alternatives
Turborepo This page
Monorepo tool with build orchestration, caching and dependency analysis.
Get started
Install it.
npm install turboRules for your agent
## Turborepo
- Declare tasks in the root `turbo.json`. Use `"dependsOn": ["^build"]` so a package's build runs after the builds of its dependencies.
- Add each Compiled Package's build directory (`dist`, `build`) to the `outputs` key of its task so Turborepo caches those build outputs.
- To check your own changes, run `turbo run build --affected` instead of the whole repository.
- Before guessing at config, search the docs with `turbo docs "<topic>"`. Use `turbo ls` or `turbo query --schema` to learn the repository structure.
- Reference internal packages with the package manager's workspace syntax, for example `"@repo/ui": "workspace:*"` for pnpm.
- In Just-in-Time packages, do not use `compilerOptions.paths`. On TypeScript 5.4 or later, use Node.js subpath imports.
- Build Compiled Packages with `tsc` unless a specific use case requires a bundler. For publishing to npm, the docs recommend changesets.