- Notifications
You must be signed in to change notification settings - Fork20
Generate zero-overhead, typed OpenAPI clients for Nuxt.
License
Norbiros/nuxt-open-fetch
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Generate zero-overhead, 100% typed OpenAPI clients for Nuxt.
In other words -$fetch
anduseFetch
on steroids. Uses awesomeopenapi-typescript generator under the hood.
Warning
APIs are subject to change beforev1.0.0
.All ideas/suggestions are welcome!
Important
Special thanks to @enkot for creating the original module - this project wouldn't be possible without your work 🎉
- 🍹 No manual typing of your API
- 🍋 Supports OpenAPI 3.0 and 3.1 (including advanced features likediscriminators)
- 🌲 Uses runtime-free types that outperform old-school codegen
- 📡 Load schemas from YAML or JSON, locally or remotely
- 🥞 Works with NuxtLayers
- Add
nuxt-open-fetch
dependency to your project
# Using pnpmpnpm add -D nuxt-open-fetch# Using yarnyarn add --dev nuxt-open-fetch# Using bunbun add -D nuxt-open-fetch# Using npmnpm install --save-dev nuxt-open-fetch
- Add
nuxt-open-fetch
to themodules
section ofnuxt.config.ts
exportdefaultdefineNuxtConfig({modules:['nuxt-open-fetch']})
That's it! You can now usenuxt-open-fetch
in your Nuxt app ✨
# Install dependenciespnpm install# Generate type stubspnpm dev:prepare# Develop with the playgroundpnpm dev# Build the playgroundpnpm dev:build# Run ESLintpnpm lint# Run Vitestpnpmtestpnpm test:watch# Release new versionpnpm release
Made with 💚
Published under theMIT License.
About
Generate zero-overhead, typed OpenAPI clients for Nuxt.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors15
Uh oh!
There was an error while loading.Please reload this page.