@winstonfassett/webdev-vite
v0.1.1
Published
Vite plugin for webdev — live browser observability for AI agents
Downloads
364
Maintainers
Readme
@winstonfassett/webdev-vite
Vite plugin for webdev — live browser observability for AI agents during development.
Install
npm install -D @winstonfassett/webdev-vite @winstonfassett/webdev-gatewayVite
// vite.config.ts
import { webdev } from '@winstonfassett/webdev-vite'
export default defineConfig({
plugins: [webdev()],
})Gateway auto-starts. No separate terminal needed.
MCP endpoint: http://localhost:3333/__mcp/sse
Storybook
// .storybook/main.ts
export default {
addons: ['@winstonfassett/webdev-vite/storybook'],
}Vite DevTools dock
If @vitejs/devtools is installed in the host app, this plugin auto-registers a webdev-ai panel in the DevTools dock that iframes the gateway admin UI scoped to the current Vite server. No config needed:
// vite.config.ts
import { DevTools } from '@vitejs/devtools'
import { webdev } from '@winstonfassett/webdev-vite'
export default defineConfig({
plugins: [DevTools(), webdev()],
})@vitejs/devtools is an opt-in peer dep. If not installed, the devtools.setup hook is never called — zero runtime cost.
Options
webdev({
gateway: 'http://localhost:3333', // Gateway URL (default)
serverType: 'vite', // 'vite' | 'storybook' | 'generic'
})License
MIT
