@caipira/vue-graphiql
| Install | |
|---|---|
npm install @caipira/vue-graphiql |
|
| Latest Version: | 0.0.16 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jul 23, 2026 |
| Links: | GitHub · npm |
@caipira/vue-graphiql
The GraphiQL IDE for vuejs

Install
npm install @caipira/vue-graphiql
The editor runs on CodeMirror 6, provided through the @caipira/tamandua
CodeEditor host. So that the whole app shares a single CodeMirror instance
(CodeMirror relies on module-identity checks), those packages are optional peer
dependencies and must be installed by the consuming app:
npm install @caipira/tamandua \
@codemirror/state @codemirror/view @codemirror/language \
@codemirror/commands @codemirror/autocomplete @codemirror/lang-json \
@codemirror/lint @lezer/common @lezer/highlight
cm6-graphql (schema-driven autocomplete/validation/hover) is bundled and needs
no extra install. No editor worker or bundler plugin is required - CodeMirror
needs none.
If your app also imports
@codemirror/*directly and pre-bundles deps with Vite, addresolve.dedupe+optimizeDeps.includefor the CodeMirror core so only one copy of@codemirror/stateetc. exists at runtime.
Usage
Import the component and the style file:
<script lang="ts" setup>
import { GraphiQL } from '@caipira/vue-graphiql';
const theme = 'dark'; // light | dark, can be a computed prop, optional
const namespace = ''; // namespace local storage cache, optional
</script>
<template>
<GraphiQL
url="/graphql"
:theme="theme"
:namespace="namespace"
/>
</template>
<style>
@import '@caipira/vue-graphiql/style.css';
</style>
Breaking change (Monaco -> CodeMirror)
This release replaces Monaco with CodeMirror 6. If you are upgrading:
- Remove
vite-plugin-monaco-editor,monaco-editorandmonaco-graphqlfrom your app and drop the Monaco worker wiring from yourvite.config. - The
monacoViteConfigexport has been removed; delete themonacoEditorPlugin(monacoViteConfig)plugin from your Vite config. - Install the CodeMirror optional peer dependencies listed under Install above.
License
MIT
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.16 | >=3.0.0 | MIT | |
| 0.0.15 | >=3.0.0 | MIT | |
| 0.0.14 | >=3.0.0 | MIT | |
| 0.0.13 | >=3.0.0 | MIT | |
| 0.0.12 | >=3.0.0 | MIT | |
| 0.0.10 | >=3.0.0 | MIT | |
| 0.0.9 | >=3.0.0 | MIT | |
| 0.0.8 | >=3.0.0 | MIT | |
| 0.0.7 | >=3.0.0 | MIT | |
| 0.0.5 | >=3.0.0 | ||
| 0.0.4 | >=3.0.0 | ||
| 0.0.3 | >=3.0.0 | ||
| 0.0.2 | >=3.0.0 | ||
| 0.0.1 | >=3.0.0 |