SvelteKit Auto OpenAPI
Type-safe OpenAPI generation and runtime validation for SvelteKit
Type-safe OpenAPI generation and runtime validation for SvelteKit. Write standard SvelteKit code, get documented APIs for free.
Automatic Inference
Generates OpenAPI schemas by analyzing your request.json<Type>() calls
Runtime Validation
Validates requests using JSON Schema with StandardSchema support (Zod, Valibot, TypeBox, ArkType)
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
Type Safety
Full TypeScript support with type inference from schemas
On this page