What is monorepo?

Definition

Related applications, services and libraries share a repository so changes can be coordinated across their boundaries. Shared tooling can make dependency updates and cross-component work easier to organize.

Large monorepos can place significant demands on checkout, indexing, testing and access management. Their operational needs depend on workload, so an infrastructure design built for one very large organization is not automatically appropriate for every team.

ELI5

A monorepo is one shared code library containing several related projects instead of a separate library for each.

For example, a team might keep a website and the libraries it uses in one repository. Updating both together can be convenient, but searching and testing a very large collection requires suitable tools.

Does a monorepo mean one application?

No. It can contain many applications and libraries that share one repository and history.

Is a monorepo always the best layout?

No. Benefits and costs depend on team structure, dependencies, access requirements and tooling.

  1. Theo Browne in a blue top beside the blue and white headline Git At Agent Scale on black.
  2. Vaidas Razgaitis discussing research to production.
Definition card for monorepo: What is monorepo?

A monorepo is a source repository that contains multiple projects or components managed together within one version-control history.