kiwilan/laravel-typescriptable
Generate TypeScript types from your Laravel models, resources, and form requests, keeping frontend and backend in sync with automatically updated type definitions and minimal configuration.
openapi-typescript (heavier, schema-first, decoupled from Eloquent), or Laravel Wayfinder (routes only). This package is the narrow, cheap option when you're staying inside a Laravel/Inertia monolith and want models + routes + settings from one tool.Adopt when most of these hold:
git diff --exit-code after generating), so drift fails the build rather than silently shipping.Look elsewhere when:
For executives: A small, free (MIT), dev-time-only utility that removes a recurring class of bugs — frontend code calling backend fields and routes that no longer exist. It's low risk: it adds no production runtime dependency, its output is plain TypeScript files committed to the repo, and removing it is a one-line change. Cost is roughly a 1–2 day spike plus a CI step; the return is fewer late-stage defects and less back-and-forth between frontend and backend on every schema change.
For engineering: One generation step produces TypeScript types for Eloquent models, named routes, and Spatie Settings, so the frontend contract is derived from source instead of re-typed by hand. Wire generation into CI with a clean-diff check to make contract drift a build failure. Note the caveats honestly: it's a low-adoption package (single-maintainer risk), it's optimized for Inertia monoliths, and it won't fit a schema-first/OpenAPI setup. Treat it as an internal convenience with an easy exit — the escape hatch is falling back to hand-written types or OpenAPI, and the migration cost is low because nothing in production depends on it.
How can I help you explore Laravel packages today?