# Monorepo

> One repo that holds the code for many projects. They all share one history.

**Field:** Software Development  
**Category:** Version Control  
**Also known as:** Monorepository, Mono Repo, Single Repository

## Think of it like

Think of it like one big toy box for the whole family. All the toys go in it.

## Definition

A monorepo is one repository that holds the code of many projects. A web app, a phone app and their shared code can all live in it, in separate folders. One change can update every project at once. Everyone sees the same history and the same tools. The cost is size: big monorepos need tools that build and test only what changed.

## Example

Jack's team keeps its web app, its phone app and a shared folder in one monorepo. A fix to the shared login code reaches both apps in one pull request.

## Why it matters

Changes that touch many projects land together, so nothing gets out of step.

## Common mistake

Thinking a monorepo means one big app. The projects inside can still be built and run on their own.

## Three principles

- **One repository.** Many projects share one history.
- **One change, many projects.** A fix can reach them all.
- **Needs smart tools.** Build and test only what changed.

## Related terms

- [Repository](https://learn.benibix.com/term/development/repository)
- [Monolithic Architecture](https://learn.benibix.com/term/development/monolith)
- [Microservices](https://learn.benibix.com/term/development/microservices)
- [Git](https://learn.benibix.com/term/development/git)

## Told apart from

- [Monorepo vs Monolith](https://learn.benibix.com/compare/monorepo-vs-monolith): A monorepo is one place that stores the code of many projects. A monolith is one app that runs as a single program. You can keep many small apps in one monorepo, or one monolith on its own.

## Taught in

- [Git Branching Strategies](https://learn.benibix.com/learn/development-version-control/git-branching-strategies): Git and GitHub, 13/13

![Two panels. On the left, a monorepo, lit up: one repository holds three folders, web, mobile and shared, and one change can fix all three at once. On the right, many repos: three separate repositories, each with its own history, joined only by package versions. A note says a monorepo is about where code is stored, not how the app runs.](https://learn.benibix.com/diagrams/dev3-monorepo.svg)

---

Source: https://learn.benibix.com/term/development/monorepo
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
