API Type & Contract Generator
Automates the creation of TypeScript types, application contracts, and data adapters for seamless API integrations.
This skill streamlines the process of integrating backend APIs into SvelteKit or TypeScript applications by generating a robust three-tier data architecture. It automatically creates raw API types that mirror the source, clean application contracts for internal use, and pure adapter functions to handle the transformation between the two. By adhering to specific architectural guidelines, it ensures consistent data handling, manages complex transformations like case conversion and date parsing, and validates the output against the project's TypeScript configuration to maintain high code quality.
주요 기능
01Automatic generation of snake_case API mirror types
02Integrated validation using Svelte-check and TypeScript
03Bi-directional adapter functions for inbound and outbound data
0410 GitHub stars
05Automated data transformation for dates and currency units
06Creation of clean, camelCase application contracts
사용 사례
01Integrating a new REST API endpoint into a SvelteKit project
02Standardizing data transformation logic between backend and frontend
03Rapidly prototyping frontend data models from raw JSON response examples