How errorcze/tarkovbot_streamdeck_plugin works
This is a Stream Deck plugin for Escape from Tarkov: users place actions on a deck, configure game mode or install path, and receive raid, map, server, boss, Goons, trader-restock and Tarkov-time information on keys. The runtime registers actions, reads local game logs where needed, and obtains map, trader, boss-image and datacenter data through its API service. The graph preserves documented action capabilities; some implementation details are unsampled, so uncertain links are omitted.
Main entry points: plugin.ts Action registry · current-map-info.ts Current map lookup · api-service.ts Tarkov API client · map-info-base.ts Map info display
Components 30
Plugin runtime
- Action registry
tools/src/plugin.ts
Raid and map
- Current map lookup
tools/src/actions/current-map-info.ts - Map info display
tools/src/actions/base/map-info-base.ts - Map name
tools/src/actions/current-map-name.ts - Raid duration
tools/src/actions/current-map-duration.ts - Player count
tools/src/actions/current-map-players.ts - Map server
tools/src/actions/current-map-server.ts - Current server
tools/src/actions/current-server.ts - Raid timer
tools/src/actions/raid-timer.ts - Profile navigation
tools/src/actions/current-map-backtoprofile.ts
Game intelligence
- Map bosses
tools/src/actions/current-map-bosses.ts - Boss detail
tools/src/actions/current-map-boss.ts - Goons location
tools/src/actions/goons-location.ts - Trader restock
tools/src/actions/trader-restock.ts - Tarkov time
tools/src/actions/tarkov-time.ts
Shared services
- Tarkov API client
tools/src/services/api-service.ts - Background refresh
tools/src/services/background-refresh.ts - Raid log watcher
tools/src/services/raid-log-watcher.ts - Game log reader
tools/src/services/log-service.ts - Settings manager
tools/src/services/settings-service.ts - Runtime state
tools/src/services/state-service.ts - Install path detection
tools/src/services/path-detect-service.ts - Inspector commands
tools/src/actions/base/command-handler.ts - Path synchronization
tools/src/actions/base/path-sync.ts - Diagnostics
tools/src/services/diagnostics-service.ts - Time formatting
tools/src/utils/time-format.ts
Other components
- Deck user
- TarkovBot API
- EFT log files
- User settings file
Connections 40
- Deck user → Action registry: uses deck
tools/src/plugin.ts - Action registry → Current map lookup: registers
tools/src/plugin.ts - Action registry → Map name: registers
tools/src/plugin.ts - Action registry → Raid duration: registers
tools/src/plugin.ts - Action registry → Player count: registers
tools/src/plugin.ts - Action registry → Map server: registers
tools/src/plugin.ts - Action registry → Current server: registers
tools/src/plugin.ts - Action registry → Raid timer: registers
tools/src/plugin.ts - Action registry → Map bosses: registers
tools/src/plugin.ts - Action registry → Goons location: registers
tools/src/plugin.ts - Action registry → Trader restock: registers
tools/src/plugin.ts - Action registry → Tarkov time: registers
tools/src/plugin.ts - Action registry → Profile navigation: registers
tools/src/plugin.ts - Action registry → Background refresh: starts refresh
tools/src/plugin.ts - Current map lookup → Game log reader: looks up map
tools/src/actions/current-map-info.ts - Current map lookup → Runtime state: updates location
tools/src/actions/current-map-info.ts - Current map lookup → Inspector commands: handles commands
tools/src/actions/current-map-info.ts - Current map lookup → Path synchronization: syncs path
tools/src/actions/current-map-info.ts - Raid duration → Map info display: extends
tools/src/actions/current-map-duration.ts - Map name → Map info display: extends
tools/src/actions/current-map-name.ts - Player count → Map info display: extends
tools/src/actions/current-map-players.ts - Map server → Map info display: extends
tools/src/actions/current-map-server.ts - Map info display → Runtime state: reads map state
tools/src/actions/base/map-info-base.ts - Map bosses → Boss detail: uses boss action
tools/src/actions/current-map-bosses.ts - Boss detail → Tarkov API client: gets boss data
tools/src/actions/current-map-boss.ts - Trader restock → Tarkov API client: gets restocks
tools/src/actions/trader-restock.ts - Background refresh → Tarkov API client: refreshes data
tools/src/services/background-refresh.ts - Tarkov API client → TarkovBot API: fetches data
tools/src/services/api-service.ts - Game log reader → EFT log files: reads
tools/src/services/log-service.ts - Raid timer → Raid log watcher: watches raid logs
tools/src/actions/raid-timer.ts - Raid log watcher → Game log reader: uses log reader
tools/src/services/raid-log-watcher.ts - Settings manager → User settings file: reads and writes
tools/src/services/settings-service.ts - Inspector commands → Install path detection: detects install
tools/src/actions/base/command-handler.ts - Inspector commands → Settings manager: updates settings
tools/src/actions/base/command-handler.ts - Path synchronization → Settings manager: persists path
tools/src/actions/base/path-sync.ts - Inspector commands → Diagnostics: logs issues
tools/src/actions/base/command-handler.ts - Tarkov API client → Diagnostics: reports errors
tools/src/services/api-service.ts - Current server → Game log reader: reads server
tools/src/actions/current-server.ts - Map server → Time formatting: formats time
tools/src/actions/current-map-server.ts - Trader restock → Time formatting: formats countdown
tools/src/actions/trader-restock.ts