StatsHub Docs

Mobile app

The StatsHub Expo app — how a screen is put together, where its data comes from, and the rules for writing code in it.

apps/statshub-expo is the StatsHub app for iOS and Android — the boards from the website as a native app, plus a few the site does not have.

bun run dev:expo       # Metro on 8142
bun run ios            # or: bun run android
Expo SDK 57Router, expo-widgetsReact Native 0.86Reanimated 4workletsTypeScriptuniwindTailwind for nativeTanStack Queryall server stateZustandall client stateConvexprofiles and accountsBetter AuthRevenueCatsubscriptionsPostHogiOSAndroid

What it does

Five tabs

Matches, Picks, Screener, Trends and StatsHub. Each is a board; each board has a detail stack behind it for a fixture, team, player, league, referee or prop.

Filters as sheets

Leagues, players, bookmakers, stats, ranges, games, availability, sort — a route each under (filters), so a filter panel is navigable, deep linkable, and dismissible the way the platform expects.

Saved views and defaults

A screener setup is saved, named and reopened. board-card-settings/[board] goes further and lets you choose what each card shows.

Prop Hunter, step by step

The website's board rebuilt as a wizard — prop-hunter/step/[step] — because twelve filters side by side is a desktop shape, not a phone one.

Widgets and reminders

Home-screen widgets for a countdown, a live score and a hit rate, each configurable from the widget itself. Reminders for a fixture you are watching.

Boards the website does not have

Anytime Goalscorer, Assists, Cards, Super Subs and a Leagues browser. All five 404 on statshub.com — they are the app's own.

How it is built

The pages

Written for someone who just cloned the repo and is about to open their first file. Read them in this order the first time.

These describe rules and shapes, not individual files. Anything specific enough to go stale lives in a comment next to the code instead.

The two that are not rules

Features is a list of the pages on statshub.com, the site this app is a port of. App Store covers submission and review.

On this page