Getting started

Install uidex, mount the SDK, and verify that the registry is populated.

uidex is a static-analysis + runtime tracking system for UIs. The CLI scans your source for data-uidex* attributes and export const uidex = {...} declarations and emits a typed registry (src/uidex.gen.ts) that the runtime SDK consumes to power overlays, the command palette, and acceptance-driven tooling.

This page walks through installing the package, generating the registry, and mounting the SDK in a Next.js or Vite app.

Install

Generate the registry

The scanner writes src/uidex.gen.ts (configurable via .uidex.json) — commit this file. Consumers import types from it directly.

A minimal .uidex.json:

Mount the SDK

In your app's root layout, render <UidexDevtools>. It handles instance creation, registry loading, and the overlay shell in a single component.

To send feedback to the uidex cloud dashboard, pass a project key:

Verify

Annotate one element and one page:

Re-run the scanner:

Open your app and press ⌘K (or Ctrl+K) — the command palette lists every registered entity, including the new home page and settings-link element.

Next steps