npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xdev-asia/ui

v4.17.1

Published

xdev-ui: design tokens and React components for the xDev agent workspace.

Readme

xdev-ui

Design tokens and React components for the xDev agent workspace. Published as @xdev-asia/ui on npmjs.com (and GitHub Packages).

Install

@xdev-asia/ui is on npmjs.com, so no registry line or token is needed:

pnpm add @xdev-asia/ui

Each release is also on GitHub Packages (@xdev-asia:registry=https://npm.pkg.github.com in .npmrc, with a token that has read:packages), for setups that already read from there.

Use

import "@xdev-asia/ui/styles.css";      // tokens + all component CSS
import "@xdev-asia/ui/fonts.css";       // optional: Roboto + JetBrains Mono (Google Fonts)
import { Button, TabStrip, BrandMark } from "@xdev-asia/ui";

<html data-theme="dark">                // or "light"
<Button variant="primary" icon="plus">Create session</Button>

| export | content | |---|---| | @xdev-asia/ui | 121 components, ICONS, ICON_NAMES, prop types | | @xdev-asia/ui/image | ImageCropper, ImageField and crop helpers; needs the optional peer react-easy-crop | | @xdev-asia/ui/styles.css | tokens + component CSS | | @xdev-asia/ui/styles.layered.css | the same stylesheet inside @layer xdev. With Tailwind v4 import it instead of styles.css and declare the order first, @layer theme, base, xdev, components, utilities;, so Tailwind utilities win over component classes | | @xdev-asia/ui/tailwind.css | Tailwind v4 theme: colours, radii, fonts and breakpoints from the tokens | | @xdev-asia/ui/tokens.css | tokens only (CSS custom properties, dark + light) | | @xdev-asia/ui/tokens.json | token source | | @xdev-asia/ui/brand/* | logo v12 SVG/PNG for xDev and its sub-systems, mobile icons | | @xdev-asia/ui/ai-manifest.json | components, props, classes, tokens, icons, guidelines as JSON | | @xdev-asia/ui/llms.txt, llms-full.txt | the same for LLMs (llmstxt.org) |

Components: ActionTile, ActivityBar, AgentChip, AppShell, Avatar, Badge, Banner, BrandMark, Breadcrumb, Button, Card, Checkbox, Coachmark, CodeBlock, ColorField, CommandPalette, Comment, CommitGraph, DataTable, DescriptionList, Dialog, DiffStat, Disclosure, EmptyState, Field, FieldMessage, FileIcon, FilterChip, FontField, FormSection, Heatmap, Icon, IconButton, Kbd, ListRow, Menu, Meter, NavList, PageHeader, Pagination, PanZoom, Popover, RadioGroup, ReactionBar, SearchInput, SearchPicker, Segmented, Select, SettingRow, Spinner, SplitHandle, StatTile, StatusBar, StatusDot, StepDots, Switch, Tabs, TabStrip, Tag, Textarea, ThemeEditor, ThemePreview, ThemeSwitch, Toast, Toolbar, Tooltip, TreeView, ZoomBar. Rules per component: src/components/<Name>/README.md. Image components (@xdev-asia/ui/image, pnpm add react-easy-crop): src/image/<Name>/README.md; their CSS is in styles.css. Brand book: docs/brand.md. Foundations: docs/design-system.md.

Subpath entries

Optional parts live in their own entry points, so the core entry never loads their peers. Install the peers only where you import the subpath.

@xdev-asia/ui/editor

RichTextEditor: article editor on Tiptap 3 (headings 2-3, bold, italic, links, lists, quotes, images), controlled, Markdown by default or HTML. Rules: src/editor/RichTextEditor/README.md.

pnpm add @tiptap/core @tiptap/react @tiptap/pm @tiptap/starter-kit @tiptap/extension-image @tiptap/extension-link @tiptap/extensions @tiptap/markdown
import { RichTextEditor } from "@xdev-asia/ui/editor";

<RichTextEditor label="Body" value={body} onChange={setBody} onUploadImage={uploadImage} />

AI agents (MCP)

The package ships a stdio MCP server, xdev-ui-mcp (dist/mcp.js, no extra dependencies). It gives agents the real props, tokens and rules, so they do not invent them.

.mcp.json in the consuming repo (Claude Code, Cursor, VS Code):

{
  "mcpServers": {
    "xdev-ui": { "command": "node", "args": ["node_modules/@xdev-asia/ui/dist/mcp.js"] }
  }
}

Without installing (needs the .npmrc above; on Windows use "command": "cmd", "args": ["/c", "npx", ...]):

claude mcp add xdev-ui -- npx -y --package=@xdev-asia/ui xdev-ui-mcp

| tool | returns | |---|---| | xdevui_list_components | 121 components by group, with summary | | xdevui_get_component | README rules, exported prop types, CSS classes, import line | | xdevui_search_tokens | tokens by name, usage or category, with dark/light values | | xdevui_get_guidelines | setup, voice, visual foundations, iconography, layout, data and forms, agent skills, brand | | xdevui_list_icons | valid IconName values | | xdevui_search_docs | matching sections across all docs | | xdevui_get_skill | an agent skill: list, SKILL.md with its files, or one file |

Resources: xdev-ui://components/{name}, xdev-ui://guidelines/{topic}, xdev-ui://skills/{name}, xdev-ui://tokens. Prompts: xdevui_build_ui, xdevui_build_app, xdevui_build_admin. Agent rules: AGENTS.md. No MCP client: https://ui.xdev.asia/llms-full.txt.

Agent skills

Seven skills teach a coding agent to build with the library: xdev-ui-build-app (app shell, theme, i18n, routing, states), xdev-ui-admin (dashboards, lists, forms, roles, settings, audit log), xdev-ui-design (design rules by priority, tokens by role, logo, screen recipes, porting, pre-delivery checklist), xdev-ui-review (rules audit), xdev-ui-ux-standards (WCAG 2.2 AA, APG patterns, platform guidelines, usability heuristics), xdev-ui-motion (motion budget and rendering performance) and xdev-ui-improve (evidence-based improvement plans for an existing screen). They live in skills/ and ship in the package.

npx xdev-ui-skills install                 # .claude/skills in this project
npx xdev-ui-skills install --codex --user  # ~/.agents/skills
npx xdev-ui-skills create admin my-console # a Vite app from the admin template

Or in Claude Code: /plugin marketplace add xdev-asia/xdev-ui, then /plugin install xdev-ui@xdev-asia. examples/admin is a full console (sign-in, dashboard, users, roles, settings, audit log) in en and vi; run it with pnpm example:admin.

Develop

corepack pnpm install
corepack pnpm dev        # demo at http://localhost:5173
corepack pnpm build      # dist/ (lib, mcp.js, AI manifest, llms.txt)
corepack pnpm test       # SSR smoke test + MCP smoke test over dist

tokens/tokens.json is the source of truth; scripts/build-tokens.mjs writes src/styles/tokens.css, scripts/build-ai.mjs writes generated/ from the component READMEs, sources and docs. The repo's .mcp.json points at dist/mcp.js for local work.

Showcase

examples/admin is a whole admin console built from the library with sample data, rebuilt after react-antd-admin: dashboard, users, roles, a permissions preview, menus and departments as tree lists, audit log, settings, profile, status pages, four ways to sign in, and the console chrome (Ctrl+K search, notifications, page tabs, icon sidebar, focus view, preferences). The demo site publishes it at /showcase/admin/ (Showcase menu).

corepack pnpm example:admin        # http://localhost:5174
corepack pnpm build:demo           # dist-demo, with the console in dist-demo/showcase/admin

Sign in with [email protected] / admin-demo (owner) or [email protected] / viewer-demo. test/app-rules.test.ts runs the rules audit on it.

Release (automatic)

Commits on main follow Conventional Commits. release.yml runs semantic-release:

| commit | release | |---|---| | fix: … | patch | | feat: … | minor | | feat!: … / BREAKING CHANGE: | major | | chore:, docs:, ci: | none |

It tags vX.Y.Z, publishes to GitHub Packages and writes the GitHub release. Then npmjs.yml builds that tag with its version and publishes it to npmjs.com with provenance, using the repo secret NPMJS_TOKEN (an npmjs.com granular access token with read and write on the @xdev-asia scope), or, without that secret, npm trusted publishing (OIDC) set up on npmjs.com for release.yml. To copy an older release, run Actions → Publish to npmjs with its version. pages.yml deploys the demo to GitHub Pages at https://ui.xdev.asia.

License

Apache-2.0. Section 6 of the license grants no rights to the xDev name or logo.