A P Is And Type Safety
tRPC, Zod for runtime validation, OpenAPI codegen from FastAPI for typed clients.
Why we need this / what value this brings
Localz generates frontend types from the FastAPI OpenAPI schema — keeping the type boundary honest end to end is a real design constraint, not a nice-to-have.
When to use this
Any new API contract between the Next.js frontend and FastAPI backend.
How to use or implement this
openapi-typescript (or similar) codegen from the FastAPI schema, Zod schemas that mirror the Pydantic models.
Research questions
- (add as research surfaces open questions)
Empty folder — drop notes, links, and findings here as you research.