SvelteKit Auto OpenAPI
Type-safe OpenAPI generation and runtime validation for SvelteKit
⚠️ Warning - This library is in early development (v0) and not recommended for production use. APIs may change, and there may be undiscovered bugs. Use at your own risk.
Automatic Inference
Generates OpenAPI schemas by analyzing your request.json<Type>() calls
Interactive Documentation
Built-in Scalar integration for beautiful API references
Zero Boilerplate
Works directly with standard SvelteKit +server.ts files
Hot Reload
OpenAPI schemas update instantly as you modify routes
Optimized for production
Each file loads the validation that concerns it, nothing more
Type Safety
Full TypeScript support with type inference from schemas