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

@tac0de/ui-token-governor-mcp

v1.0.1

Published

MCP server for UI token governance and framework-agnostic component generation

Readme

@tac0de/ui-token-governor-mcp

MCP server for UI token governance. Design Tokens → Figma → AutoHTML → Production Code

Installation & Configuration

via npx (Recommended)

{
  "mcpServers": {
    "ui-token-governor": {
      "command": "npx",
      "args": ["@tac0de/ui-token-governor-mcp"]
    }
  }
}

via npm install

npm install @tac0de/ui-token-governor-mcp
{
  "mcpServers": {
    "ui-token-governor": {
      "command": "node",
      "args": ["/path/to/node_modules/@tac0de/ui-token-governor-mcp/dist/index.js"]
    }
  }
}

Tools

read_tokens

Read UI tokens from the token system.

{
  tokenPath?: string;        // e.g., "tokens/color/primary.json"
  category?: "color" | "spacing" | "typography" | "elevation" | "radius" | "breakpoint" | "motion";
}

validate_component_tokens

Validate components follow token-governed rules.

{
  componentCode: string;     // Component code to validate
  framework: "react" | "vue" | "svelte" | "angular" | "webc";
}

Detects:

  • Inline styles (style={{...}}, style="...")
  • Hardcoded colors (#fff)
  • Hardcoded spacing (px, rem, em)
  • Hardcoded fonts (Arial)
  • Framework-specific tokens

generate_component

Generate token-governed component with Storybook stories.

{
  componentName: string;     // Required
  description: string;       // Required
  framework?: "react" | "vue" | "svelte" | "angular" | "webc";  // Default: "react"
  tokenCategories?: ("color" | "spacing" | "typography" | "elevation" | "radius" | "breakpoint" | "motion")[];  // Default: ["color", "spacing", "typography"]
}

Returns: Component code + Storybook story + Token mapping guide


process_figma_export

Extract design tokens from Figma JSON exports.

{
  figmaFilePath: string;     // Required - Path to Figma export JSON
  extractTokens?: boolean;   // Default: true
  generateComponents?: boolean;  // Default: false
  outputDir?: string;        // Default: "./tokens"
}

Extracts: Colors, spacing, typography, components


convert_autohtml

Transform AutoHTML to token-governed components.

{
  autohtmlCode: string;      // Required - AutoHTML code
  framework?: "react" | "vue" | "svelte" | "angular" | "webc";  // Default: "react"
  applyTokens?: boolean;     // Default: true
  removeInlineStyles?: boolean;  // Default: true
  componentName?: string;    // Optional
}

Does:

  1. Remove inline styles
  2. Replace hardcoded values with tokens
  3. Generate framework-specific code
  4. Create Storybook stories

Workflow

Design Tokens → Figma Export → AutoHTML → Token-Governed Code
     ↓              ↓               ↓              ↓
  JSON files   Figma JSON    AutoHTML     Production
                                HTML         Components

Token Structure

tokens/
├── color/
│   ├── primary.json
│   └── secondary.json
├── spacing/
│   └── md.json
└── schema.json

Core Rules

  • token.space.md (framework-agnostic)
  • token.padding.react (framework-specific)
  • ✅ All visual values from tokens
  • ❌ No hardcoded values
  • ❌ AutoHTML is NOT authoritative

License

MIT