Skip to content

Counterplay

This is built for Football manager and players who analyze their football game afterwards.

Core trick

Labels a short match clip with AI, lets the user correct events, then generates an alternate-outcome video from a written instruction.

Tags

Description

This is built for Football manager and players who analyze their football game afterwards. The program allows the user to input a video(10-15 seconds) and the video is analyzed and labelled plus the AI tells the user what happend in the video like player A1 missed a goal. Then the user can edit what happened and then get back to what should have happened. The user can then go to step 4 where he can say to the AI, player 1 should have hit it with his left foot to get better contact and adjust his body weight which would have resulted in him generating more power and scoring a goal past the B6(the goalkeeper). Then Nano Banana pro will generate this video and show the users who then shows it to his playes.
ZeyaRabani/Counterplay★ 00 forksTypeScriptCreated Dec 13, 2025 · last push Dec 13, 2025

README excerpt

<div align="center">
<img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" />
</div>

# Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/drive/1UcQ2UIZX3OdBKa6R4GambEtLGiE2bnCt

## Run Locally

**Prerequisites:**  Node.js


1. Install dependencies:
   `npm install`
2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key
3. Run the app:
   `npm run dev`

Team