Generate Remote Functions from OpenAPI Specs
"
sveltekit-openapi-remotelets you generate typed SvelteKit remote functions (query, command, form) directly from OpenAPI specs.Point it at your API spec and get ready-to-use server functions with full type safety!
- You provide an OpenAPI spec (URL, file path, or pre-generated api.d.ts)
- The CLI generates TypeScript types via openapi-typescript
- It parses those types and generates SvelteKit remote function files
- Your app imports these generated functions and uses them with full type safety
The generated functions use SvelteKit's
query(),command(), andform()from$app/server,wired up to your API through openapi-fetch."