Skip to content

This page lists the public plugin entry points exposed by Vibenv packages.

Vite plugins

viteVibeServer()

From @vibenv/vite-plugins/vite-vibe-server.js.

  • Mounts the Vibe server router at /_vibe-agent on the Vite dev server.
  • Registers express.json() before the router.

relativeAgentPlugin(src?: string)

From @vibenv/vite-plugins/relative-agent-plugin.js.

  • Injects <script async type="module" src="/vibeagent.js"> into the HTML head.
  • src defaults to "/vibeagent.js".

devAgentPlugin()

From @vibenv/vite-plugins/dev-agent-plugin.js.

  • Injects <script async type="module" src="http://localhost:5173/src/main.ts"> into the HTML head.

agentEnvProviderVitePlugin()

From @vibenv/vite-plugins/agent-env-provider-vite-plugin.js.

  • Defines the global __PROJECT_ROOT__ constant via Vite define.

Webpack plugins

new WebpackVibeServerPlugin()

From @vibenv/webpack-plugins/webpack-vibe-server.js.

  • Attaches the Vibe server router to devServer.setupMiddlewares.
  • Registers express.json() before the router.

new RelativeAgentWebpackPlugin(src?: string)

From @vibenv/webpack-plugins/relative-agent-webpack-plugin.js.

  • Injects <script async type="module" src="/vibeagent.js"> into all HTML assets.
  • src defaults to "/vibeagent.js".

new WebpackVibeAgentHandlerPlugin(route?: string)

From @vibenv/webpack-plugins/webpack-vibe-agent-handler-plugin.js.

  • Registers an Express route on webpack-dev-server that serves the built agent bundle.
  • route defaults to "/vibeagent.js" and should match the injected script URL.
  • Resolves the bundle via the @vibenv/vibe-agent/vibeagent.js package export using import.meta.resolve with a require.resolve fallback.

new DevAgentWebpackPlugin({ scriptUrl }?)

From @vibenv/webpack-plugins/dev-agent-webpack-plugin.js.

  • Injects <script async type="module" src="http://localhost:5173/src/main.ts"> into index.html.
  • scriptUrl overrides the default.

new AgentEnvProviderWebpackPlugin()

From @vibenv/webpack-plugins/agent-env-provider-webpack-plugin.js.

  • Defines the global __PROJECT_ROOT__ constant using DefinePlugin.

Framework plugins

VuePluginExtractFiles

From @vibenv/framework-plugins/vue-plugin-extract-files.js.

  • Adds data-component-file and data-component-name attributes to component root elements.
  • Can be disabled with enabled: false in the plugin options.

nuxt4VibenvModule({ src }?)

From @vibenv/framework-plugins/nuxt4-vibenv-module.js.

  • Injects a module script into Nuxt's head config.
  • src defaults to "/src/main.ts".