Architecture
πŸ—ΊοΈ System Overview

System Architecture Overview

A comprehensive visual guide to the AltSportsLeagues.ai platform architecture, from data ingestion to end-user delivery.

High-Level Architecture

Domain Architecture

The platform is organized around key domains that handle specific business functions:


Deployment Architecture

Production URL Map

URL Routing Strategy:

URLServicePlatformPort
altsportsleagues.aiMain FrontendVercel443
api.altsportsleagues.aiBackend APICloud Run8080
docs.altsportsleagues.aiDocumentationVercel443
n8n.altsportsleagues.aiAutomationCloud Run5678

Component Relationships

Backend Services Architecture

Frontend Component Architecture


Schema Relationships

The data layer uses a unified schema system connecting all components:


n8n Workflow Architecture


Quick Reference

Key Architecture Decisions:

  1. Monorepo Structure: All services in one repository for easier coordination
  2. API Gateway Pattern: Single entry point through api.altsportsleagues.ai
  3. Event-Driven: n8n workflows handle async processing
  4. Graph-First: Neo4j for relationship queries, Supabase for transactions
  5. Edge Deployment: Vercel for frontend, Cloud Run for backend

Technology Stack Summary

LayerTechnologyPurpose
FrontendNext.js 16, React 18, TailwindUser interfaces
BackendFastAPI, Python 3.11REST API, business logic
MCPFastMCPAI tool integration
Automationn8nWorkflow orchestration
DatabaseSupabase (PostgreSQL)Relational data
GraphNeo4jRelationship queries
RealtimeFirebaseLive updates
StorageGoogle Cloud StorageFiles, documents
AuthFirebase AuthUser authentication
CDNCloudflareEdge caching, security

Port Reference

ServiceLocal PortProduction Port
Frontend3031443
Backend80808080
Docs Site3001443
n8n56785678
Redis63796379
PostgreSQL54325432

Next Steps:

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time