Google ADK LiteLLM
Converts Figma designs into JSX-ready code by extracting design tokens using a Google ADK agent and flexible LLM routing.
This project provides a robust framework for building AI agents that transform Figma designs into functional code. Leveraging the Google Agent Development Kit and the Model Context Protocol, it seamlessly integrates with Figma's API to extract essential design tokens like text, colors, and layout information. Through LiteLLM, the agent supports dynamic routing across multiple LLM providers (e.g., Groq, Gemini, HuggingFace), ensuring zero model lock-in. It features a modular prompt engineering system for easy customization and maintains strict session isolation for reliable, independent workflows.
주요 기능
01Figma Design Token Extraction: Extracts text, colors, and layout from Figma files via a custom MCP server, converting them into JSX-ready data.
02Multi-Provider LLM Routing: Utilizes LiteLLM to swap between different LLMs (Groq, Gemini, HuggingFace, OpenAI) with a single configuration change, ensuring model flexibility.
03Google ADK Agent Orchestration: Built on the Google Agent Development Kit for robust agent primitives, runners, and in-memory session management.
04Stateless MCP Server: Exposes Figma capabilities as a Model Context Protocol (MCP) server using SSE over HTTP for decoupled, scalable tool integration.
050 GitHub stars
06Modular Prompt Engineering: Supports layered prompt composition from .txt and .docx templates, allowing non-developers to edit and version control agent instructions.
사용 사례
01Automating the conversion of Figma design mockups into JSX frontend code.
02Streamlining the creation of UI components directly from design specifications.
03Rapidly prototyping web applications by generating initial codebases from design files.