kinetic-cricket

byAryan jaiswara

MASTER PROMPT Build a production-ready mobile and web application called GullyScore Pro. The app is inspired by Cricbuzz, Crex, CricHeroes, and Cricheroes but specifically designed for street cricket, colony cricket, school cricket, society tournaments, hostel cricket, and local tournaments. The primary goal is: "Make score manipulation and cheating almost impossible." The application must be scalable, deployment-ready, modern, and suitable for thousands of concurrent matches. TECH STACK Frontend: Next.js 15 TypeScript Tailwind CSS Shadcn UI Framer Motion Backend: Node.js Express PostgreSQL Prisma ORM Realtime: Socket.io Authentication: Firebase Auth Google Login Phone OTP Login Storage: Cloudinary Deployment: Vercel (Frontend) Railway / Render (Backend) Neon PostgreSQL CORE FEATURES Live Scoring Like Cricbuzz. Support: 5 overs 6 overs 10 overs 15 overs Custom overs Ball-by-ball scoring. Runs: 0 1 2 3 4 5 6 Extras: Wide No Ball Bye Leg Bye Wickets: Bowled Caught Run Out Hit Wicket Retired ANTI-CHEATING SYSTEM This is the app's USP. Dual Team Verification Every match has: Team A Scorer Team B Scorer When a ball is entered: Ball becomes: "PENDING" Opponent must confirm. Only after confirmation: Ball becomes official. Dispute Mode If scorer enters: 6 Opponent says: 2 System opens dispute. Both teams vote. Spectators vote. Captain vote gets higher weight. Final result stored permanently. Ball Lock System After 30 seconds: Ball entry becomes immutable. No editing. Requires: Captain approval AND Opponent captain approval Match Audit Trail Every action recorded. Example: 8:05 PM Aryan added 4 runs 8:06 PM Rahul changed to 2 runs 8:06 PM Captain approved Permanent logs. Cannot be deleted. Video Proof Feature Players can upload: Last Ball Video Wicket Video Boundary Video Stored with timestamp. Used in disputes. AI Cheat Detection AI flags suspicious matches. Examples: 18 sixes in one over Score jumps Impossible run rate Fake players Same device controlling both teams Generate: Fair Play Score 0-100 GPS VALIDATION Prevent fake matches. Verify: Match location Team location Player location Show: Verified Match Badge QR MATCH JOINING Create Match Generate QR Players scan QR Join instantly. DIGITAL TOSS Spin animation. Random toss. Result locked. Cannot be edited. LIVE MATCH SCREEN Must look similar to Cricbuzz. Show: Current Score Overs Run Rate Required Run Rate Partnership Worm Graph Wickets Fall of Wickets Commentary Feed Live Updates AI COMMENTARY Automatically generate: Ball-by-ball commentary. Examples: "Massive six over long-on!" "Clean bowled! Stumps shattered." "Dot ball. Pressure building." Multiple commentary styles: Professional Funny Gully Hindi Hinglish AI HIGHLIGHTS Generate: Match Summary Player Summary Winning Moments Best Partnership Turning Point Automatically. PLAYER PROFILES Each player gets: Career Runs Career Wickets Strike Rate Economy MVP Awards Matches Played Win % Highest Score Best Bowling Batting Graph Bowling Graph TEAM FEATURES Team Logo Team Jersey Team Captain Squad Bench Statistics Ranking Achievements Trophies TOURNAMENT SYSTEM League Knockout Round Robin IPL Style World Cup Style Auction Style PLAYER AUCTION For local tournaments. Create auction. Player enters base price. Teams bid. Auction history stored. GULLY PREMIER LEAGUE MODE Season based. Points table. Orange Cap. Purple Cap. MVP Leaderboard. Fair Play Award. LEADERBOARDS Local Area School College City District State Country Global SOCIAL FEATURES Like Instagram for cricketers. Players can: Post photos Post videos Match updates Achievements Follow players Follow teams Comment Like Share REELS SYSTEM Cricket reels. Upload: Wickets Sixes Catches Run Outs Highlights AI VIDEO HIGHLIGHTS Automatically create: 30 sec reel 60 sec reel Tournament reel Winner reel Using uploaded clips. FAN MODE Spectators can: Watch live score React Vote in disputes Predict winner Earn points GAMIFICATION XP Levels Badges Achievements Coins Streaks Rewards MONETIZATION Premium Subscription Tournament Hosting Fees Ads Team Verification Player Verification Custom Jerseys Advanced Analytics Sponsor Pages ADMIN PANEL Manage: Users Teams Matches Tournaments Reports Disputes Videos Payments Leaderboards Analytics SECURITY JWT Rate Limiting Anti Spam Device Fingerprinting Role Based Access Audit Logs SQL Injection Protection XSS Protection CSRF Protection 2FA ANALYTICS DASHBOARD Daily Users Live Matches Completed Matches Revenue Retention Growth Heatmaps Fair Play Metrics UNIQUE FEATURES NOT IN CRICBUZZ Street Cricket Rules Engine Custom Rules: One Tip One Hand Direct Out Last Man Batting One Bounce Catch Roof Out Window Out Lost Ball Penalty Six and Out Custom Local Rules Noise Detection Use phone microphone. Crowd noise spike = likely boundary/wicket. Assist scoring. Smart Boundary Detection Use phone camera. AI detects: 4 6 Catch Wicket Gully DRS Players challenge decisions. Video replay. Community vote. Fair Play Rating Every player gets: Sportsmanship score. Street Cricket World Ranking Global ranking system for local players. UI REQUIREMENTS Modern Dark Mode Light Mode Responsive Cricbuzz inspired Apple-level polish 60 FPS animations Professional design system DELIVERABLES Generate: Complete folder structure Database schema Prisma models API routes Backend architecture Frontend architecture Authentication flow Realtime socket architecture CI/CD pipeline Docker setup Production deployment setup Testing strategy Scalability strategy Security strategy Full implementation code The output should be production-grade, scalable, maintainable, and ready for deployment.

