Lab setup

Two-Way Lab setup

The site's key isn't set up yet. Best fix: add it once in Vercel (project swinglab-dashboard → Settings → Environment Variables → SUPABASE_PUBLISHABLE_KEY) and redeploy. Or paste it here for this browser only: in Supabase, open the SwingLab project, then Project Settings → API Keys, and copy the publishable key (starts with sb_publishable_). Never use the secret key.

Swing + pitch lab

Two-Way Lab

Sign in to see Elliott's swings.

Change the saved key

Two-Way Lab

--:--:--

What to work on

The one thing to work on next, how each part of the swing is going, and what the batting cage shows, in plain words. The buttons on each card open the swings behind it.

The big picture

Every part of the swing

From the batting cage (VR)

What a good swing looks like

    All the stats

    Every number over time for the picks above: totals, each swing, and each day. Tap a tile, a dot, a day or a row to see the swings behind it.

    Swings
    -
    Avg hand speed
    -
    Kinect mph (compare with itself, not radar)
    Best hand speed
    -
    Avg swing score
    -
    Good swings
    -
    nothing to fix on the rep
    Avg head drift
    -
    after foot down; cue fires above 4 in

    Swing score

    0-100 from his mechanics, each swing. Green band = 80 or more (great). Tap a dot to see the swing.

    Hand speed by day

    Average and best peak hand speed, mph

    AverageBest

    Focus of each swing, by day

    What the app asked him to work on (one focus per swing)

    By drill

    Sessions by day

    The table view of the charts above. Tap a day to see its swings.

    Recent swings

    Latest 30 in the selected range. Tap a swing to watch it.

    Sets

    Planned sets from the Swing Lab app's Sets mode (say 10 tee swings with a -5 bat, then 10 with a -3), side by side.

    Compare two sets

    Pick any two sets, or every set with one bat against every set with another (the fair way to read A, B, A, B). A difference is called only when it's bigger than his normal swing-to-swing spread for that many swings.

    Swing score, swing by swing

    Each dot is one swing, in the order he took it in its set. A slide late in a set is tiring; a climb is warming up. Tap a dot to watch it.

    Every set

    Swings

    Every swing the picks above include, in one table. Choose the columns, sort, filter, and tap a row to watch it.

    Every swing

    Download & share

    Take the numbers into Excel or Google Sheets, or let a parent or coach see a player's swings with their own login.

    Download the data (CSV)

    Preview the newest 5 rows

    Share a player with another login

    A parent or coach sees only the players you share with them (plus the pro forms), and can't change anything. First create their login in Supabase: Authentication → Users → Add user → Create new user (their email and a password, tick Auto Confirm User). Then share here.

    Logins given full access with SQL (like Elliott's own login) see everything and aren't listed here.

    VR batting (Run the Play)

    Decisions and the strike zone

    Vision · Timing · Power

    Strike zone heatmap

      Every zone as a table

      Results

      Where he hit it

      Every ball off the bat, seen from above home plate. Tap a dot for its numbers.

      Box score by session

      AVG counts hits over at-bats (walks don't count as at-bats; with the fielders off a ball in play is neither a hit nor an out). Tap a session to see its swings.

      At-bats

      His swing in VR

      Bat path (from the controller)

      Timing, each swing

      Milliseconds from the pitch reaching the plate to the bat meeting it (or, on a miss, its fastest moment). Below 0 = early, above 0 = late. Green band = on time (within 30 ms). Tap a dot to see the swing.

      His swing in VR vs real swings

      Averages over the selected time range. A big difference means the headset changes how he swings.

      Mechanics vs results

      VR swings grouped by timing, then by the app's focus: how often he hit it, how hard, and his swing score. Tap a row to see those swings.

      Every VR swing is in the Swings tab, with all its numbers.

      Compare with a pro

      This pitch in the headset

      What Run the Play measured on the pitch he swung at (bat speed is the controller's).

      Numbers vs targets

      Targets are the ones the app coaches to (set for 14U). "His avg" is over the selected time range.