# vercel-labs/ui

> ui is a library of behaviors for agents to build the next generation of user interfaces. It provides keyboard navigation, focus, selection, dismissal, popups, and drag and drop, along with the ARIA attributes they need. The core is written in TypeScript and has adapters for React, Vue, Svelte, Solid and Web Components.

Source: https://github.com/vercel-labs/ui
Indexed: commit 724a7d6 on 2026-11-14 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: TypeScript
- Stars: 4,308 at index time
- License: Apache-2.0
- Code health: 8.6/10, Excellent
- Last commit: 2026-11-13
- Contributors: 3

## Install

From the README: https://github.com/vercel-labs/ui#install

Install core and the React adapter from npm.
    npm install @ui-sdk/react @ui-sdk/core

Add the UI SDK skill for your agent.
    npx skills add vercel-labs/ui --skill ui-sdk

## How it works

Behaviors are implemented in the core package, whose entry point is packages/core/src/index.ts. Framework adapters such as packages/svelte/src/index.ts, packages/vue/src/index.ts and packages/solid/src/index.ts connect those behaviors to each framework. A component is built by creating a primitive with behaviors, and createParts renders that primitive into parts such as Root, Input and Clear. The apps/playground/src/main.ts entry point runs the playground app, and apps/docs holds the documentation site. The same parts are produced in every supported framework.

- apps/playground/src/main.ts: entry point
- packages/core/src/index.ts: entry point
- packages/solid/src/index.ts: entry point
- packages/svelte/src/index.ts: entry point
- packages/vue/src/index.ts: entry point
Modules: examples, packages, tests, apps, scripts, root. 6,358 files, 468,506 lines, 21,510 symbols.

## Code health

- Score: 8.6/10 (Excellent)
- Rank: #21 of 4,000+ indexed repos
- Hotspots: packages/core/test/agent.test.ts, packages/core/src/page/agent/agent.ts, apps/docs/lib/data-attributes.ts, packages/core/test/create-popup.test.ts, apps/docs/components/home-posters.tsx
- Lowest file: packages/core/src/page/agent/agent.ts
- Dead code: 5 findings

## Maintenance

- Last commit 2026-11-13, first commit 2026-10-26, 449 commits
- 3 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/vercel-labs/ui/security

## More

- Page: https://repowise.dev/repo/vercel-labs/ui
- Ask this codebase: https://repowise.dev/repo/vercel-labs/ui/chat
- Docs: https://repowise.dev/repo/vercel-labs/ui/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/vercel-labs/ui