No preview

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document

Kinetic-Cricket: GullyScore Pro System Requirements Document

1. Introduction

The purpose of this document is to outline the system requirements for the development of GullyScore Pro, a mobile and web application specifically designed for street cricket, colony cricket, school cricket, society tournaments, hostel cricket, and local tournaments. The application aims to prevent score manipulation and cheating, providing a scalable, modern platform for thousands of concurrent matches.

2. System Overview

GullyScore Pro is inspired by popular cricket applications such as Cricbuzz, Crex, and CricHeroes, but it is tailored for local cricket formats. The application will feature live scoring, anti-cheating mechanisms, social features, tournament management, and AI-generated commentary. It will be built using a modern tech stack to ensure scalability and deployment readiness.

Page 1 of 8

3. Functional Requirements

  • As a User, I should be able to view live scores similar to Cricbuzz.
  • As a User, I should be able to score matches with support for 5, 6, 10, 15, and custom overs.
  • As a User, I should be able to enter ball-by-ball scores including runs, extras, and wickets.
  • As a Team A Scorer, I should be able to enter scores that become "PENDING" until confirmed by the opponent.
  • As a Team B Scorer, I should be able to confirm or dispute the scores entered by Team A.
  • As a User, I should be able to participate in a dispute mode where both teams and spectators can vote.
  • As a User, I should see a ball lock system where entries become immutable after 30 seconds.
  • As a Captain, I should be able to approve score changes after the ball lock period.
  • As a User, I should be able to upload video proof for last ball, wicket, and boundary events.
  • As an AI System, I should flag suspicious matches and generate a Fair Play Score.
  • As a User, I should be able to verify match, team, and player locations using GPS.
  • As a User, I should be able to join matches via QR code scanning.
  • As a User, I should experience a digital toss with spin animation and locked results.
  • As a User, I should view a live match screen with current score, overs, run rate, and more.
  • As an AI System, I should generate ball-by-ball commentary in multiple styles.
Page 2 of 8
  • As a User, I should receive AI-generated match and player highlights.
  • As a Player, I should have a profile displaying career statistics and achievements.
  • As a Team, I should manage team logos, jerseys, captains, and statistics.
  • As a Tournament Organizer, I should create and manage various tournament styles.
  • As a User, I should participate in player auctions for local tournaments.
  • As a User, I should engage with social features like posting photos, videos, and match updates.
  • As a User, I should create and view cricket reels for highlights and key moments.
  • As a Spectator, I should watch live scores, react, and vote in disputes.
  • As a User, I should engage with gamification elements like XP, levels, and badges.
  • As an Admin, I should manage users, teams, matches, and disputes through an admin panel.
  • As a System, I should ensure security with JWT, rate limiting, and other measures.
  • As a User, I should view analytics dashboards for user and match statistics.
  • As a User, I should experience unique street cricket rules and features not found in Cricbuzz.
Page 3 of 8

