Pyte · Design decision · type safety
Design decision: the UI moves into the backend monorepo
A typed TypeScript client generated from the gRPC definitions meant a backend change that broke the UI failed before it reached the branch.
Problem
Backend changes could silently break UI types.
Approach
I moved the UI into the backend monorepo and generated a typed TypeScript client from the gRPC definitions.
A pre-commit hook plus CI built the whole app.
Results
- A backend change that broke UI types failed before reaching the branch.
What I'd do differently
The monorepo couples builds. I'd revisit that as the team grows.
Stack
- gRPC
- TypeScript codegen
- CI
- Monorepo