
openapikubbtypescripttanstack-query
From OpenAPI to a Type-Safe Frontend: Scaling REST with Kubb
How I replaced scattered endpoint strings and handwritten API types with a repeatable, contract-first workflow for the whole frontend.
5 min read
Real-world engineering post-mortems, latency benchmarks, and architectural deep-dives. How I diagnose production bottlenecks, optimize Next.js delivery pipelines, and resolve complex distributed frontend challenges.

How I replaced scattered endpoint strings and handwritten API types with a repeatable, contract-first workflow for the whole frontend.

A real architecture decision for a growing React product: use server rendering for the first useful response, client rendering for interaction, and explicit boundaries for data, auth, and change.

A production e-commerce case study: moving prepared images to S3 + CloudFront and measuring the impact on EC2 CPU and image TTFB.