Programmazione AI e strumenti per sviluppatori

UI SDK (vercel-labs/ui)

vercel-labs/ui

Apache-2.0 headless behavior library from Vercel Labs that lets AI coding agents assemble accessible keyboard navigation, focus recovery, popups, and ARIA across React, Vue, Svelte, Solid, and Web Components.

★ 7KStelle
⑂ 246Fork
142Problemi aperti
TypeScriptLingua
Apache-2.0Licenza
Q85Punteggio editoriale

Panoramica

UI SDK is an open-source behavior primitive library engineered for AI agents and frontend teams building interactive web interfaces. Instead of bundling opinionated visual themes, `@ui-sdk/core` concentrates interaction mechanics—keyboard navigation, focus management, selection, dismissal, popups, drag-and-drop, typeahead, and corresponding ARIA semantics—into composable `definePrimitive` state machines. Framework packages render identical component anatomy through `createParts` across React, Vue, Svelte, Solid, and native Web Components. Created on October 26, 2026, the repository reached over 7,000 GitHub stars in under a month alongside frequent beta releases and a companion agent skill package.

Funzionalità principali

  • Framework-agnostic interaction & ARIA primitives in `@ui-sdk/core`
  • Official adapters for React, Vue, Svelte, Solid, and Web Components via `createParts`
  • Dedicated `ui-sdk` agent skill (`npx skills@latest add vercel-labs/ui --skill ui-sdk`)
  • Built-in focus recovery, popup, selection, typeahead, dismissal, and drag-and-drop behaviors
  • Apache-2.0 open-source license with active daily commits

Requisiti, installazione e avvio rapido

1. Install core and your target framework adapter via npm (React shown below; swap `@ui-sdk/react` for `@ui-sdk/vue`, `@ui-sdk/svelte`, `@ui-sdk/solid`, or `@ui-sdk/web`):
npm install @ui-sdk/react @ui-sdk/core
2. Install the UI SDK skill into compatible coding agents:
npx skills@latest add vercel-labs/ui --skill ui-sdk
3. Define behavior primitives using `definePrimitive` and bind DOM slots with `createParts`.

Utilizzo

Compose stateful primitives with `definePrimitive` (wiring behaviors such as `createFocusRecovery`, `createPopup`, `createSelection`, or `createTypeahead` onto semantic slots like `input` and `clear`), then map each slot to real elements in React, Vue, Svelte, Solid, or Web Components via `createParts`.

Compatibilità del modello e casi d'uso

Model-agnostic developer toolkit; ships a dedicated `ui-sdk` skill installable via `npx skills@latest add vercel-labs/ui --skill ui-sdk` for coding agents.

Note su licenza e rischi

Apache-2.0 License in repository LICENSE.

Editorial source review: README, repository metadata, release feed and LICENSE read; no install test.

Rilascio e manutenzione

Published in beta (`@ui-sdk/web@0.1.0-beta.16` and `@ui-sdk/core@0.1.0-beta.16`); subject to Vercel public beta terms.

ECC

affaan-m/ECC

★ 248,8KJavaScript

ponytail

DietrichGebert/ponytail

★ 126,8KJavaScript

claude-mem

thedotmack/claude-mem

★ 93,2KJavaScript