Monorepo
One repository that holds several apps and shared packages, versioned and changed together.
A change to a shared component and every app that uses it lands in one pull request, so nothing drifts out of sync. The price is tooling: builds and tests should run only for what changed, and the repository needs clear ownership. Build tools exist for this, but a small monorepo often works fine with the package manager’s workspaces alone.
Related terms
- Codemod: A script that rewrites source code automatically, used for upgrades and refactors across many files at once.
- CI/CD: Continuous integration and continuous delivery: every change is built and tested automatically and can be released at any time.
- Design system (Storybook): Shared components, tokens and rules that keep a product consistent across screens, teams and platforms.
- Code ownership (CODEOWNERS): Every part of a codebase has a named team responsible for it, often enforced by a CODEOWNERS file that requests that team’s review on every change.
- Shared kernel (DDD): A small part of the domain model that two teams own together and change only by agreement, such as shared types or a common library.
