New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nuxt-devtools-opencode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-devtools-opencode

OpenCode integration for Nuxt DevTools - Embed OpenCode Web and send DOM context to AI

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Nuxt DevTools OpenCode

Embed an OpenCode Web instance inside Nuxt DevTools (Nuxt 4), and send selected DOM element context into OpenCode with an in-app picker.

Features

  • DevTools tab: Adds an “OpenCode” tab that launches and embeds opencode web.
  • Runs in app directory: opencode web is started with cwd = nuxt.options.rootDir.
  • Element picker → Clipboard: Press Ctrl+Shift+E, click an element, and the module copies route, selector, and component name to your clipboard.

Quick Setup

  • Install the module:
# npm
npm install nuxt-devtools-opencode

# pnpm
pnpm add nuxt-devtools-opencode

# yarn
yarn add nuxt-devtools-opencode
  • Add to your nuxt.config.ts:
export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: ["nuxt-devtools-opencode"],
  opencodeDevtools: {
    port: 4096,
    hostname: "127.0.0.1",
    // password: 'optional-basic-auth-password',
  },
});

Prereq: opencode must be available on your PATH (install OpenCode).

Contribution

Local 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

# Release new version
npm run release

Keywords

nuxt

FAQs

Package last updated on 25 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts