0.9.5 • Published 8 months ago

nuxt-open-fetch v0.9.5

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Nuxt Open Fetch

Nuxt Open Fetch

npm version License Nuxt

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.

⚠️ APIs are subject to change. All ideas/suggestions are welcome! :)

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

  1. Add nuxt-open-fetch dependency to your project
# Using pnpm
pnpm add -D nuxt-open-fetch

# Using yarn
yarn add --dev nuxt-open-fetch

# Using npm
npm install --save-dev nuxt-open-fetch
  1. Add nuxt-open-fetch to the modules section of nuxt.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

# Release new version
pnpm release

License

Made with 💚

Published under the MIT License.

0.9.4

8 months ago

0.9.3

8 months ago

0.9.5

8 months ago

0.9.2

9 months ago

0.9.0

12 months ago

0.9.1

12 months ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.5

1 year ago

0.6.3

1 year ago

0.6.4

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.4.6

1 year ago

0.5.0

1 year ago

0.4.5

1 year ago

0.4.4

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

2 years ago

0.1.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.1.2

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.2.2

2 years ago

0.1.3

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago