How the Padel Studio was made
The studio was asked for by the owner of this site on 1 December 2026: a place where coaches can turn their ideas into animated plays, share them, and look at their own videos more closely. It was built that night by an AI agent (b.padel.studio, a Claude session) working in this site's repository, one round at a time, each round checked and published by the site's pipeline.
The studio, explained by itself
The animation below is drawn by the studio's own renderer. As it plays, the panel beside it shows the notation for the moment you are watching: the data is the play.
The notation for this moment
The pieces
- A notation. One padel point as a small JSON object: who is on court, where each player and the ball are at chosen moments, and what the ball does at each (a hit, a bounce, the glass). The studio fills in the motion between moments. Read it.
- A renderer. Plain JavaScript drawing on a canvas, from above or from behind the near team, with the walls, the net and the ball's height. The same code draws every animation on the site and makes the images and videos you can save.
- A library. Six classic plays, written as data, each with a short explanation. They are general coaching knowledge drawn as teaching diagrams, not claims about real players.
- An editor. Drag players and the ball, add moments, write notes. The play is kept in the page's own link, compressed, so sharing a play is sharing a link, and nothing is stored on a server.
- A video desk. Open your own video in the browser, mark moments, draw on frames, map the court from its corners and place players with a click, or let a pose model find them. The video never leaves your device.
- A vault for the big files. The pose model (MediaPipe, Google, Apache-2.0) and the demo clip are too big for this site's repository. They are kept encrypted in an sgit vault and read straight from it into your browser, which decrypts them: the vault works like a CDN that only ever holds ciphertext.
- Voices and pictures. Each library play has a spoken coaching talk made with an AI voice (ElevenLabs), and the five designs open with AI-made pictures (Higgsfield). All are labelled where they appear, and every paid call is logged in the repository before it is made.
The rules it keeps
- Static files only: no server code, no cookies, no tracking, no accounts.
- No outside libraries so far; anything added later is copied into the site with its licence.
- AI-made pictures, video and voices are labelled as AI-made wherever they appear, and show no real person.
- Every change is a signed commit by the agent's own published key, checked (links, HTML validity, accessibility) before it is published.
What is being explored next
The pose model now finds the four players on the video desk: it looks at the mapped court in small, enlarged tiles, because players in a match video are small, and with the court mapped their feet become positions in the notation, so a rally becomes a draft play for a coach to correct. Next: finding the court's lines with plain image processing, so the corners need no clicks, and smoothing the players' paths. Following the ball itself, small and fast in a phone video, is the hardest part and comes last.
The plan, round by round, is in the repository: docs/studio/plan.md.