How nitishratre45/tilakvarmafanclub works
The repository is a static Tilak Varma fan site with a browser-based stats and fan experience, Cloudflare Pages API endpoints, and scheduled scripts that refresh committed data snapshots. The main visitor path is browsing the site’s stored content and match features; refresh jobs maintain verified snapshots rather than providing a live-score feed. README statements support the documented capabilities and data flow; several frontend and admin connections are not visible in the sampled source, so those links are omitted or marked unverified.
Components 26
Fan experience
- Fan website
index.html - Stats explorer
assets/features.js - Records and milestones
assets/features.js - Performance analytics
assets/features.js - Fan zone and poll
assets/fan-zone-plus.js - Wallpaper maker
assets/features.js - Website search
assets/app.js - Match center
assets/match-center-live.js
Static content
- Site snapshots
data/site-data.json - Fan resources
data/fan-zone.json
Data refresh
- Recent innings refresh
scripts/refresh_data.py - Batting stats refresh
scripts/refresh_statsguru.py - Bowling refresh
scripts/refresh_bowling.py - Other data refreshes
scripts - Scheduled workflows
APIs and admin
- Matches API
functions/api/matches.js - Scorecard API
functions/api/scoreboard.js - Admin studio
admin/index.html - Admin session
functions/_lib/admin.js - Data status
functions/api/admin/data-status.js - Workflow monitor
functions/api/admin/monitor.js - Content editing
functions/api/admin/content.js - Signed upload
functions/api/admin/sign-upload.js
Other components
- Site visitor
- GitHub repository
- CricAPI
Connections 26
- Site visitor → Fan website: browses
README.md - Fan website → Site snapshots: shows snapshots
README.md - Fan website → Fan resources: shows resources
README.md - Scheduled workflows → Recent innings refresh: runs refresh
README.md - Recent innings refresh → Site snapshots: updates innings
README.md - Scheduled workflows → Batting stats refresh: runs refresh
README.md - Scheduled workflows → Bowling refresh: runs refresh
README.md - Batting stats refresh → Site snapshots: updates snapshots
- Bowling refresh → Site snapshots: updates snapshots
- Scheduled workflows → Other data refreshes: runs refreshes
README.md - Match center → Matches API: requests matches
- Match center → Scorecard API: requests scorecard
- Matches API → CricAPI: fetches matches
functions/api/matches.js - Scorecard API → CricAPI: fetches scorecard
functions/api/scoreboard.js - Admin studio → Admin session: authenticates
- Admin studio → Data status: checks status
- Admin studio → Workflow monitor: monitors runs
- Admin studio → Content editing: edits content
- Admin studio → Signed upload: requests signature
- Data status → Admin session: checks session
functions/api/admin/data-status.js - Workflow monitor → Admin session: checks session
functions/api/admin/monitor.js - Content editing → Admin session: checks session
functions/api/admin/content.js - Signed upload → Admin session: checks session
functions/api/admin/sign-upload.js - Content editing → GitHub repository: saves JSON
functions/api/admin/content.js - Data status → GitHub repository: reads status
functions/api/admin/data-status.js - Workflow monitor → GitHub repository: reads workflows
functions/api/admin/monitor.js