useVyre Context

useVyre component context for AI agents — valid props, variants, anti-patterns, and design tokens.

AI & MLTypeScriptv1.0.3

useVyre

AI-native design system for humans and agents. Built on semantic CSS variables — no runtime magic, no hallucinations.

MIT License npm usevyre.com


Why useVyre?

Most design systems were built for humans reading documentation. useVyre is built for both — every naming convention, token structure, and component API is designed so that AI coding agents (Claude, Cursor, Copilot, Windsurf) can generate correct, consistent UI without guessing.

ProblemuseVyre solution
AI hallucinates component propsEvery component has an inline AI context block
AI uses raw color valuesSemantic tokens replace all raw colors
AI generates inconsistent spacing4px grid enforced via spacing tokens
AI doesn't know valid variantsdata-variant API is explicit and enumerated
Design system only works in one frameworkCSS variables work everywhere

Packages

Core

PackageVersionDownloadsDescription
@usevyre/tokensnpmdownloadsDTCG-compliant design tokens → CSS variables, JS/TS, JSON
@usevyre/reactnpmdownloadsReact + TypeScript components
@usevyre/vuenpmdownloadsVue 3 + TypeScript components
@usevyre/initnpmdownloadsOne-command setup CLI (npx @usevyre/init)
@usevyre/all · react-all · vue-all——Convenience meta-packages (tokens + components in one install)

AI tooling

PackageVersionDownloadsDescription
@usevyre/ai-contextnpmdownloadsMachine-readable component schema for LLM system prompts
@usevyre/mcp-servernpmdownloadsMCP server — gives agents live access to the component schema
@usevyre/eslint-pluginnpmdownloadsLints for invalid variants, raw colors, hallucinated props
@usevyre/validate-ai-contextnpmdownloadsCI check that the AI context stays in sync with components
@usevyre/prompt-templatesnpmdownloadsReady-made prompts for generating UI with useVyre

Components

40+ production-ready components for React and Vue — buttons, forms (Input, Field, Radio, Checkbox, Select), overlays (Modal, Sheet, Popover, Tooltip), data (DataGrid, Table, Pagination), layout (Sidebar/AppLayout, Card, Tabs), and richer pieces like Kanban, Conversation (chat), DateRangePicker, and a zero-dependency RichTextEditor — plus more on the way.

Every component ships with an inline AI-context block, a machine-readable schema entry, and documented anti-patterns.

Browse the full list with live demos → usevyre.com/docs/components


Quick Start

# React
npm install @usevyre/tokens @usevyre/react

# Vue 3
npm install @usevyre/tokens @usevyre/vue
// Import once at your app entry point
import "@usevyre/react/styles";   // tokens + component styles (one import)

import { Button, Card, DataGrid } from "@usevyre/react";

Full setup guide → usevyre.com/docs/installation


Examples

Real, multi-page layouts built entirely from useVyre components:


Design Principles

  1. Semantic over primitive — --vyre-color-semantic-accent not --amber-400
  2. Explicit over implicit — every valid value is documented inline
  3. Zero runtime — pure CSS variables, works in any framework
  4. AI-first naming — token names describe intent, not appearance
  5. Copy-paste friendly — no mandatory build setup, just import CSS and go

Monorepo Structure

usevyre/
├── packages/
│   ├── tokens/                @usevyre/tokens
│   ├── react/                 @usevyre/react
│   ├── vue/                   @usevyre/vue
│   ├── all/ react-all/ vue-all/   convenience meta-packages
│   ├── ai-context/            @usevyre/ai-context
│   ├── mcp-server/            @usevyre/mcp-server
│   ├── eslint-plugin/         @usevyre/eslint-plugin
│   ├── validate-ai-context/   @usevyre/validate-ai-context
│   └── prompt-templates/      @usevyre/prompt-templates
├── apps/
│   └── docs/                  usevyre.com documentation site
└── README.md

Local Development

Run the docs site locally to browse all component examples and live demos.

Prerequisites: Node.js ≥ 18, pnpm ≥ 9

# 1. Clone and install
git clone https://github.com/gapra/usevyre.git
cd usevyre
pnpm install

# 2. Build design tokens (required — components import CSS variables from here)
pnpm --filter @usevyre/tokens build

# 3. Start the docs dev server
pnpm --filter @usevyre/docs dev

Open http://localhost:4321 in your browser.

Shortcut — tokens build + dev server in one command:

pnpm dev:docs

Contributing

This project is in early development. Feedback, ideas, and bug reports are very welcome — open an issue to get started.


License

MIT © Gapra

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y @usevyre/mcp-server

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-gapra-usevyre-context": {
      "command": "npx",
      "args": [
        "-y",
        "@usevyre/mcp-server"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

@usevyre/mcp-servernpm

Compatible MCP Clients

useVyre Context works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More