A professional, lightweight cricket scorecard overlay designed for live streaming. This overlay fetches real-time data from CricClubs or can be used with mock data for testing.
-
Start a Local Server You need to serve the files over HTTP. You can use Python's built-in server:
python3 -m http.server 8000
-
Open in Browser / OBS Navigate to the URL with your match ID:
http://localhost:8000/?matchId=YOUR_MATCH_IDAdd this URL as a Browser Source in OBS or your streaming software.
Customize the overlay using the following URL parameters:
| Parameter | Description | Default | Example |
|---|---|---|---|
matchId |
Required. The unique ID of the match on CricClubs. | None | ?matchId=1939 |
cId |
The Club ID on CricClubs. | 1089463 (LPCL) |
?cId=12345 |
theme |
The visual style of the overlay. Options: modern, classic. |
modern |
?theme=classic |
logo |
Displays a pre-configured sponsor/tournament logo. | None | ?logo=1 |
debug |
Uses mock data for testing without a live match. | None | ?debug=1 |
mode |
Enable special modes like replay. |
?mode=replay |
- Modern (Default): A vibrant, glassmorphism-inspired design with animations.
- Classic: A traditional, cleaner broadcast look.
To use the classic theme:
http://localhost:8000/?matchId=1939&theme=classic
You can test the overlay layouts without a live match ID by using the debug parameter:
?debug=1: 1st Innings (Batting view)?debug=2: 2nd Innings (Chase view)?debug=3: Match Ended (Result view)?debug=4: Toss (Pre-match view)
The logo parameter maps to images defined in script.js.
?logo=1-> Pulte Homes?logo=2-> Perry Homes
To add more logos, update the LOGO_MAP in script.js.