Domscribeのロゴ

Domscribe

組織
patchorbit

Domscribe is a pixel-to-code development tool that bridges the gap between running web applications and their source code.

公開者patchorbit
リポジトリdomscribe
言語TypeScript
フォーク
14
スター
192
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Domscribeは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには192件のスターと14件のフォークがあります。


AI coding agents edit your source files blind — they can't see your running frontend, and your frontend can't tell them where to look.

Domscribe bridges both directions: click a DOM element to tell your agent what to change, or let your agent query any source location to see exactly what it looks like live in the browser. Build-time stable IDs, deep runtime context (props, state, DOM), framework-agnostic, any MCP-compatible agent. Zero production impact.


Getting Started

bash
npx domscribe init

The setup wizard walks you through two steps:

  1. Connect your coding agent — select your agent (Claude Code, Copilot, Gemini, Kiro, or others) and the wizard installs the plugin automatically.
  2. Add to your app — select your framework and bundler, the wizard installs the right package and shows you the config snippet to add.

That's it. Start your dev server and you're ready to go.

Prefer to set things up manually, or need finer control? See the manual setup instructions below.


Features

Code → UI: Let the agent see the browser

Your agent calls domscribe.query.bySource with a file path and line number and gets back the live DOM snapshot, current props, component state, and rendered attributes — directly from the running browser. No human interaction needed.

[!TIP] Agents don't spontaneously query runtime state — prompt them explicitly: "Fix the button color — use domscribe to check what CSS classes it has before changing anything." Your dev server must be running with the target page open in the browser.

UI → Code: Point and tell

Click any element in the browser overlay, describe the change in plain English, and submit. Domscribe captures the element's source location, runtime context, and your instruction as an annotation. The agent claims it, navigates to the exact file and line, and implements the change. The overlay shows the agent's response in real time via WebSocket.

More

  • 🎯 Build-time stable IDs — deterministic data-ds attributes injected via AST, stable across HMR and fast refresh
  • 🧩 Framework-agnostic — React 18-19, Vue 3, Next.js 15-16, Nuxt 3+, with an extensible adapter interface
  • 📦 Any bundler — Vite 5-7, Webpack 5, Turbopack
  • 🔍 Deep runtime capture — live props, state, and DOM snapshots via React fiber walking and Vue VNode inspection
  • 🛡️ Zero production impact — all instrumentation stripped in production builds, enforced in CI
  • 🔒 PII redaction — emails, tokens, and sensitive patterns automatically scrubbed before leaving the browser
  • 📁 Annotations live in your repo — stored as JSON files in .domscribe/annotations/, exposed via REST APIs that MCP wraps for agent access
  • 📡 Real-time feedback — WebSocket relay pushes agent responses to the browser overlay as they happen

Manual Setup

[!NOTE] npx domscribe init handles both steps below automatically. Use manual setup only if you need finer control.

Domscribe has two sides: app-side (bundler + framework plugins) and agent-side (MCP for your coding agent). Both are needed for the full workflow.

App-Side — Add to Your Bundler

ts
// next.config.ts
import type { NextConfig } from 'next';
import { withDomscribe } from '@domscribe/next';

const nextConfig: NextConfig = {};

export default withDomscribe()(nextConfig);
ts
// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@domscribe/nuxt'],
});

Vite plugin:

ts
// vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { domscribe } from '@domscribe/react/vite';

export default defineConfig({
  plugins: [react(), domscribe()],
});

Webpack plugin:

js
// webpack.config.js
const { DomscribeWebpackPlugin } = require('@domscribe/react/webpack');

const isDevelopment = process.env.NODE_ENV !== 'production';

module.exports = {
  module: {
    rules: [
      {
        test: /\.[jt]sx?$/,
        exclude: /node_modules/,
        enforce: 'pre',
        use: [
          {
            loader: '@domscribe/transform/webpack-loader',
            options: { enabled: isDevelopment },
          },
        ],
      },
    ],
  },
  plugins: [
    new DomscribeWebpackPlugin({
      enabled: isDevelopment,
      overlay: true,
    }),
  ],
};

Vite plugin:

ts
// vite.config.ts
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { domscribe } from '@domscribe/vue/vite';

export default defineConfig({
  plugins: [vue(), domscribe()],
});

Webpack plugin:

js
// webpack.config.js
const { DomscribeWebpackPlugin } = require('@domscribe/vue/webpack');

