{
  "schema_version": "refereeai.app.v1",
  "name": "RefereeAI",
  "description": "Record a game on one phone and get the score, key moments, 3 measured notes, and an AI-readable Markdown + JSON recap.",
  "homepage": "https://refereeai.xyz/",
  "app_url": "https://refereeai.xyz/play",
  "llms_txt": "https://refereeai.xyz/llms.txt",
  "llms_full_txt": "https://refereeai.xyz/llms-full.txt",
  "pwa_manifest": "https://refereeai.xyz/play/manifest.webmanifest",
  "privacy_url": "https://refereeai.xyz/privacy/",
  "platforms": {
    "web_pwa": {
      "status": "live",
      "url": "https://refereeai.xyz/play",
      "installable": true
    },
    "ios": {
      "bundle_id": "xyz.refereeai.app",
      "scheme": "refereeai",
      "distribution": "Expo EAS / TestFlight / App Store"
    },
    "android": {
      "package": "xyz.refereeai.app",
      "scheme": "refereeai",
      "distribution": "Expo EAS / APK / Google Play"
    }
  },
  "routes": [
    { "path": "/play", "purpose": "Adult-only pilot sign-up (first name, main sport)" },
    { "path": "/play/pick", "purpose": "Choose game type and format options" },
    { "path": "/play/players", "purpose": "Name sides, share 4-letter join code, confirm consent" },
    { "path": "/play/join", "purpose": "Join a host game using a 4-letter code" },
    { "path": "/play/record", "purpose": "Record video on device or pick a clip (5 s to 5 min, max 500 MB)" },
    { "path": "/play/score", "purpose": "Tap score events during or after play" },
    { "path": "/play/analysis", "purpose": "Upload clip, poll status, inspect recap, export AI format, or delete" }
  ],
  "game_types": [
    { "id": "box_cricket", "label": "Box cricket", "scoring": "taps", "options": { "overs": [4, 5, 6], "players": [4, 5, 6, 7, 8] } },
    { "id": "tennis_singles", "label": "Tennis singles", "scoring": "taps" },
    { "id": "table_tennis", "label": "Table tennis", "scoring": "taps" },
    { "id": "wall_tennis", "label": "Tennis against a wall", "scoring": "automatic_wall_rallies" }
  ],
  "api": {
    "base_url": "https://refereeai.xyz",
    "play_endpoint": "POST /api/play",
    "play_actions": ["register", "create_game", "join", "game", "upload", "delete"],
    "upload_done_endpoint": "POST /api/upload-done",
    "job_status_endpoint": "GET /api/job-status?id=<id>&token=<token>"
  },
  "recap_schema": {
    "version": "refereeai.recap.v1",
    "formats": ["text/markdown", "application/json"],
    "fields": [
      "schema_version",
      "generator",
      "app_url",
      "game_type",
      "game_name",
      "job_id",
      "score",
      "wall",
      "summary",
      "notes",
      "moments",
      "measured"
    ]
  },
  "privacy": {
    "adults_only": true,
    "analytics_on_app_routes": false,
    "immediate_delete_supported": true,
    "delete_email": "hello@aisoft.us"
  }
}
