How alyssaxuu/flowy works
Main Components Identification
The system has two primary components:
• Core Engine (/engine directory)
• Demo Implementation (/demo directory)
Start with the core engine components:
┌─────────────────────────────────────┐
• Flowy Engine │
• ┬─────────────────┤
• flowy.js │ flowy.css │
• (Core Logic) │ (Styling) │
• ┴─────────────────┘
┌─────────────────────────────────────────────┐
• Drag & Drop Engine │
• ┬─────────────────┬────────────┤
• Block │ Snapping │ Canvas │
• Management │ System │ Management │
• ┴─────────────────┴────────────┘
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
• User Input │ -> │Block Creation│ -> │ Block │
• (Drag & Drop) │ │& Positioning │ │ Relationship │
• ┘ └──────────────┘ └──────────────┘
Integration Points
How the library integrates with host applications:
┌─────────────┐
• Host App │
• ┤
• Flowy Init │ --> Canvas Element
• Callbacks │ --> Block Elements
• ┘
Additional Notes
• The vanilla JavaScript nature (no dependencies)
• The simplicity of integration
• The event-driven architecture
• The separation of styling and logic
• All symbols used
• Line styles
• Component relationships