Skip to content

Instantly share code, notes, and snippets.

View Dearonski's full-sized avatar
🏠
Working from home

Dearonski Dearonski

🏠
Working from home
View GitHub Profile
@Dearonski
Dearonski / article-medium.md
Created February 13, 2026 01:09
Stop Writing Strapi Types by Hand — Generate Them in One Command

Stop Writing Strapi Types by Hand — Generate Them in One Command

If you've ever built a frontend that talks to Strapi, you know the pain. You define your content types in Strapi's admin panel, then hop over to your React or Next.js project and manually write the TypeScript interfaces. Again. Every field, every relation, every component — duplicated by hand. And when someone on your team adds a new field to the blog post model? You find out at runtime, not compile time.

I got tired of this. So I built strapi-typed-client — a tool that reads your Strapi v5 schema and generates clean TypeScript types plus a fully typed API client. One command, full autocomplete, zero manual type maintenance.


The Problem