Back to Plugins
SpeX - Design to Code by AI

SpeX - Design to Code by AI

Built on your real components, not generic templates.

Plugin Preview

SpeX - Design to Code by AI preview

About this plugin

SpeX – Design to Code by AI


Transform your Figma components into AI-readable specs for seamless design-to-code automation.


πŸ” What is SpeX?

SpeX bridges design and development by exporting structured specifications from Figmaβ€”enabling AI tools like Cursor and GitHub Copilot to generate accurate, production-grade UI code that aligns with your actual components.


🎯 Who It's For

  1. Design system teams scaling reusable components
  2. Developers using AI coding assistants
  3. Product teams aiming for consistent handoffs
  4. Organizations enforcing structured design workflows


πŸš€ Key Capabilities


πŸ“‹ AI-Ready Export

  1. Export to YAML/JSON with full style tokens
  2. Support nested components, variants, and instances
  3. Auto-detect and optimize SVG icons
  4. Generate component preview thumbnails


πŸ”§ Fine-Tuning Metadata

  1. Add codeComponent and codeFilePath
  2. Auto-fill metadata via pattern recognition
  3. Visual tree browser with search and bulk editing


πŸ—ƒ Component Record Management

  1. Full CRUD for structured records
  2. Sync from Notion, APIs, or JSON files
  3. Filterable views with fallback thumbnails
  4. Export component registry as JSON


πŸ€– Real-Time AI Integration

  1. WebSocket-based MCP bridge for tools like Cursor AI
  2. Real-time dashboard and analytics
  3. Serve specs, manifest, and previews on-demand
  4. Auto-reconnect and error resilience


🧭 How It Works

  1. Select Components – from your Figma file
  2. Fine-Tune – add mappings to your codebase (optional)
  3. Export or Connect – structured file export or live MCP server
  4. Generate Code – AI tools use the specs to write code that aligns with your system


πŸ“ Output Structure (Simplified)

export-[timestamp]/
β”œβ”€β”€ screen.yaml # Main screen specs
β”œβ”€β”€ manifest.yaml # File manifest
β”œβ”€β”€ components/ # Component specs
β”œβ”€β”€ styles/ # Design token definitions
β”œβ”€β”€ icons/ # SVG exports
β”œβ”€β”€ previews/ # PNG previews


Example screen.yaml

# screen.yaml
screen:
id: "signup-screen-001"
name: "SignupForm"
type: "FRAME"

dimensions:
width: 375
height: 812

styleRefs:
fills:
- "@styles/fills#background-default"
typography:
- "@styles/typography#body-normal"

children:
- type: "INSTANCE_REF"
ref: "@components/TextField#username-field-001"
- type: "INSTANCE_REF"
ref: "@components/TextField#email-field-002"
- type: "INSTANCE_REF"
ref: "@components/TextField#password-field-003"
- type: "INSTANCE_REF"
ref: "@components/Button#signup-button-001"
- type: "INSTANCE_REF"
ref: "@components/TextLink#login-link-001"


This defines a form-based screen layout with multiple input fields, a button, and a linkβ€”referencing reusable components in the design system.


πŸ”— spex-mcp

Install the companion server to integrate with AI dev tools:

β†’ spex-mcp on npm


πŸ’‘ Why SpeX?


For Designers

  1. Reduce handoff friction
  2. Track design usage across implementations


For Developers

  1. Avoid guesswork, get exact specs
  2. Leverage AI tools with full context


For AI Tools

  1. Access structured, hierarchical data
  2. Align generated code with real-world components


SpeX is where design systems meet automation. Your components. Your rules. Real code.

Plugin Details

Version4
CreatedJune 21, 2025
Last UpdatedJuly 1, 2025
CategorySoftware development
CreatorKhoaSuperman
Stats10 installs, 4 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:build/ui.js
  • main:build/main.js
  • Document Access:dynamic-page
  • Editor Types:
    dev
  • Allowed Domains:
    • https://analytics.google.com
    • https://api.notion.com
    • https://app-measurement.com
    • https://app.posthog.com
    • https://cdnjs.cloudflare.com
    • https://eu.i.posthog.com
    • https://firebase.googleapis.com
    • https://firebaseinstallations.googleapis.com
    • https://fonts.googleapis.com
    • https://fonts.gstatic.com
    • https://my-cors-coral.vercel.app
    • https://prod-files-secure.s3.us-west-2.amazonaws.com
    • https://region1.app-measurement.com
    • https://res.cloudinary.com
    • https://spex-figma.firebaseapp.com
    • https://spex-figma.web.app
    • https://stats.g.doubleclick.net
    • https://us.i.posthog.com
    • https://www.figma.com
    • https://www.google-analytics.com
    • https://www.googletagmanager.com
    • wss://spex-figma-mcp.onrender.com