How the Figma Data Extractor architecture works
mainThe extraction system is organized into three distinct layers to ensure efficiency and composability:
- Strategy Layer: Where you define what you want to extract (e.g., choosing specific extractors).
- Traversal Layer: A single-pass tree walking mechanism that visits nodes and applies the configured extractors.
- Extraction Layer: Pure functions that perform the actual transformation of individual node data into the result object.
This architecture ensures that no matter how many extractors you use, the system only performs a single tree walk, making it highly efficient.