How k0d13/steam-epic-games works
Epic Games is a Millennium plugin that brings an Epic account and its games into Steam. The user signs in through the Steam Store menu, views and syncs the library in the plugin panel, then manages and launches games through Steam; the plugin also adds artwork, achievements, playtime, and purchase support. The map separates Steam integration, Epic-facing services, and shared state. Backend internals are represented by tree-supported paths; the excerpts do not establish their detailed call graph.
Main entry points: index.tsx Plugin registration · steam-library.ts Steam library sync · legendary.lua Legendary integration · plugin-panel.tsx Library panel
Components 24
Plugin entry and UI
- Plugin registration
frontend/index.tsx - Library panel
frontend/components/plugin-panel.tsx - Settings and maintenance
frontend/components/settings.tsx
Epic account and library
- Epic session
frontend/services/epic-session.ts - Legendary integration
backend/legendary.lua - Install job backend
backend/jobs.lua - Library backend
backend/library.lua
Steam integration
- Epic Store menu
frontend/patches/store-menu.ts - Steam library sync
frontend/services/steam-library.ts - Steam shortcuts
frontend/services/shortcuts.ts - Steam UI patches
frontend/patches - Download UI
frontend/patches/downloads.ts
Game features
- Artwork service
frontend/services/artwork.ts - Achievements
frontend/patches/achievements.ts - Playtime tracking
frontend/services/playtime.ts - Store purchases
frontend/services/orders.ts - Notifications
frontend/services/notifications.ts
Shared state
- Job tracking
frontend/state/jobs.ts - Achievement cache
frontend/state/achievements.ts - Epic game library state
frontend/state/library.ts - Shortcut ID mapping
frontend/state/app-ids.ts - Persistent local state
frontend/state/storage.ts
Other components
- Steam user
- Epic Games services
Connections 27
- Steam user → Epic Store menu: signs in
README.md - Steam user → Library panel: opens and syncs
README.md - Plugin registration → Library panel: registers
frontend/index.tsx - Library panel → Steam library sync: requests sync
frontend/components/plugin-panel.tsx - Library panel → Epic session: uses account
- Epic Store menu → Epic session: starts sign-in
- Epic session → Legendary integration: uses integration
README.md - Legendary integration → Epic Games services: accesses account
README.md - Legendary integration → Library backend: provides library
- Legendary integration → Install job backend: runs game jobs
- Steam library sync → Epic game library state: updates
frontend/services/steam-library.ts - Steam library sync → Shortcut ID mapping: maps shortcuts
frontend/services/steam-library.ts - Steam library sync → Steam shortcuts: reconciles
frontend/services/steam-library.ts - Steam library sync → Artwork service: applies artwork
frontend/services/steam-library.ts - Settings and maintenance → Steam library sync: manages sync
frontend/components/settings.tsx - Steam shortcuts → Shortcut ID mapping: stores IDs
frontend/services/shortcuts.ts - Plugin registration → Steam UI patches: registers patches
frontend/index.tsx - Steam UI patches → Download UI: includes download view
frontend/patches/download-overview.ts - Download UI → Job tracking: reads progress
frontend/patches/downloads.ts - Plugin registration → Job tracking: resumes polling
frontend/index.tsx - Plugin registration → Notifications: notifies completion
frontend/index.tsx - Plugin registration → Playtime tracking: tracks game stops
frontend/index.tsx - Plugin registration → Achievement cache: refreshes achievements
frontend/index.tsx - Achievements → Achievement cache: reads achievements
frontend/patches/achievements.ts - Store purchases → Epic session: uses session
frontend/services/orders.ts - Store purchases → Notifications: sends notices
frontend/services/orders.ts - Shortcut ID mapping → Persistent local state: persists mapping
frontend/state/app-ids.ts