Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Generate zero-overhead, 100% typed OpenAPI clients for Nuxt with $fetch and useFetch support.
Nuxt Open Fetch is a Nuxt module that generates zero-overhead, fully typed OpenAPI clients, turning $fetch and useFetch into type-safe composables for Nuxt applications.
Nuxt Open Fetch is an open-source Nuxt module that consumes an OpenAPI specification (OpenAPI 3.0 or 3.1) in JSON or YAML format, loaded either from a local file or a remote URL, and generates TypeScript types and typed fetch composables for your Nuxt app. It builds on the openapi-typescript generator to produce runtime-free types that give full IDE autocompletion and end-to-end type safety without a code generation step at runtime. The module is published under the MIT License and maintained by Norbiros, with development led on GitHub.
$fetch and useFetch on steroids: Provides typed wrappers around Nuxt's built-in fetch functions.useFetch or $fetch with automatic typing of response bodies, query parameters, and request bodies based on your OpenAPI spec.After installing the module with your package manager and adding it to the modules section of nuxt.config.ts, the module reads your OpenAPI schema and generates TypeScript definitions that Nuxt's fetch composables use. You do not run a separate generation command; the module wires it into your build pipeline.
Nuxt Open Fetch is free and open source under the MIT License. There are no paid tiers or subscription plans.
Yes, the module is published under the MIT License, so you can use, modify, and embed it in commercial projects without fees.
Nuxt Open Fetch supports OpenAPI 3.0 and 3.1, including features like discriminators, and loads schemas from YAML or JSON, locally or remotely.
No. The module generates types directly from your OpenAPI schema, so there is no manual typing of API requests or responses.
The module is still pre-1.0, and the API is subject to change before v1.0.0. The project maintains a changelog and welcomes suggestions.
