Auto-Generated typesafe client & API docs generator for your Serverless Application (Svelte First)
Overview
Svetch is a powerful tool designed to simplify the development process for Svelte and SvelteKit applications by automatically generating a typesafe Fetch client. With its ability to handle input/output validation and create comprehensive API documentation, it minimizes the effort needed to maintain type safety, making it an ideal choice for developers looking to streamline their workflow. By scanning your server files, Svetch offers an intuitive experience that enhances the usability of API endpoints without requiring extensive changes to existing code.
Features
- Automatic Detection: Svetch scans your API files and automatically detects path, query, and body parameters, simplifying the integration of typesafe requests.
- Typesafety: Ensures that all API inputs and outputs are type-checked, significantly reducing potential runtime errors and improving overall code quality.
- Intellisense Support: Provides intelligent suggestions for API paths, making it easier for developers to reference and utilize different endpoints within their applications.
- OpenAPI Schema Generation: Automatically generates an OpenAPI compatible schema along with Swagger documentation, allowing developers to maintain clear documentation with minimal effort.
- Multiple Response Handling: Accurately handles various possible responses for each HTTP status code, streamlining error management and enhancing the reliability of API interactions.
- Minimal Code Alteration: Requires almost no changes to your existing API code, making it accessible for both seasoned developers and those new to Svelte/SvelteKit.
- Light Learning Curve: Easily augment your standard Fetch Client’s capabilities without needing to learn complex new syntax or methodologies.