How hello2ashu/stats-proxy works
This repository is a small HTTP stats service for Homepage, plus a GitHub-to-Homepage repository synchronizer and a festival-calendar provider. The main workflow is an HTTP request to the server, which selects an enabled provider, retrieves upstream data and returns it; the server also caches provider results. GitHub synchronization has a separate scheduled/webhook-triggered workflow that updates Homepage configuration. Provider implementations are shown unevenly, so only documented or excerpt-supported integrations and relationships are drawn.
Main entry points: server.py Stats API and cache · github_sync.py GitHub sync provider · festivals.py Festival calendar · bookorbit.py BookOrbit stats
Components 27
HTTP service
- Stats API and cache
app/server.py
Stats providers
- BookOrbit stats
app/providers/bookorbit.py - Paperless stats
app/providers/paperless.py - Dockhand stats
app/providers/dockhand.py - Synology stats
app/providers/synology.py - Karakeep stats
app/providers/karakeep.py - Dawarich stats
app/providers/dawarich.py - AirTrail stats
app/providers/airtrail.py - Trek stats
app/providers/trek.py - Plex stats
app/providers/plex.py - Linkwarden stats
app/providers/linkwarden.py - Trilium stats
app/providers/trilium.py
Repository sync
- GitHub sync provider
app/providers/github_sync.py - Homepage repo updater
app/scripts/github_repos_to_homepage.py
Festival calendar
- Festival calendar
app/providers/festivals.py
Other components
- Homepage dashboard
- Drikpanchang calendar
- Panchang API
- Paperless-ngx
- BookOrbit service
- Dockhand service
- Synology DSM
- Plex service
- Linkwarden service
- Karakeep service
- GitHub
- Homepage config
Connections 28
- Homepage dashboard → Stats API and cache: requests stats
app/server.py - Stats API and cache → Homepage dashboard: returns JSON
app/server.py - Stats API and cache → BookOrbit stats: fetches stats
app/server.py - Stats API and cache → Paperless stats: fetches stats
app/server.py - Stats API and cache → Dockhand stats: fetches stats
app/server.py - Stats API and cache → Synology stats: fetches stats
app/server.py - Stats API and cache → Karakeep stats: fetches stats
app/server.py - Stats API and cache → Dawarich stats: fetches stats
app/server.py - Stats API and cache → AirTrail stats: fetches stats
app/server.py - Stats API and cache → Trek stats: fetches stats
app/server.py - Stats API and cache → Plex stats: fetches stats
app/server.py - Stats API and cache → Linkwarden stats: fetches stats
app/server.py - Stats API and cache → Trilium stats: fetches stats
app/server.py - Stats API and cache → GitHub sync provider: routes requests
app/server.py - Stats API and cache → Festival calendar: routes requests
app/server.py - BookOrbit stats → BookOrbit service: requests data
app/providers/bookorbit.py - Paperless stats → Paperless-ngx: requests data
app/providers/paperless.py - Dockhand stats → Dockhand service: requests data
app/providers/dockhand.py - Synology stats → Synology DSM: requests data
app/providers/synology.py - Plex stats → Plex service: requests data
app/providers/plex.py - Linkwarden stats → Linkwarden service: requests data
app/providers/linkwarden.py - Karakeep stats → Karakeep service: requests data
app/providers/karakeep.py - Trilium stats → Homepage config: reads config
- GitHub sync provider → Homepage repo updater: runs script
app/providers/github_sync.py - GitHub sync provider → GitHub: receives webhooks
app/providers/github_sync.py - Homepage repo updater → Homepage config: updates config
- Festival calendar → Drikpanchang calendar: scrapes festivals
app/providers/festivals.py - Festival calendar → Panchang API: requests fallback data
app/providers/festivals.py