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.
Architecture fit
tsc.spatie/laravel-typescript-transformer. The differentiator is the combined surface (models + routes + settings) and the optional NPM/Inertia package; that is a convenience win, not a moat.Integration feasibility
composer require, publish config, run an artisan generation command, commit or emit the output. No middleware, no service provider wiring in the request lifecycle.Technical risk
$appends, JSON columns, nullable columns, and relationship attributes are all places where a generator can emit a plausible-but-wrong type. Wrong types are worse than no types because they produce false confidence at compile time.Key questions
$appends, and relationships typed correctly, and how are ambiguous/unknown types handled (fail, any, unknown)?Stack fit
Migration path
.d.ts files into a dedicated directory (e.g. resources/js/types/generated/) and leave hand-written interfaces untouched. Nothing breaks if the experiment is abandoned.tsc --noEmit in CI.Compatibility
Sequencing
$appends.composer types:generate script and a CI job that regenerates and fails on a non-empty diff (drift gate).Maintenance
Support
spatie/laravel-typescript-transformer.Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?