StatsHub Docs

StatsHub documentation

Everything documented about StatsHub — the monorepo, the API, the mobile app, and the guides for adding to any of them.

StatsHub is a Turborepo workspace on Bun: seven apps, four shared packages, one Postgres database, and a Go API that is being ported route-for-route from a Next.js one. This site documents all of it.

Every doc in the repo is a file under apps/statshub-docs/content/docs. There is no docs/ at the repository root and none inside an app — if you find one, it is a leftover, and it belongs here.

Start here

The codebase

The API

Working on the docs

bun run dev:docs      # localhost:3001
bun run build:docs    # resolves every icon name
bun run --filter=statshub-docs lint    # resolves every internal /docs link

Add a docs page covers frontmatter, sidebar ordering, the components available in MDX, and when a page should be .md rather than .mdx.

On this page