const isDevelopment = process.env.NODE_ENV !== 'production';

module.exports = {
  module: {
    rules: [
      {
        test: /\.[jt]sx?$/,
        exclude: /node_modules/,
        enforce: 'pre',
        use: [
          {
            loader: '@domscribe/transform/webpack-loader',
            options: { enabled: isDevelopment },
          },
        ],
      },
    ],
  },
  plugins: [
    new DomscribeWebpackPlugin({
      enabled: isDevelopment,
      overlay: true,
    }),
  ],
};

Vite plugin:

ts
// vite.config.ts
import { defineConfig } from 'vite';
import { domscribe } from '@domscribe/transform/plugins/vite';

export default defineConfig({
  plugins: [domscribe()],
});

Webpack plugin:

js
// webpack.config.js
const {
  DomscribeWebpackPlugin,
} = require('@domscribe/transform/plugins/webpack');

const isDevelopment = process.env.NODE_ENV !== 'production';

module.exports = {
  module: {
    rules: [
      {
        test: /\.[jt]sx?$/,
        exclude: /node_modules/,
        enforce: 'pre',
        use: [
          {
            loader: '@domscribe/transform/webpack-loader',
            options: { enabled: isDevelopment },
          },
        ],
      },
    ],
  },
  plugins: [
    new DomscribeWebpackPlugin({
      enabled: isDevelopment,
      overlay: true,
    }),
  ],
};

Working examples: See packages/domscribe-test-fixtures/fixtures/ for complete app setups across every supported framework and bundler combination.

For plugin configuration options, see the @domscribe/transform README.

Monorepos

If your frontend app is in a subdirectory (e.g. apps/web), pass --app-root during init:

bash
npx domscribe init --app-root apps/web

Or run npx domscribe init and follow the prompts — the wizard asks if you're in a monorepo.

This creates a domscribe.config.json at your repo root that tells all Domscribe tools where your app lives. CLI commands (serve, stop, status) and agent MCP connections automatically resolve the app root from this config — no extra flags needed.

Agent-Side — Connect Your Coding Agent

Domscribe exposes 12 tools and 4 prompts via MCP. Agent plugins bundle the MCP config and a skill file that teaches the agent how to use the tools effectively.

Claude Code

shell
claude plugin marketplace add patchorbit/domscribe
claude plugin install domscribe@domscribe

GitHub Copilot

bash
copilot plugin install patchorbit/domscribe

Gemini CLI

bash
gemini extensions install https://github.com/patchorbit/domscribe

Amazon Kiro

Open the Powers panel → Add power from GitHub → enter https://github.com/patchorbit/domscribe/tree/main/domscribe-power.

Cursor

Any agent (Skills and MCP)

Install the Domscribe skills:

sh
npx skills add patchorbit/domscribe

Then add this MCP config to your agent:

json
{
  "mcpServers": {
    "domscribe": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@domscribe/mcp"]
    }
  }
}

How It Works

1. Inject. The bundler plugin parses each source file, injects HMR-stable data-ds IDs via xxhash64, and records each mapping in .domscribe/manifest.jsonl.

2. Capture. Framework adapters (React fiber walking, Vue VNode inspection) extract live props, state, and component metadata. The overlay UI lets you click any element and see its full context.

3. Relay. A localhost Fastify daemon connects the browser and your agent via REST, WebSocket, and MCP stdio. A file lock prevents duplicate instances across dev server restarts.

4. Agent. Your coding agent connects via MCP to query by source (see what any line looks like live) or process annotations (claim, implement, and respond to UI change requests).


Comparison

