Skip to content

gymgym

Routines in folders, guided workouts, progression rules and an AI coach. The app, the CLI and AI assistants over MCP all use the same GraphQL API and the same generated SDK.

One contract

The server schema prints to schema.graphql. The SDK, its types and these reference pages come from that file, so the client and the server cannot drift.

Cloudflare native

One Worker serves the Astro web app and the API. Data lives in D1. Durable Objects hold the rest timers and the coach’s background answers. Cron runs the reminders.

Accounts

Better Auth gives you Google, GitHub, passkeys and guest accounts. The CLI and native apps sign in with the device code flow and bearer tokens.

AI assistants

The MCP server lets Claude, ChatGPT and other assistants read and log training as the person who allowed them. The coach in the app proposes programs. A proposal changes nothing until you apply it.

Private by default

Each user sees only their own rows. The security guide explains the layers and the tests that prove them.