How antoniman31/game-library works
Game Library is a personal Xbox/Switch and PC game catalogue, with lending, enrichment, statistics, and cross-device backup. The main workflow is to browse or search a library, inspect or edit a game, and persist changes locally; users can also import, export, enrich records from public data sources, and synchronize through an optional Cloudflare Worker. The UI and data modules are represented at their known paths. Sampled excerpts do not show all event wiring, so uncertain component links are omitted; documented capabilities remain represented.
Main entry points: App.jsx Application · api.js Data-source API · FicheDetail.jsx Game details · SettingsView.jsx Settings
Components 24
Library interface
- Application
src/App.jsx - Game list
src/components/LigneJeu.jsx - Game details
src/components/FicheDetail.jsx - Settings
src/components/SettingsView.jsx - Filters
src/components/FiltersSheet.jsx - Statistics view
src/components/StatsView.jsx
Game domain
- Game model
src/lib/model.js - Statistics
src/lib/stats.js - Preferences
src/lib/preferences.js - Starter library
src/lib/seed.js
Storage and backup
- Browser localStorage
- Storage access
src/lib/storage.js - Device sync
src/lib/sync.js - File transfer
src/lib/natif.js - Cloudflare Worker
worker/index.js - Worker KV
External integrations
- Data-source API
src/lib/api.js - Barcode scanning
src/lib/codebarres.js - Playnite integration
src/lib/playnite.js
Other components
- Library owner
- RAWG
- Wikipedia and Wikidata
- SteamGridDB
- Xbox Live
Connections 25
- Library owner → Application: uses
- Application → Game list: renders
- Application → Game details: opens
- Application → Settings: opens
- Application → Filters: opens
- Application → Statistics view: shows
- Application → Game model: normalizes
- Application → Starter library: loads first run
- Application → Storage access: reads and writes
- Storage access → Browser localStorage: accesses
- Statistics view → Statistics: calculates
- Settings → Preferences: reads settings
- Application → Device sync: synchronizes
- Device sync → Cloudflare Worker: requests backup
- Cloudflare Worker → Worker KV: reads and writes
- Application → File transfer: imports and exports
- Application → Data-source API: enriches games
- Game details → Data-source API: searches sources
- Data-source API → RAWG: requests metadata
- Data-source API → Wikipedia and Wikidata: requests articles
- Data-source API → SteamGridDB: requests covers
- Application → Data-source API: imports Xbox games
- Data-source API → Xbox Live: requests library
- Application → Barcode scanning: uses scanner
- Application → Playnite integration: imports PC library