projects /

Directus TypeScript Typegen Extension

Screenshot of a custom Directus admin extension called "TypeScript TypeGen," showing generated TypeScript schema/interfaces on the left (with a "Copy to clipboard" button) and configuration options on the right for required-field nullability, type prefix/suffix, and output style (interface vs type) to produce Directus SDK-ready types.
Work in Progress

TL;DR: Directus TS Typegen is an open-source Directus extension and CLI that generates accurate TypeScript types from a Directus instance to improve SDK type safety and developer experience. I built and actively maintain it based on real production pain points, and to my knowledge it is currently the only public package covering all Directus JSON field variants and relation types (including M2A); it is already used by my team and publicly available (7 GitHub stars).

Directus TS Typegen on GitHub
Last updated