4. User Personas

  • User: A general user who participates in matches, views scores, and engages with social features.
  • Team A Scorer: A designated scorer for Team A responsible for entering match scores.
  • Team B Scorer: A designated scorer for Team B responsible for confirming or disputing scores.
  • Captain: A team leader who approves score changes and participates in disputes.
  • Spectator: An audience member who watches live scores and participates in voting.
  • Tournament Organizer: An individual managing tournaments and player auctions.
  • Admin: A system administrator managing users, teams, matches, and disputes.
Page 4 of 8

5. Core User Flows

  • User views live match scores -> enters ball-by-ball scores -> scores confirmed by opponent -> scores become official.
  • Team A Scorer enters score -> Team B Scorer confirms or disputes -> dispute mode initiated if needed -> final result stored.
  • User uploads video proof -> video stored with timestamp -> used in disputes.
  • AI flags suspicious match -> generates Fair Play Score -> alerts users.
  • User verifies match location via GPS -> receives Verified Match Badge.
  • User creates match -> generates QR code -> players scan QR to join.
  • User experiences digital toss -> result locked -> match begins.
  • User views live match screen -> receives AI commentary and highlights.
  • Player updates profile -> views career statistics and achievements.
  • Tournament Organizer creates tournament -> manages teams and matches -> conducts player auction.

6. Visuals Colors and Theme

  • primary: #1A73E8 (Deep Blue)
  • primary_light: #E8F0FE (Light Blue)
  • secondary: #FF6F61 (Coral)
  • accent: #FFD700 (Gold)
  • highlight: #FFA500 (Orange)
  • bg: #FFFFFF (White)
  • surface: rgba(240, 240, 240, 0.8)
  • text: #333333 (Dark Gray)
  • text_muted: #777777 (Light Gray)
  • border: rgba(200, 200, 200, 0.5)
Page 5 of 8

7. Signature Design Concept

The homepage of GullyScore Pro will feature an interactive cricket field where users can explore different sections of the app. Using @react-three/fiber and @react-three/drei, the field will be a 3D model with clickable hotspots representing features like live scoring, tournaments, and player profiles. Users can rotate the field, zoom in on specific areas, and interact with elements that animate and provide information about each feature. This immersive experience will make the app engaging and intuitive, offering a unique way to navigate through the app's offerings.

8. Interaction Model & Motion Direction

The landing page will utilize a "parallax" interaction model, providing layered depth via scroll. Decorative elements like cricket balls and bats will translate at different speeds, creating a dynamic and engaging first impression. Internal pages will adopt a "static" model to ensure clarity and readability, focusing on data-heavy content like scores and statistics.

9. Non-Functional Requirements

  • The application must support thousands of concurrent users.
  • It should be responsive and work seamlessly on both mobile and web platforms.
  • The system should ensure data integrity and security.
  • The application must be scalable and maintainable, with a clear architecture for future updates.
Page 6 of 8

10. Tech Stack

  • Frontend: Next.js 15, TypeScript, Tailwind CSS, Shadcn UI, Framer Motion
  • Backend: Node.js, Express, PostgreSQL, Prisma ORM
  • Realtime: Socket.io
  • Authentication: Firebase Auth, Google Login, Phone OTP Login
  • Storage: Cloudinary
  • Deployment: Vercel (Frontend), Railway / Render (Backend), Neon PostgreSQL

11. Assumptions and Constraints

  • The application will primarily target users in India, considering local cricket formats and rules.
  • The system will rely on cloud services for storage and authentication.
  • The application must comply with data protection regulations applicable in the target regions.
Page 7 of 8

12. Glossary

  • USP: Unique Selling Proposition
  • GPS: Global Positioning System
  • QR: Quick Response
  • AI: Artificial Intelligence
  • DRS: Decision Review System
  • JWT: JSON Web Token
  • 2FA: Two-Factor Authentication

This document outlines the comprehensive requirements for developing GullyScore Pro, ensuring a robust, feature-rich application tailored for local cricket enthusiasts.

Page 8 of 8

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Login: Admin Sign In
Dashboard: View Analytics
Dashboard: View Live Matches
Users: Manage Users
Users: Verify Player
Disputes: Review Disputes
Disputes: Resolve Dispute
Matches: Manage Matches
AI: View Fair Play Score
Payments: View Revenue
Reports: View Audit Logs

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Login: Admin Sign In
Dashboard: View Analytics
Dashboard: View Live Matches
Users: Manage Users
Users: Verify Player
Disputes: Review Disputes
Disputes: Resolve Dispute
Matches: Manage Matches
AI: View Fair Play Score
Payments: View Revenue
Reports: View Audit Logs