Skip to main content

Backend

Frontend

Infrastructure

Architecture Overview

Sports Index follows a layered architecture:

Key Patterns

  • Post Type Handlers: Abstract base class pattern for 7 content types (external_media, chart, data_table, uploaded_media, timeline, page, collection)
  • Canonical Deduplication: External URLs stored once globally, users link via relationships
  • Dual Tagging: Owned posts use content_post_tags, canonical posts use topic_post_index
  • Denormalized Caches: TopicPostIndex, TopicTimelineCache, UserLibraryCache for fast reads
  • Feature-Flagged Embeddings: Semantic search gated behind EMBEDDING_ENABLED