FeatureDomscribeStagewiseDevInspector MCPReact GrabFrontman
Build-time stable IDs✅ data-ds via AST❌ Runtime (CDP)❌ No stable IDs❌ _debugSource❌ Runtime framework introspection
DOM→source manifest✅ JSONL, append-only❌❌❌❌
Code→live DOM query✅ Agent queries source, gets live runtime❌❌❌❌
Runtime props/state✅ Fiber + VNode walking⚠️ Shallow⚠️ DOM-level + JS eval❌ HTML + component names only⚠️ Props only (framework APIs)
Multi-framework✅ React · Vue · Next.js · Nuxt · extensible⚠️ React only✅ React + Vue + Svelte + Solid + Preact❌ React only⚠️ Next.js + Astro + Vite
Multi-bundler✅ Vite + Webpack + Turbopack❌ N/A (Electron browser)✅ Vite + Webpack + Turbopack❌ N/A❌ Dev server middleware
MCP tools✅ 12 tools + 4 prompts❌ Proprietary protocol (Karton)✅ 9 tools⚠️ Lightweight add-on❌ Internal MCP only
Agent-agnostic✅ Any MCP client❌ Bundled Electron agent✅✅❌ Bundled Elixir agent
In-app element picker✅ Lit shadow DOM✅ Built-in browser selector✅ Inspector bar✅ Hover-to-capture✅ Chat interface
Source mapping✅ Deterministic (AST IDs)⚠️ AI-inferred⚠️ AST-injected (not stable)⚠️ _debugSource (workaround needed)⚠️ Runtime framework introspection
License✅ MIT⚠️ AGPL✅ MIT✅ MIT⚠️ Apache + AGPL

No single competitor combines build-time stable IDs, deep runtime capture, bidirectional source↔DOM querying, and an MCP tool surface in a framework-agnostic way.


MCP Tools

The agent-facing surface — tools, prompts, wire schemas, and error envelope — is listed below as a human-readable index.

ToolDescription
domscribe.query.bySourceQuery a source file + line and get live runtime context (props, state, DOM snapshot)
domscribe.manifest.queryFind manifest entries by file path, component name, or element ID
domscribe.manifest.statsManifest coverage statistics (entry count, file count, component count, cache hit rate)
domscribe.resolveResolve a data-ds element ID to its source location (file, line, col, component)
domscribe.resolve.batchResolve multiple element IDs in one call
domscribe.annotation.processAtomically claim the next queued annotation (prevents concurrent agent conflicts)
domscribe.annotation.respondAttach agent response and transition to PROCESSED
domscribe.annotation.updateStatusManually transition annotation status
domscribe.annotation.getRetrieve annotation by ID
domscribe.annotation.listList annotations with status/filter options
domscribe.annotation.searchFull-text search across annotation content
domscribe.verify.baselineCapture a pre-edit style/geometry snapshot of a rendered element
domscribe.verify.afterEditCompare the element against the baseline — deterministic verdict + per-property deltas
domscribe.statusRelay daemon health, manifest stats, queue counts

See the @domscribe/mcp README for detailed tool schemas, response formats, and prompt definitions.


Packages

PackageDescription
@domscribe/coreZod schemas, RFC 7807 error system, ID generation, PII redaction, constants
@domscribe/manifestAppend-only JSONL manifest, IDStabilizer (xxhash64), BatchWriter, ManifestCompactor
@domscribe/relayFastify HTTP/WS server, MCP stdio adapter, annotation lifecycle
@domscribe/transformParser-agnostic AST injection (Acorn, Babel, VueSFC), bundler plugins
@domscribe/runtimeBrowser-side ElementTracker, ContextCapturer, BridgeDispatch
@domscribe/overlayLit web components (shadow DOM), element picker, annotation UI
@domscribe/reactReact fiber walking, props/state extraction, Vite + Webpack plugins
@domscribe/vueVue 3 VNode resolution, Composition + Options API support, Vite + Webpack plugins
@domscribe/nextwithDomscribe() config wrapper for Next.js 15 + 16
@domscribe/nuxtNuxt 3+ module with auto-relay and runtime plugin
domscribeCLI binary (domscribe serve, status, stop, init, mcp)
@domscribe/mcpStandalone MCP server binary (domscribe-mcp)
@domscribe/test-fixturesBlack-box integration + e2e suite (not published)

Contributing

bash
pnpm install
nx run-many -t build test lint typecheck

Conventions are in .claude/rules/. PRs welcome.


License

MIT

DomscribeのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Domscribeに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Domscribeをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. DomscribeのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "domscribe": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてDomscribeのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. DomscribeのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Domscribeを使ってこのタスクを手伝ってもらえますか?
Domscribe
はい、読みました。
Domscribeで調べた結果をお伝えします。

よくある質問

Domscribe MCPサーバーは何に使いますか?

Domscribeは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでDomscribe MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでDomscribeを利用できます。

TypingMindでDomscribe MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Domscribeを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Domscribe MCPをTypingMindに接続するにはどうすればよいですか?

DomscribeはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでDomscribe MCPのどのようなツールを利用できますか?

DomscribeはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Domscribe MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Domscribeで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