"Devour the Field."
MetaPitch is an AI-powered sports trajectory simulation and analysis platform. It is a 3D Soccer Visualization and Analysis tool powered by Gemini 3. It uses "MetaPitch" to analyze player positions in real-time and predict the most "Egoistic" path to the goal.
- 3D Holographic Pitch: Full FIFA-standard soccer field rendering.
- MetaPitch Analysis: Gemini 3.0 Pro/Flash predicts future player movements and scoring opportunities.
- Blue Lock Scenarios: Pre-loaded with iconic challenges (e.g., Isagi's Direct Shot).
- Node.js 20+
- A Google Gemini API Key
Create a .env file in the root directory:
GEMINI_API_KEY=your_key_herenpm installcd server
npm run devOpen another terminal:
cd frontend
npm run devMetaPitch is set up to deploy as a single Node app: the backend serves the built Vite frontend. One service, one URL.
- Push repo to GitHub (do not commit
node_modules/or.env) - In Render: New Web Service → connect repo
- Configure:
- Runtime: Node 20
- Build Command:
npm ci && npm --workspace server run build && npm --workspace frontend run build
- Start Command:
node server/dist/index.js
- Add environment variables:
GEMINI_API_KEY= your key
- Deploy and open the service URL
Build and run locally or on any container host:
docker build -t metapitch .
docker run -p 3000:3000 -e GEMINI_API_KEY=your_key_here metapitchUse the included deploy script:
sudo bash deploy/deploy.shThen add your GEMINI_API_KEY to /home/metapitch/metapitch/.env.
Check status:
sudo systemctl status metapitch
sudo journalctl -u metapitch -fIf you want separate scaling or a CDN-first frontend:
Backend (Render/Railway):
- Build:
npm ci && npm --workspace server run build - Start:
node server/dist/index.js - Env:
GEMINI_API_KEY
Frontend (Vercel):
- Build:
npm ci && npm --workspace frontend run build - Set
VITE_API_URL=https://<your-backend-domain>
- Open the frontend URL
- Select the "Isagi's Direct Shot Awakening" scenario
- Use the Timeline to scrub through the play
- Click "MetaPitch" to see Gemini analyzing the frame!