How mastrogpt/fantacalcio-project works
Nuvolaris MastroGPT is a Fantacalcio companion: users browse players and statistics, read football articles, and can ask an AI chatbot for fantasy-team advice. The frontend routes invoke data services, while a Python serverless entry point dispatches model operations against persistent domain data. The sampled sources substantiate the player-statistics request and backend dispatch; article, player-list, and chatbot internals are represented only where supported by the tree or documented capabilities. The README notes that chatbot and article functions are unavailable in frontend-only setup.
Main entry points: [id]/+page.svelte Player profile · __main__.py Model dispatcher · getArticles.ts Article service · players/+page.svelte Player directory
Components 17
Web experience
- Player directory
src/routes/players/+page.svelte - Player profile
src/routes/players/[id]/+page.svelte - Chat interface
src/lib/components/widget/Widget.svelte - Chat state
src/lib/store/store.ts - Chat service
src/lib/service/nuvBot.ts
Articles
- Article pages
src/routes/articles/[slug]/+page.svelte - Article tags
src/routes/articles/tags=[name]/+page.svelte - Article service
src/lib/service/fantaicalcio/getArticles.ts
Football data
- Player service
src/lib/service/fantaicalcio/getPlayers.ts - Statistics service
src/lib/service/fantaicalcio/getStats.ts
Serverless data
- Model dispatcher
packages/db/main/__main__.py - Football models
packages/db/main/models
Other components
- Fantacalcio user
- Nuvolaris API
- PostgreSQL
- Redis cache
- AI assistant
Connections 18
- Fantacalcio user → Player directory: browses
- Player directory → Player service: loads players
- Fantacalcio user → Player profile: opens profile
- Player profile → Statistics service: loads statistics
- Player profile → Article service: loads related articles
- Statistics service → Nuvolaris API: requests stats
- Fantacalcio user → Article pages: reads articles
- Article pages → Article service: loads articles
- Fantacalcio user → Article tags: filters articles
- Article tags → Article service: loads articles
- Fantacalcio user → Chat interface: asks advice
- Chat interface → Chat state: updates conversation
- Chat state → Chat service: sends message
- Chat service → AI assistant: requests response
- Nuvolaris API → Model dispatcher: dispatches model request
- Model dispatcher → Football models: dispatches by model
- Football models → PostgreSQL: reads and writes
- Model dispatcher → Redis cache: clears cache