
Strapi dev builds auto-type generator to banish hand-written interfaces: because nothing kills productivity like typing 'id: number' for the 50th time
Developers using Strapi v5 with TypeScript can now auto-generate fully typed clients in seconds, thanks to the strapi-typed-client plugin and CLI tool. Created by BoxLab-Ltd, this solution eliminates the need for manual typing of interfaces to match content types, a process that previously required hours of work and frequent updates. The plugin reads the schema and generates clean TypeScript types and a fully typed API client, providing full autocomplete and type safety. With a simple command, developers can generate types from their running Strapi instance, resulting in two generated files that include plain TypeScript interfaces and a StrapiClient with full autocomplete. This solution is framework-agnostic, works with native fetch, and supports Next.js caching and deduplication. The plugin is already powering a large production project and is actively maintained, with feedback and contributions welcome on GitHub and documentation available on the project's website.