~/gvndsxnkr
cd ../notes

// architecture · devops · 3 min read

Why I Chose Standalone Repositories Over a Monorepo for Multi-App Client Architectures

Trade-offs between shared UI packages and strict fault isolation across independent client dashboards.

When a client asked for a platform with four faces (a core API, an admin portal, a partner dashboard and a consumer storefront), the default move in 2025 is a monorepo: one Turborepo, a shared ui package, shared types, one CI pipeline. I went the other way and gave each app its own repository. This is why, and what it cost.

The problem with "shared everything"

A monorepo optimises for consistency. Every app imports the same button, the same form helpers, the same API client. That is great until the apps stop moving at the same speed.

In this project they never did:

  • The storefront shipped several times a week, driven by marketing and catalogue changes.
  • The admin portal changed when operations asked for a new workflow.
  • The partner dashboard had external users with their own release expectations.
  • The core API needed the most care: schema migrations, versioned endpoints, careful rollouts.

With a shared UI package, a change made for the storefront silently becomes a change to the partner dashboard. Either every release is coordinated across all four apps, or you start pinning internal package versions, which reintroduces release boundaries inside the monorepo and gives up much of its simplicity.

What standalone repositories buy you

Independent release cycles. Each app deploys on its own schedule. A storefront hotfix never waits on an admin-portal review.

Fault isolation. A broken build, a bad dependency bump or a failing test suite stays in one repository, and the other three keep shipping, as long as their pipelines are genuinely independent. A shared package or a breaking API change can still reach all of them.

Clear ownership and access. Partner-facing code, internal tooling and the API can have different collaborators and different secrets, which matters when a client brings in outside contractors.

Simpler CI per repo. Each pipeline only builds one thing, so there's no affected-graph tooling to maintain and no shared cache to debug. The work doesn't disappear, though: dependency updates, lint and format conventions, and contract tests now have to be kept consistent across four repositories.

What it costs

It is not free, and the trade-offs are real:

ConcernMonorepoStandalone repos
Shared UIOne package, always in syncCopied or published, can drift
API typesImported directlyGenerated from the API contract
Cross-app refactorsOne PROne PR per repo
Deployment couplingHighLow (the API contract still couples them)
Blast radius of a bad shared changeEvery app that imports itApps that adopt the new contract or package

The two costs I had to manage on purpose:

  1. Type drift between API and clients. I treat the API contract as the source of truth and generate client types from it, instead of importing internals across repositories.
  2. UI drift. Each portal owns its components. They share a visual language (tokens and conventions), not a package. Some duplication is the price of independence, and for four apps with different audiences it was cheap.

When I would still pick a monorepo

If the apps are built by one small team, release together, and share most of their UI, a monorepo is the better tool. The deciding question is not "how much code is shared?" but "how often do these apps need to ship independently?" When the answer is "constantly", separate repositories keep one team's Tuesday from becoming everyone's incident.

The deployment side, getting four private repositories into a client's own Vercel account, deserves its own post: Automating Cross-Account Vercel Deployments with GitHub Actions.

  • #Architecture
  • #DevOps