Skip to content

Add Player Count plugin (playcount-steambrew)#148

Closed
BarterClub wants to merge 42 commits intoSteamClientHomebrew:mainfrom
BarterClub:main
Closed

Add Player Count plugin (playcount-steambrew)#148
BarterClub wants to merge 42 commits intoSteamClientHomebrew:mainfrom
BarterClub:main

Conversation

@BarterClub
Copy link
Copy Markdown

New Plugin: Player Count

Repository: https://github.com/BarterClub/playcount-steambrew
Backend: Lua
Description: Displays real-time player counts on game pages in the Steam library.

  • Live player count badge on library game pages
  • Color-coded status based on player count
  • Click to open SteamCharts
  • Configurable position via settings panel

Ported from playcount-decky by itsOwen

itsOwen and others added 8 commits March 12, 2025 17:15
- Added shared types (src/types/index.ts)
- Added constants file for magic values, URLs, colors, timing
- Added color utilities (hexToRgb, getBadgeColor)
- Added API utilities (fetchPlayerCount, formatPlayerCount)
- Added useSettings custom hook for settings management
- Refactored all components to use shared utilities
- Fixed European locale number formatting bug (en-US locale)
- Split reset button into separate Clear Cache and Reset Settings
- Improved type safety and removed duplicate code
- Added proper React cleanup (useCallback, useMemo)
- Updated dependencies to latest compatible versions
- Fix resetSettings to use DEFAULT_SETTINGS directly instead of loadSettings()
- Add weekendAvg metric for consistent comparisons
- Fix pie chart to compare averages (not peak vs averages)
- Update "Most Active Times" to show Weekend Avg instead of Peak
- Remove redundant "Player Distribution" label from pie chart
@NotAmiru
Copy link
Copy Markdown

since he needs a vouch that it works from a third party i can vouch that it works as intended

@shdwmtr
Copy link
Copy Markdown
Member

shdwmtr commented Mar 27, 2026

Don't use raw html <input/> components, there's probably an equivalent in @steambrew/client that does the same thing (I can't remember though). Regardless, we must strictly use Steam's components in plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants