01  ·  A soccer training companion

ELEVEN.

Formerly Composed

A web app that turns every solo training session — backyard, wall, empty park — into a position-weighted score.

77 React components
26 API routes
30 SQLite tables
28 Migrations
76 Seeded drills

02  ·  How it works

Log → score → see → structure → prove.

01

Player logs the work

Quick session form (one tap) or full logger — or a phone clip. Session drafts survive a dropped connection via IndexedDB, so a player can finish entering in a place without internet.

SessionLogger.jsx  ·  QuickSessionForm.jsx  ·  idb
02

The app scores it

Sessions feed the Pace calculator. Clips get H.264-compressed in the browser with ffmpeg.wasm, uploaded resumably via Tus, sampled into frames, and analyzed by Google's Gemini 2.5 Pro (with a Flash fallback) — returning time-coded stats: shots, on-target, foot usage, pass accuracy.

services/videoAnalyzer.js  ·  services/frameExtractor.js
03

Coach sees the squad

Squad Pulse — one scannable view showing who trained, who's stalling, who's accelerating. Three batched queries on the backend regardless of squad size. Coaches push assigned daily plans from the same screen.

CoachSquadDashboard.jsx  ·  routes/roster.js
04

4-week blocks anchor to real tests

LSPT and LSST benchmarks (Loughborough passing + shooting) at baseline, week 2, and week 4. Scores percentile-ranked against FA England and US Soccer norms. Elite / Advanced / Competitive / Developing / Lower.

routes/blocks.js  ·  utils/benchmarks.js
05

Coach shares a revocable link

Coach generates a /r/:slug URL with a frozen snapshot. Parent opens it on any device — no app, no account, no login. One click revokes it and anyone who still has the URL sees a "no longer available" page, not a crash.

routes/digests.js  ·  PublicDigest.jsx

What the app actually looks like.

Screenshots from the earlier Composed prototype. Warm stone background, navy ink, gold accents.

Player
Player home screen showing Scorer Pace -100% STALLING and today's training
Home. The one-number pitch — your Pace, your last session, today's training.
Player
Player Pace detail view showing the Scorer's Pace dial and diagnostic copy
Pace detail. "Players like you" percentile, what dropped, what to do next.
Coach
Coach squad view showing the 4-week block, Pilot Test Block, and all players with stall status
Squad. Every player, one scroll. Red dots = stalling. Blocks are listed above the roster.
Coach
Coach roster view showing per-player compliance percentages and assigned plan counts
Roster. Per-player: this-week sessions, 30-day volume, compliance with assigned plans.

03  ·  The core idea

A single score, weighted by position.

Pace is a 0–100 score computed from five sub-signals — shooting, passing, consistency, duration, load — weighted differently by position. Pick a role below and watch the math redistribute.

Pace weight table src/utils/pace.js  ·  237 lines
Shooting
40%
Passing
10%
Consistency
20%
Duration
10%
Load
20%
A striker's Pace weights shooting at 40%; a centre-back's weights it at 5%. Two players can have the same raw numbers and very different Paces — which is the whole point.

04  ·  Pre-match scout

A scouting report on the next opponent.

Reports
Scouting Reports list view showing FC Barcelona, FC Thunder, and FC Lightning with Ready and Failed status tags
Reports. The opponents you've scouted, one tap away from the brief.
Detail
FC Barcelona detail view showing the 4-3-3 formation pitch diagram and Key Players to Watch cards for Baba Kourama and Orian Goren
Formation. The opponent's shape and the specific players to watch.
Tactics
FC Barcelona tactical brief showing Strengths, Weaknesses, and a numbered What To Do list
Brief. Strengths, weaknesses, and a numbered what-to-do the coach can hand to the squad.
Your plan
Your Game Plan section for FC Barcelona with accuracy, pass accuracy, weak foot, and avg intensity stats based on the player's last 10 sessions
Your plan. Accuracy, pass accuracy, weak foot, intensity — cross-referenced against the opponent.

05  ·  Ask ELEVEN

A chatbot with context.

components/AskComposed.jsx  ·  routes/aiChat.js  ·  @google/genai
AI chat showing the question 'How has my shooting improved this month?' and a data-grounded Gemini reply citing April 11 with 9 of 18 shots

06  ·  Built with

The stack.

Every dependency pulls its weight. Versions pinned. No framework-of-the-week.

React v19.2 One codebase, three roles (player, coach, parent). Conditional routing instead of three apps.
Vite v7.3 Dev server + code-split production build. Dev proxy to the Express backend on :3001.
Tailwind CSS v4.2 Utility-first styling. Zero runtime cost, zero CSS-in-JS tax.
Express v5.2 Thin API surface. Helmet, rate-limit, CORS, Zod validation on every body.
better-sqlite3 v12.6 Synchronous SQLite. One file, zero-latency reads, painless backup.
@ffmpeg/ffmpeg v0.12 H.264 encoding inside the browser — the video never leaves the phone raw.
tus-js-client v4.3 Resumable uploads. Survives the subway tunnel.
@google/genai v1.47 Multimodal model. Reads extracted frames, returns counted stats with timestamps.
google-auth-library v10.6 Google Sign-In via ID-token verification — no OAuth redirect, no client secret.
bcryptjs + jsonwebtoken — 12 bcrypt rounds. JWT access (1h) + refresh (7d). Token-version revocation.
Zod v4.3 Schema-validated request bodies. Contract-first, bottom-up.
vite-plugin-pwa v1.2 Installable from a link. Offline-capable. No app store.

External APIs

Google Gemini API 2.5 Pro / Flash Video frame analysis and the Ask ELEVEN chatbot. Automatic fallback from Pro to Flash on rate-limit or quota.
Google Identity Services ID-token flow Sign in with Google directly in the browser. No OAuth redirect, no callback URL, no client secret.
Manus API v2 Async task pipeline used by the deep opponent-scouting route. The coach kicks off a task; it resolves when the model finishes.