https://github.com/sanwebinfo/next-cricket-score
Next.js Cricket Score API - Simple PWA Web app and API to Get Live Cricket Score updates.
https://github.com/sanwebinfo/next-cricket-score
api cricket cricket-api cricket-app cricket-data cricket-score next nextjs react score scoreboard
Last synced: 7 months ago
JSON representation
Next.js Cricket Score API - Simple PWA Web app and API to Get Live Cricket Score updates.
- Host: GitHub
- URL: https://github.com/sanwebinfo/next-cricket-score
- Owner: sanwebinfo
- License: mit
- Created: 2023-09-07T11:32:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-13T06:00:26.000Z (7 months ago)
- Last Synced: 2025-04-13T12:09:12.116Z (7 months ago)
- Topics: api, cricket, cricket-api, cricket-app, cricket-data, cricket-score, next, nextjs, react, score, scoreboard
- Language: JavaScript
- Homepage:
- Size: 1020 KB
- Stars: 3
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Live Cricket Score

~~Next.js Cricket Score API - Simple PWA Web app and API to Get Live Cricket Score updates.~~
Next.js Cricket Score Web APP - Simple PWA Web app and API to Get Live Cricket Score updates.
**API is not working due to the Cricbuzz Mobile site being Fully Redesigned - The full Site Structure was Changed it's a bit complex to get data - Please Consider using the Python Cricket API Version - **

> This project is for Educational and Learning usage - all data credits go to `Cricbuzz.com`.
⚛ React + Next.js | 🌩 Vercel
## Free Deploy
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fsanwebinfo%2Fnext-cricket-score)
## Features 🍔
- React + Next JS
- Tailwind CSS
- Power Packed with React and Next Modules
- Next JS Router for proxy API
- PWA Support
```sh
## Homepage - Get Live Score
http://localhost:3000
## Get Match Score by ID
http://localhost:3000/score?id=123456
```
## proxy API 🍪
- Get API from this repo
- Deploy it on vercel or **Self-host (recommended)**
- Update the current Live match ID at `/app/proxy/live/match.json`
For more check - `/app/proxy/live/route.js`
```sh
http://localhost:3000/proxy/live
```
- Get Live Score data by match id
For More Check - `/app/proxy/match/[slug]/route.js`
```sh
http://localhost:3000/proxy/match/53350
```
- Add your Primiary API URL in `.env` File / For production -
```sh
MATCH_API=https://yourapurl.com/score/live?id=
```
## Installation 📦
- Required node.js LTS version (18 or 20)
- `pnpm` package manager
```sh
npm install -g pnpm
````
- Clone this repo or Download
```sh
git clone https://github.com/sanwebinfo/next-cricket-score
cd next-cricket-score
pnpm install
```
- Test the site
```sh
pnpm dev
```
- Build the site
```sh
pnpm build
```
- Test the production Build on Localhost
```sh
pnpm start
```
## Contributing 🙌
Your PR's are Welcome
## Disclaimer 🗃
- This is not an Offical API from Cricbuzz - it's an Unofficial API
- This is for Education Purposes only - use at your own risk on the Production Site
## LICENSE ☑
MIT