← cd ../work

cat ./work/typed-monorepo-platform.md

Typed monorepo platform

Unified web + mobile on a single type-safe stack with end-to-end tRPC.
Lead Full-stack Engineer2022 — 2024
-63%Build time
100%Type coverage
42%Shared code
// stack
Next.jstRPCReact NativeTypeScriptMonorepoPostgreSQL

The problem

Web and mobile lived in separate repos with duplicated API clients and drifting types, so every backend change meant coordinating three PRs.Releases were slow and error-prone because CI rebuilt everything on every change.

The approach

— Consolidated apps and packages into a single monorepo with a shared tRPC router, giving every client compile-time-safe access to the API.— Introduced remote caching and affected-only builds so CI only rebuilds what changed.— Extracted a shared UI + utilities layer consumed by both web and React Native.

The outcome

Cut average CI build time by 63% and eliminated an entire class of type-mismatch bugs.New features now ship to web and mobile from one PR with confidence.