Documentation
¶
Overview ¶
Command figma-map maps Figma design components to code components using a vision LLM, producing a reviewable binding and deterministic codegen.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd wires the figma-map CLI subcommands.
|
Package cmd wires the figma-map CLI subcommands. |
|
internal
|
|
|
binding
Package binding models the persistent figma-map.binding.yaml artifact that maps a Figma component library to a code component library.
|
Package binding models the persistent figma-map.binding.yaml artifact that maps a Figma component library to a code component library. |
|
codegen
Package codegen renders a JSX snippet from a matched component binding and a set of inferred prop values.
|
Package codegen renders a JSX snippet from a matched component binding and a set of inferred prop values. |
|
config
Package config loads figma-map configuration from a YAML file with environment-variable overrides.
|
Package config loads figma-map configuration from a YAML file with environment-variable overrides. |
|
figma
Package figma defines the domain model for a Figma document and the Source interface that abstracts where that data comes from.
|
Package figma defines the domain model for a Figma document and the Source interface that abstracts where that data comes from. |
|
llm
Package llm wraps an OpenAI-compatible chat client for vision calls.
|
Package llm wraps an OpenAI-compatible chat client for vision calls. |
|
matcher
Package matcher decides which code component a Figma image corresponds to.
|
Package matcher decides which code component a Figma image corresponds to. |
|
storybook
Package storybook builds a catalog of code components by reading a running Storybook's index.json, screenshotting each story, and parsing the real import statement from the story source file.
|
Package storybook builds a catalog of code components by reading a running Storybook's index.json, screenshotting each story, and parsing the real import statement from the story source file. |
Click to show internal directories.
Click to hide internal directories.