https://github.com/livepeer/current-viewers
Overlay for current viewers of a Catalyst stream
https://github.com/livepeer/current-viewers
Last synced: 8 months ago
JSON representation
Overlay for current viewers of a Catalyst stream
- Host: GitHub
- URL: https://github.com/livepeer/current-viewers
- Owner: livepeer
- License: mit
- Created: 2023-07-03T19:50:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-03T19:50:18.000Z (almost 3 years ago)
- Last Synced: 2025-06-30T02:49:01.941Z (12 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# current-viewers
Single-file JavaScript that queries Prometheus/Grafana for the current number of
viewers of a stream in a Catalyst node and exposes an overlay suitable for
including in OBS.
### Usage
```
GRAFANA_SERVICE_TOKEN="CHANGEME" \
GRAFANA_DATASOURCE_UID="CHANGEME" \
GRAFANA_QUERY_URL="https://example.com/grafana/api/ds/query" \
GRAFANA_ORG_ID="1" \
node current-viewers.mjs
```
Then you can access the overlay at http://localhost:1730/PLAYBACK_ID.html. If
you want to query the data yourself, it's at
http://localhost:1730/PLAYBACK_ID.json