@bicou/nuxt-urql

Nuxt URQL module
63,478 23
Install
npm install @bicou/nuxt-urql
Latest Version:1.11.4
Vue:3
License:MIT
Last Updated:Oct 5, 2026
Links: GitHub  ·  npm
Maintainer: bicou

Nuxt URQL module

npm version npm downloads License Nuxt

URQL client for Nuxt v3 and v4

Features

  • @urql/vue integration
  • SSR exchange
  • client customization

Quick Setup

Add @bicou/nuxt-urql dependency to your project

# Using pnpm
pnpm add -D @bicou/nuxt-urql graphql

# Using yarn
yarn add --dev @bicou/nuxt-urql graphql

# Using npm
npm install --save-dev @bicou/nuxt-urql graphql

Add @bicou/nuxt-urql to the modules section of nuxt.config.ts and configure the urql client with the endpoint url

export default defineNuxtConfig({
  modules: [
    '@bicou/nuxt-urql'
  ],
  urql: {
    endpoint: "http://myapi/graphql"
  }
})

That's it! You can now use Nuxt URQL module in your Nuxt app ✨

<template>
  <div>{{ data }}</div>
</template>

<script setup lang="ts">
const { data } = await useQuery({
  query: gql`
    query name {
      # ...
    }
  `,
});
</script>

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

Related Packages

@bicou/prosemirror-render-vue

Vue plugin to render ProseMirror JSON data

4,461 10
@bicou/prosemirror-render-nuxt

Nuxt module to render ProseMirror JSON data

4,245 10

Version History

Version Released License
1.11.4 MIT
1.11.3 MIT
1.11.2 MIT
1.11.1 MIT
1.11.0 MIT