reopt designreopt design
DocsExploreToolsPricingBuilder
Start
Overview
Build & Operate
Debugging Guide
Usage Playbook
Bridge Integration
Oopt-devtool
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • GitHub
  • Terms of Service
  • Privacy Policy

© 2026 reopt-ai. All rights reserved.

Start
  1. Docs
  2. /
  3. Start
  4. /
  5. Overview

opt-devtool

A devtools layer that consolidates the development-time diagnostic experience for opt-ui, opt-datagrid, opt-editor, and opt-shell inside a single global overlay — including the built-in opt-ui debugger.

reopt design · Updated Jun 26, 2026

개요Debugging GuideUsage PlaybookBridge Integration
실제 제품 코드를 바꾸지 않고 개발 중 상태를 추적하려는 엔지니어opt-devtool

dev-only overlay, opt-ui debugger migration, datagrid/editor/harness bridge, cross-module inspection surface를 담당합니다.

전역 dev overlay와 hotkeyopt-ui focus/tab/spatial inspectiondatagrid/editor/harness snapshot bridges개발 전용 debug workflow

1. Why it's a separate package

opt-devtool is not UI exposed to the product runtime — it's the devtool layer used to read state and verify boundaries while building each opt module in the design project. The debugger that used to live inside opt-ui moved here so a single mounted overlay can host per-module snapshot tabs together.

Built-in opt-ui debugger

Ships with default tabs for focus tracing, tab order, spatial navigation, and composite bounds.

Plugin registry

opt-datagrid, opt-editor, brandapp, opt-shell, and theme bridges register per-page snapshots in the same overlay. editor and brandapp get dedicated top-level tabs.

Development-only runtime

It is not part of the production product UI — its purpose is to help diagnose causes, verify contracts, and inspect workflows during development.

2. Root mount

Wrap the registry with OptDevtoolProvider at the app root, and render OptDevtool once in development mode. Each screen then registers its own tab via a bridge hook.

tsx
import { OptDevtool, OptDevtoolProvider } from "@reopt-ai/opt-devtool";

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="ko">
      <body>
        <OptDevtoolProvider>
          {children}
          {process.env.NODE_ENV === "development" ? <OptDevtool /> : null}
        </OptDevtoolProvider>
      </body>
    </html>
  );
}

3. Entrypoints and bridges

Import the root overlay from @reopt-ai/opt-devtool, and import engine bridge hooks from subpath exports. The package exports datagrid, editor, brandapp, harness, theme, and ui as separate entrypoints.

tsx
import { OptDevtool, OptDevtoolProvider } from "@reopt-ai/opt-devtool";
import { OPT_DEVTOOL_CONFIGURE_EVENT } from "@reopt-ai/opt-devtool/ui";
import { useDataGridDevtoolBridge } from "@reopt-ai/opt-devtool/datagrid";
import { useEditorDevtoolBridge } from "@reopt-ai/opt-devtool/editor";
import { useBrandappDevtoolBridge } from "@reopt-ai/opt-devtool/brandapp";
import { useShellDevtoolBridge } from "@reopt-ai/opt-devtool/harness";
import { useThemeDevtoolBridge } from "@reopt-ai/opt-devtool/theme";

4. Overlay surface

AreaRole
opt-uiTraces the focused element, component chain, tab order, event log, and spatial candidates.
DataGridExposes active cell, selection, editing state, visible region, history, and draft errors as snapshots.
EditorReads spec version, selection IDs and types, root and element count, undo/redo, focus target, external stream, and state store key count.
BrandappExposes Brandapp ID, masked client ID, auth/env/EAV/AI state, and route wiring as snapshots.
HarnessShows manifest, density, content width, state boundary, and adapter chrome state per page shell.
ThemeConsumes Shell theme events and displays preset/generated tokens, seed palette, and contrast pairs.

5. Next docs

Debugging Guide

Ctrl+Shift+F overlay, focus tracing, tab order, spatial navigation 점검 절차를 정리합니다.

Usage Playbook

개발 중 어떤 탭과 snapshot을 확인해야 하는지 상황별 opt-devtool 활용 루틴을 정리합니다.

Bridge Integration

opt-datagrid, opt-editor, opt-shell snapshot bridge를 페이지에 연결하는 방법을 설명합니다.

NextDebugging GuideCtrl+Shift+F overlay, focus tracing, tab order, spatial navigation 점검 절차를 정리합니다.Build & Operate