Hitlist
Who has actually hit today's starting pitcher, and how much is that history worth?
Batter versus pitcher history is hard to trust: a career line against one pitcher is usually a handful of at bats. Hitlist pulls that history for every lineup against the probable starter, keeps only the lines with enough at bats to mean something, and ranks them so the strongest surface first.
Built with
- Next.js 16
- React 19
- TypeScript
- Tailwind v4
- Vercel KV
- MLB Stats API
Free to use, no account. The board fills on MLB game days, once lineups are posted.
The screens
Redrawn for this site from the real product, in its own type and colours, with sample data.
Everything it does
52 features in 8 areas, written from the code.
The daily board
One page for one slate, refreshed in the background while it stays open.
7 features
- Built for one prop
- Everything on the page serves the Player to Record a Hit market (1+ hits, over 0.5). Ranking and hit chance use batting average, so a walk or a hit by pitch does not raise a play's rank.
- How to use this system
- A panel at the top says what to bet and in what order: the recommended double first, a Smash Double if one exists, the second double as an option, or singles from the Top 4 for lower risk. It ends with the reminder that career history is one input and no guarantee.
- Today and tomorrow
- The date control moves between today's slate and tomorrow's and nowhere else. The slate day is the Pacific calendar day.
- Status bar
- A clock that ticks every second and the time of the last data update, with the number of games scanned added on desktop. Game times and timestamps are shown in the viewer's own time zone.
- Skipped games explained
- A game with no probable pitcher announced for one or both teams cannot be scored, so it is counted as skipped and an info tip says why. Postponed, cancelled and suspended games are removed before counting.
- Loading that says what it is doing
- The skeleton shows an elapsed timer and changes its message at 5, 15 and 30 seconds, from fetching matchups through to a note that the slate is large.
- Manual refresh and error state
- A Refresh button forces a reload. If the MLB data cannot be loaded the page says so in one line and keeps the controls usable.
Top 4 plays
The four strongest career matchups on the slate, capped at four on purpose.
8 features
- A floor before ranking
- A hitter only qualifies with at least 15 career at bats and a .300 average against today's starter. These two minimums are enforced on the server and shown as fixed chips, so they cannot be loosened from the page.
- Ranked by average, discounted for sample
- Plays are ordered by career average times at bats over 30, capped at 1. Ties go to the higher raw average, then to more at bats.
- Confidence colour
- The average is printed green at 21 or more at bats, yellow at 18 to 20 and red at 15 to 17. The same colour marks the row in the tables and the edge of the card on a phone.
- Lineup badge
- Each play carries a badge reading Confirmed with the batting slot, or Estimated with a projected slot in amber when the lineup has not been posted.
- Expected at bats and hit chance
- Beside each play is the number of at bats his slot is expected to get and the chance of at least one hit, to two decimals. Both can change when the batting order is confirmed.
- Candidates, then a soft lock
- Before the slate's first scheduled pitch the list is a live candidate board and can include estimated lineup plays. At first pitch the official Top 4 is taken from the confirmed qualifying plays available at that moment and stored.
- Started plays stay, open slots refill
- Once a tracked play's game starts it is kept in the stored set, leaves this list and moves to the In progress table. On each refresh the slots not held by a started play are refilled from the best upcoming qualifying plays, so the upcoming part of the board can still change after the lock.
- Phone layout
- On a narrow screen each play becomes a three line card instead of one long row, and the formula panel is replaced by a Show Me the Math button that opens the scoring page.
Recommended doubles
The Top 4 turned into two leg parlays, with the pairing chosen by the app.
8 features
- Daily Double
- The main recommendation. With four plays there are three ways to split them into two pairs, and the app compares all three and leads with the pair whose two hit chances multiply highest.
- Secondary Double
- The other two plays from the chosen split, shown as a second card in a more muted colour and described on the page as optional.
- Smash Double
- If both legs of a pair have a career OPS above .950 and at least 7 hits against their pitcher, that pair becomes a Smash Double, turns orange and takes the lead slot. The hit minimum is there so a high OPS over a handful of at bats does not qualify.
- Two or three plays
- When fewer than four plays qualify the app shows only the single best pair. With fewer than two it says there are not enough qualified plays and names the 15 at bat and .300 requirement.
- Each leg and the combined chance
- Every leg shows the hitter, the pitcher, average, OPS, at bats and its own hit chance. The card ends with the two chances multiplied together.
- Unconfirmed lineup warning
- If one or both legs are still on an estimated lineup, the card says the hit chance may shift once the batting order is set.
- Cards after first pitch
- When a leg's game starts the card stays on the page, with the started leg dimmed and marked In Progress.
- Labels from server tags
- After the lock the Smash, Daily and Secondary cards are built from tags the server assigns across the whole tracked set, started plays included. A card therefore does not disappear when one of its legs leaves the upcoming list.
Following the plays
The tables under the Top 4 follow each tracked play from before the game to its result.
7 features
- Upcoming, In progress, Settled
- Three tables, and a play moves through them as its game does. The split follows the game state MLB reports, so a game that starts late does not move a play early.
- HIT and NO HIT
- A play turns to HIT as soon as the live box score credits the batter with a hit. NO HIT is only shown once the game is final, and until then a hitless batter shows a dash.
- Recommendation tags
- SMASH, DD, SD and T4 badges sit beside the batter's name, so a hitter who was part of the Daily Double is still identifiable two tables later.
- Full career line
- Each desktop row shows batter and team, pitcher and team, average, hits, at bats, OPS, game time and lineup status.
- Sorting
- Any column header sorts the Upcoming and In progress tables, and a second click reverses it. The default is game time, earliest first, and the Settled table is not sortable.
- Game time cell
- Shows the start time for an upcoming game, Live for one in progress and Final for one that is over. On a phone an upcoming game also shows a countdown to first pitch.
- Card list on a phone
- On a narrow screen the table becomes a list of cards with a coloured confidence edge, and the column headers are replaced by three sort chips for average, at bats and time.
Filters and export
4 features
- Optional OPS filter
- Adds a minimum career OPS against the pitcher, prefilled at .950. It applies to all three tables.
- Optional hits filter
- Adds a minimum number of career hits against the pitcher, prefilled at 7, the same floor the Smash Double uses.
- Apply and Reset
- Filters take effect on Apply, and Reset returns to the two fixed minimums. If a filter empties the Upcoming table, the empty state offers a reset button in place.
- CSV export
- On desktop, an Export menu downloads the recommended doubles with every leg, the Top 4, or the full filtered list. The files are named with the slate date.
Lineups and refresh
Hit chance depends on batting slot, so the page is explicit about what it knows and when.
5 features
- Confirmed lineups
- When MLB has posted a batting order the play uses the exact slot and is badged Confirmed.
- Estimated lineups
- Before the order is posted the app projects the likely nine from the team's recent starts, so the board can show candidates before lineups are out.
- Projected slot
- An estimated hitter is given the median of the batting slots he has occupied in the team's recent games, and that slot feeds his expected at bats.
- Background refresh
- The page refetches without a spinner every 5 minutes, and every 30 seconds while any upcoming play is on an estimated lineup or a locked slot is still open.
- Minute tick
- The page also re-renders every 60 seconds, so a double's leg is marked as started at its scheduled time between fetches.
Explaining the method
The math is shown on the page.
7 features
- Scoring and selection logic
- A panel inside the Top 4 section sets out six formulas: ranking, regression, expected at bats, hit chance, double selection and Smash priority. Each has a one line reason under it.
- Key symbols
- Four cards define AVG, AB, P and E[AB] before any formula uses them.
- Collapse that is remembered
- The panel can be collapsed, and the choice is kept in the browser so it stays that way on the next visit.
- Scoring page
- The same content has its own page at /scoring-logic, which is what phones link to.
- Info tips
- Small i buttons beside the double labels and the skipped count open a short explanation on hover or tap.
- Footer methodology
- Four short columns cover why average is the stat used for this prop, the minimum requirements, how ranking and confidence work, and what lineups and filters change.
- Disclaimer
- A separate page states that the site is informational and that history does not account for form, injuries, weather or lineup changes. It lists problem gambling helplines for the USA and Canada along with an age restriction.
Discord alerts
A separate alert board, posted to a Discord channel by webhook. Its schedule is switched off for now.
6 features
- Board lock post
- The alert board locks 60 minutes before the slate's first pitch by default, from confirmed lineup plays only, and posts the numbered Top 4.
- Doubles post
- Each recommended double is posted with its label and both legs.
- Late additions
- If a slot was open at the lock and fills when a later lineup confirms, the added play gets its own message.
- Hit alerts
- A message goes out when a tracked hitter records a hit, and another when both legs of a double have hit.
- Day summary
- Once every tracked game is final, one message reports how many plays hit and how many doubles hit.
- No pings
- Messages are sent with mentions disabled and any leading @everyone or @here is stripped.
The math
The formulas are the ones the code runs, and each chart is computed from them.
01
Filter
A line needs at least 15 at bats and a .300 average to qualify. Three or more hitters from one team sharing the identical line against the same pitcher is treated as a data glitch and dropped. Confidence is labelled by sample: 21 at bats or more is high, 15 to 17 is low.
AB ≥ 15 and AVG ≥ .300
02
Rank
The ranking discounts average by sample with a straight ramp: full credit at 30 at bats, two thirds at 20, half at 15. A .400 hitter in 15 at bats ranks below a .310 hitter in 30.
score = AVG × min(AB / 30, 1)
.400 hitter.350 hitter.300 hitterRanking score by at bats, for three career averages. Each line starts at the 15 at bat floor. 03
Turn it into a chance
The hit chance on each card regresses the average toward .320, a fixed target for a pool already filtered to .300 and above, as if it came with 50 extra at bats, then compounds it over the at bats his lineup spot usually gets. It has a known lean: it treats every one of those at bats as coming against this pitcher, and a starter rarely sees a hitter four times, so the number runs high.
regressed = (AB × AVG + 50 × .320) / (AB + 50)
P(hit) = 1 − (1 − regressed)E[AB]
Regressed average .329
Spots 1 to 3, 4.45 AB83.0%Spot 4, 4.25 AB81.6%Spots 5 and 6, 4.05 AB80.1%Spots 7 to 9, 3.85 AB78.4%A .350 hitter in 20 career at bats against the starter, by lineup spot. 04
Serve it before first pitch
Lineups come from the posted order when there is one, then the box score, then an estimate from recent starts. The response is cached for thirty seconds until the Top 4 locks at first pitch, never past it, and for five minutes after, unless a slot is still open and an estimated play could fill it. Once a play's game has started it stays on the day's list, and open spots refill from the hitters still to play.
Under the hood
The work nobody using it sees.
- 01
One data source, six endpoints
Everything comes from the public MLB Stats API: the schedule hydrated with probable pitchers and lineups, the game box score, the active roster, career hitting totals, the batter versus pitcher split (vsPlayerTotal) and player names. The day's schedule and the box score are always fetched fresh because lineups change up to first pitch.
- 02
Lineups resolved in three steps
A lineup is taken from the schedule if it lists at least 8 players, then from the box score's batter list, then from an estimate. Once a game's scheduled start has passed the estimate is never used, and a team with no real batters available returns nothing.
- 03
Lineup estimation
The estimate reads the team's last 14 days and uses up to 6 games that had a posted lineup, ranking roster players by number of recent starts, then median batting slot, then career plate appearances as a last tiebreak. Any partially posted lineup IDs are kept at the front.
- 04
Batched lookups
Every lineup spot against the opposing starter is its own request, so they run in batches of 20 with a 200 millisecond pause between batches. Each batch uses Promise.allSettled, so one failed lookup drops one hitter and leaves the rest of the slate intact.
- 05
Stats from the raw split
Average, slugging, on base, OPS and extra base hits are computed from the counting stats in one function used by every route, without reading the API's own rate fields. Rows under 15 at bats or .300 are discarded on the server before anything is ranked.
- 06
Duplicate line guard
If three or more hitters on one team show the identical counting line against the same pitcher, the server drops all of those rows before ranking.
- 07
Ranking score
score = AVG × min(AB / 30, 1), a straight ramp that gives half credit at the 15 at bat floor and full credit from 30. Below 30 at bats the score reduces to hits divided by 30, which is why the tiebreak on raw average matters.
- 08
Hit chance
The career average is first shrunk toward .320 with a weight of AB / (AB + 50), the same as adding 50 at bats of a .320 hitter; the target is .320 because the pool has already been filtered to .300 and above. The chance of at least one hit is then 1 − (1 − adjusted AVG)^E[AB], which treats at bats as independent.
- 09
Expected at bats by slot
A fixed table: 4.45 for slots 1 to 3, 4.25 for slot 4, 4.05 for slots 5 and 6, 3.85 for 7 to 9, and 4.1 when the slot is unknown.
- 10
Choosing the doubles
Four plays give three possible splits into two pairs, compared by number of Smash pairs first, then pair by pair on combined chance, then on a confidence score from each leg's sample tier. With two or three plays every pair is scored and the best one is kept.
- 11
Storing the lock
On the first request after the first scheduled pitch the Top 4 is written to Vercel KV for 36 hours, built only from confirmed lineup plays, and later requests keep its started plays and refill the other slots. Each game's confirmed qualifying rows are also snapshotted before it starts, so an in progress row keeps its pre-game numbers, and tags are assigned on the server from the stored set.
- 12
Layered caching
The compiled response is cached in KV for 5 minutes, or 30 seconds while the board can still change, and never past the lock moment. Under that, batter versus pitcher splits and rosters are held in memory for 60 minutes and names for 24 hours, and the client polls on the same two intervals.
- 13
Storage with a local fallback
A thin wrapper sends reads and writes to Vercel KV when its credentials are present and to an in-memory map with the same expiry behaviour when they are not, so the app runs locally without KV credentials.
- 14
Scheduled Discord notifier
A GitHub Actions workflow, switched off for now, calls the notifier route every 5 minutes with a bearer secret, which the route checks whenever a secret is configured; with none set the route accepts any request. The route keeps its own snapshot of the board, gives every event a deterministic ID and stores sent IDs in KV for 72 hours so nothing is posted twice, and a dry run returns the pending messages without sending them.
- 15
Manual lineup exclusions
An admin route that refuses every request unless its secret is configured and supplied can remove a player from estimated lineups for a date, optionally scoped to a team or a single game, and clears the cached response when it changes. Exclusions expire after 7 days and never affect a confirmed lineup.
- 16
Tests
Eight Jest files cover the scoring and double selection, stat parsing, game status, both caches, lineup estimation, exclusions and the Discord event builders. There are no component or route tests.
- 17
Failure handling and limits
A failed slate fetch returns a 502 and the page shows one line, and a failed box score fetch is read as zero hits for that game. The site states that the method uses career history only, with no account of current form, injuries or weather, and the hit chance applies the average against the starter to every expected at bat, including the ones a reliever will throw.