How sefaria/sefaria-project works
Core Components
• Frontend Layer
• React-based web application (static/js folder)
• Mobile interface (static/mobile folder)
• Content delivery components (static/*)
• Backend Layer
• Django web framework (sefaria/* folders)
• API services (api/* folder)
• Authentication system (sefaria/gauth)
• Text processing engine (sefaria/helper)
• Data Layer
• MongoDB for text storage
• PostgreSQL for user data
• Elasticsearch for search functionality
• Redis for caching
Key Services (represented as distinct components)
• Text Service
• Text retrieval and manipulation
• Version management
• Commentary linking system
• Search Service
• Full-text search
• Reference lookup
• Advanced filtering
• User Service
• Authentication
• Profile management
• User activity tracking
• Content Management
• Sheet creation and management
• Collections handling
• Version control
Infrastructure Components
• Cloud Services
• Google Cloud Platform
• CloudFlare CDN
• Cloud Storage
• Monitoring & Logging
• Prometheus integration
• Varnish caching layer
• System monitoring
Integration Points
• API endpoints and data flow
• Cache interaction patterns
• Database access patterns
• External service integration
Deployment Architecture
• Kubernetes clusters (helm-chart/*)
• Load balancers
• Cache layers
• Backup systems
Visual Elements:
• Rectangles: Core services
• Hexagons: External services
• Blue: Frontend components
• Green: Backend services
• Yellow: Databases
• Gray: Infrastructure
• Red: Critical paths
• Component types
• Environment boundaries
Special Considerations: