How krish-adi/barfi works
Main Components
a) Frontend Layer:
• Vue.js application with BaklavaJS integration
• Streamlit widget component
• Client-side rendering and interaction logic
b) Backend Layer:
• Core Barfi engine
• Block management system
• Computation engine
• Schema management
c) Integration Layer:
• Python API interface
• Streamlit integration
• Future Jupyter Notebook integration (planned)
Key Architectural Elements
a) Core Components:
• Block Builder: Handles block definition and properties
• Compute Engine: Manages execution of the flow
• Schema Manager: Handles saving and loading of flow schemas
• Option Builder: Manages block configuration options
b) Frontend Architecture:
• Vue.js components for visual programming interface
• Streamlit connection handling
• CSS and asset management
[User Interface Layer]
• ↓
[Integration Layer]
• ↓
[Core Engine Layer]
• ↓
[Execution Layer]
Component relationships
• Double lines: API boundaries
Specific Elements
a) Frontend Section:
[Vue.js Frontend] ← → [BaklavaJS]
• ↓
[Streamlit Widget]
b) Core Engine Section:
[Block Builder] ← → [Option Builder]
• ↓
[Compute Engine] ← → [Schema Manager]
c) Integration Layer:
[Python API] ← → [Streamlit Integration]
Important Details to Highlight
• The flow-based programming nature of the system
• Block interface connections
• Data flow between components
• Schema persistence
• Computation execution path
Technical Specifications
Key technologies:
• Vue.js/TypeScript (Frontend)
• Python (Backend)
• Streamlit (Integration)
• BaklavaJS (Visual Programming Interface)