Projects
View on GitHub
Norbiros/nuxt-open-fetch
About
Generate zero-overhead, typed OpenAPI clients for Nuxt.
Web & App DevelopmentWhat you can do
- ๐น No manual typing of your API
- ๐ Supports OpenAPI 3.0 and 3.1 (including advanced features like discriminators)
- ๐ฒ Uses runtime-free types that outperform old-school codegen
- ๐ก Load schemas from YAML or JSON, locally or remotely
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalNuxt Open Fetch
Generate zero-overhead, 100% typed OpenAPI clients for Nuxt.
In other words - $fetch and useFetch on steroids. Uses awesome openapi-typescript generator under the hood.
[!WARNING] APIs are subject to change before
v1.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 ๐
Features
- ๐น No manual typing of your API
- ๐ Supports OpenAPI 3.0 and 3.1 (including advanced features like discriminators)
- ๐ฒ Uses runtime-free types that outperform old-school codegen
- ๐ก Load schemas from YAML or JSON, locally or remotely
- ๐ฅ Works with Nuxt Layers
Quick Setup
- Add
nuxt-open-fetchdependency to your project
# Using pnpm
pnpm add -D nuxt-open-fetch
# Using yarn
yarn add --dev nuxt-open-fetch
# Using bun
bun add -D nuxt-open-fetch
# Using npm
npm install --save-dev nuxt-open-fetch
- Add
nuxt-open-fetchto themodulessection ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-open-fetch'
]
})
That's it! You can now use nuxt-open-fetch in your Nuxt app โจ
Development
# Install dependencies
pnpm install
# Generate type stubs
pnpm dev:prepare
# Develop with the playground
pnpm dev
# Build the playground
pnpm dev:build
# Run ESLint
pnpm lint
# Run Vitest
pnpm test
pnpm test:watch
pnpm test --project nuxt
pnpm test --project types
# Release new version
pnpm release
License
Made with ๐
Published under the MIT License.
Explore related projects
Loadingโฆ
