How pylxyr/wishtory works
Wishtory is a desktop wish-history tracker for Genshin Impact, Honkai: Star Rail, and Zenless Zone Zero. The main workflow is to open a game’s history page, refresh in Wishtory, retrieve and store pulls, then view pity and statistics. The README also documents import/export, live banners, daily farming, catalog updates, and optional encrypted Google Drive backup. The tree shown has no Dart UI source, so the graph focuses on the Rust core and bridge; dashed edges mark internal links not established by the excerpts.
Main entry points: mod.rs Cloud backup orchestration · src Core services · core_api.rs Flutter bridge API · catalog.rs Catalog updates
Components 22
App interface
- Flutter bridge API
crates/wishtory-bridge/src/api/core_api.rs - Bridge conversion
crates/wishtory-bridge/src/convert.rs - Bridge transport
crates/wishtory-bridge/src/frb_generated.rs - Core services
crates/wishtory-core/src
History and insights
- Game discovery
crates/wishtory-core/src/discover.rs - History link extraction
crates/wishtory-core/src/authkey.rs - Pull retrieval
crates/wishtory-core/src/fetch.rs - Pull operations
crates/wishtory-core/src/ops.rs - Local pull database
crates/wishtory-core/src/db.rs - Pity and statistics
crates/wishtory-core/src/pity.rs - Import and export
crates/wishtory-core/src/uigf.rs
Game data
- Catalog updates
crates/wishtory-core/src/catalog.rs - Game rules
crates/wishtory-core/src/rules.rs - Pull impact
crates/wishtory-core/src/impact.rs - Daily farming data
crates/wishtory-core/src/paimon_items.rs
Settings and backup
- Preferences
crates/wishtory-core/src/settings.rs - Cloud backup orchestration
crates/wishtory-core/src/cloud/mod.rs - Google sign-in
crates/wishtory-core/src/cloud/oauth.rs - Google Drive access
crates/wishtory-core/src/cloud/drive.rs - Backup encryption
crates/wishtory-core/src/cloud/vault.rs
Other components
- Player
- Google services
Connections 23
- Player → Flutter bridge API: requests refresh
- Flutter bridge API → Core services: calls core
crates/wishtory-bridge/src/api/core_api.rs - Flutter bridge API → Bridge conversion: converts results
crates/wishtory-bridge/src/api/core_api.rs - Bridge transport → Flutter bridge API: dispatches calls
crates/wishtory-bridge/src/frb_generated.rs - Core services → Pull retrieval: retrieves pulls
crates/wishtory-core/src/lib.rs - Core services → Game discovery: discovers games
crates/wishtory-core/src/authkey.rs - Core services → History link extraction: extracts links
crates/wishtory-core/src/lib.rs - Pull operations → Local pull database: reads and writes
crates/wishtory-core/src/ops.rs - Pull operations → Catalog updates: uses catalog
crates/wishtory-core/src/ops.rs - Pull operations → Game rules: uses rules
crates/wishtory-core/src/ops.rs - Local pull database → Pity and statistics: supplies saved pulls
- Import and export → Catalog updates: uses item catalog
crates/wishtory-core/src/uigf.rs - Catalog updates → Game rules: uses rules
crates/wishtory-core/src/catalog.rs - Catalog updates → Pull impact: uses game data
crates/wishtory-core/src/catalog.rs - Player → Import and export: imports or exports
- Player → Daily farming data: views farming data
- Player → Cloud backup orchestration: requests backup
- Cloud backup orchestration → Google sign-in: signs in
crates/wishtory-core/src/cloud/mod.rs - Cloud backup orchestration → Google Drive access: backs up files
crates/wishtory-core/src/cloud/mod.rs - Cloud backup orchestration → Backup encryption: encrypts backup
crates/wishtory-core/src/cloud/mod.rs - Google sign-in → Google services: exchanges tokens
crates/wishtory-core/src/cloud/oauth.rs - Google Drive access → Google services: stores backup
crates/wishtory-core/src/cloud/drive.rs - Cloud backup orchestration → Preferences: stores backup state
crates/wishtory-core/src/cloud/mod.rs