How lightningralf/obsidian-calendar-plugin works
Component Breakdown
a. UI Layer Components (Purple):
• Calendar View Component (src/ui/Calendar.svelte)
• Modal Component (src/ui/modal.ts)
• File Menu Component (src/ui/fileMenu.ts)
• Data Source Components:
• Streak Source
• Tags Source
• Tasks Source
• Word Count Source
b. Core Logic Layer (Blue):
• Main Plugin Controller (src/main.ts)
• Settings Manager (src/settings.ts)
• View Controller (src/view.ts)
• Constants Manager (src/constants.ts)
c. I/O Layer (Green):
• Handlers:
• Daily Notes Handler
• Monthly Notes Handler
• Quarterly Notes Handler
• Weekly Notes Handler
• Yearly Notes Handler
Integration Points
External integration points:
• Obsidian API Connection
• File System Interface
• Template System Integration
Special Elements
Specific features mentioned in README:
• Word Count Visualization System
• Task Tracking System
• Date Navigation System
• Template Processing System
Technical Details
Annotations for:
• Svelte Components
• TypeScript Implementation
• CSS Customization Points
• Plugin Settings Interface
Key Considerations:
Plugin's integration with Obsidian
• Clear boundaries between plugin and host application
• API interaction points
Modular architecture
• Separate concerns between UI, logic, and I/O
• How different note types are handled
Features
• Calendar visualization
• Management
• Data source integration
• Customization options
State management
• How the stores.ts manages state
• Data flow between components
Use these visual conventions:
• Rounded rectangles for external systems
Remember to include a note about the test utilities (src/testUtils) as a separate section, showing how they support the main architecture but aren't part of the runtime system.