Getting Started

Installation

Learn how to install Compodium in your application.

Setup

With Nuxt

Install Compodium

pnpm add -D @compodium/nuxt

Add the Compodium plugin to your nuxt.config.ts

nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@compodium/nuxt']
})

That's it! You can now access compodium from the Nuxt Devtools or on /__compodium__/devtools.

With Vue

Install Compodium

pnpm add -D @compodium/vue

Add the Compodium plugin to your vite.config.ts

vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
import { compodium } from '@compodium/vue'

export default defineConfig({
  plugins: [
    vue(),
    vueDevTools(),
    compodium()
  ]
})

Include compodium types in your tsconfig.app.json

tsconfig.app.json
{
  "include": [
    "src/**/*.ts",
    "src/**/*.tsx",
    "src/**/*.vue",
    "node_modules/@compodium/vue/dist/index.d.ts"
  ],
}

That's it! You can now access compodium from the Vue Devtools or on /__compodium__/devtools.

© 2025 Romain Hamel