How vibeflowing-inc/vibe_figma works
Project type and purpose
• VibeFigma is primarily a developer tool—a converter that transforms Figma designs into production-ready React/TypeScript components with Tailwind CSS.
• It ships both as a CLI (local, interactive or scripted) and as a REST API server, exposing the same core conversion engine over HTTP.
File structure
• Top-level artifacts:
• bin/vibefigma.js → executable CLI entrypoint
• Dockerfile, bun.lock, package.json → environment & build configuration
• docs/API.md → REST API documentation
• src/cli → CLI commands, prompts, logging, file-writer utilities
• src/core → core conversion logic subdivided into:
– cleaner (AI-backed code cleanup prompt)
– css-to-tailwind (mappings, converters, utilities)
– figma (Figma API client, JSX/HTML transformations)
• src/middleware → request validation & security for the API server
• src/config, src/utils → shared config & helper functions
• README.md → high-level usage, features, and architecture hints
README for additional insights
• Confirms two usage modes: “npx vibefigma” CLI and REST API server (POST /v1/api/vibe-figma).
• Describes third-party integrations: Figma API, optional Google Generative AI for cleanup.
• Mentions configurability through environment variables and CLI flags.