How ahnopologetic/vebatim works
Main Components Identification
a) Figma Widget Layer
• Widget UI Components
• Event Management Interface
• IFrame Communication System
b) Core Application Layer
• Event Definition System
• Data Contract Management
• State Management
c) Integration Layer
• Figma API Integration
• External Services Communication
┌─────────────────────────────────────────────┐
• Figma Layer │
• (Widget Container & Integration Context) │
• ┤
• Widget Application │
• (Event Management & User Interface) │
• ┤
• Integration Layer │
• (Data Contracts & External Services) │
• ┘
Detailed Component Breakdown
For each major section, include:
a) Widget Layer (src/widget):
• Relationship between code.tsx and pages
• Hooks system (use-modal, use-widget-init)
• UI components hierarchy
• Event handling system
b) IFrame Layer (src/iframes):
• Routing system
• Page components
• Context management
• Communication patterns with main widget
c) Shared Components:
• Message types
• Style system
• Type definitions
• Usecases implementation
Data Flow Indicators
• Event creation flow
• Data synchronization
• User interaction paths
• External communication
Implementation Details
• React component structure
• TypeScript type system
• Tailwind CSS integration
• Build system flow
Key Relationships to Highlight
• Widget-to-Figma communication
• IFrame-to-Widget communication
• Event data flow
• User interaction patterns
Technical Stack Representation
Symbols for:
• TypeScript
• React
• Tailwind CSS
• Vite
• Figma Widget API
Architectural Patterns
Highlight:
• Component-based architecture
• Context-based state management
• Use-case driven design
• Message-based communication
This system design should help developers understand:
• How components interact
• Where state is managed
• How events flow through the system
• How the widget integrates with Figma
• Where to find specific functionality