JT

jherr/tanmaxx-17

Developer tools
34 stars Quality 54 Trend 30

TanMaxx using 17 TanStack Projects

Overview

A single-user lifting tracker that uses every TanStack library. Built as the demo app for the "tanmaxx" video — a tour of TanStack in a silly format. Local-first lifting tracker with offline-friendly set logging and AI-generated programs. Centerpiece is — a Ranger-driven intensity slider that controls program generation and the entire app's visual style, going progressively more unhinged as it climbs (Deload → Volume → Hypertrophy → Strength → Peaking → Sendmode → → ). Requires Node 24+ (for --experimental-strip-types in seed/generator scripts) and pnpm. Two-handle slider, 0–110. The upper handle drives the theme; both feed the AI as %1RM intensity bounds. State persisted to localStorage; an inline pre-hydration script restores it before React boots (no FOUC at GIGAMAXX). Self-hosted Anton font preloaded so the GIGAMAXX swap is jank-free. packages/skill is shaped to be discoverable by @tanstack/intent.

README

TanMaxx

A single-user lifting tracker that uses every TanStack library. Built as the demo app for the “tanmaxx” video — a tour of TanStack in a silly format.

Local-first lifting tracker with offline-friendly set logging and AI-generated programs. Centerpiece is The Maxx — a Ranger-driven intensity slider that controls program generation and the entire app’s visual style, going progressively more unhinged as it climbs (Deload → Volume → Hypertrophy → Strength → Peaking → Sendmode → GIGAMAXX → INJURY ZONE).

Library matrix

# Library Role
1 CLI (create-tanstack) Cold-open scaffold
2 Config (@tanstack/config) Shared build/lint presets — opt-in
3 Start (@tanstack/react-start) App shell, SSR, server functions, API routes
4 Router (@tanstack/react-router) File-based routes, type-safe nav, search-param state
5 Store (@tanstack/store) Ephemeral session state (current exercise, rest timer, sync counter, Maxx)
6 Query (@tanstack/react-query) Read-heavy server data + SSR-query integration
7 Virtual (@tanstack/react-virtual) /exercises 5,238-row catalog
8 Table (@tanstack/react-table) /history sortable view
9 Form (@tanstack/react-form) Live set logging on /session/$id
10 DB (@tanstack/db) Reactive client collections with optimistic mutations
11 Pacer (@tanstack/react-pacer) Debounced exercise search
12 Hotkeys (@tanstack/react-hotkeys) Keyboard-driven logging + vim chord nav (gg/gh/gs)
13 AI (Vercel ai + @ai-sdk/anthropic) Natural-language set entry, program generation, generative reports
14 Ranger (@tanstack/react-ranger) The Maxx two-handle slider — drives the theme engine
15 Intent (@tanstack/intent) Ships packages/skill as a discoverable Agent Skill
16 Devtools (@tanstack/react-devtools) Stacked panels — the punchline shot
17 Workflow (@tanstack/workflow-core) generateProgram tool body runs as a 4-step durable workflow

Monorepo layout

tanmaxx/
├── apps/
│   └── web/                        # TanStack Start app
│       ├── src/
│       │   ├── routes/             # File-based routes (incl. /api/parse-set, /api/chat)
│       │   ├── server/             # DB, server functions, AI provider/tools
│       │   ├── db/                 # @tanstack/db collections + hook
│       │   ├── state/              # @tanstack/store: session, maxx, sync
│       │   ├── components/         # AppShell, MaxxSlider, NLSetInput, …
│       │   └── hooks/              # use-app-hotkeys, use-maxx-style
│       ├── scripts/                # generate-skill.ts (regenerates SKILL.md)
│       └── public/fonts/           # Self-hosted Anton (GIGAMAXX font)
├── packages/
│   ├── shared/                     # Zod schemas + types
│   └── skill/                      # Agent Skill discoverable by @tanstack/intent
│       └── skills/tanmaxx-core/SKILL.md
└── pnpm-workspace.yaml

Quickstart

Requires Node 24+ (for --experimental-strip-types in seed/generator scripts) and pnpm.

pnpm install
echo "ANTHROPIC_API_KEY=sk-ant-…" > apps/web/.env.local

pnpm --filter @tanmaxx/web exec drizzle-kit push   # create SQLite schema
pnpm --filter @tanmaxx/web seed                    # 5,238 exercises + demo data
pnpm dev                                            # http://localhost:3000

Routes

Path Notes
/ Dashboard
/exercises 5,238 virtualized rows + Pacer-debounced search
/programs, /programs/$id Programs (read-only for the video)
/session/$id Hotkey-driven logger; press ? for the binding sheet
/history Sortable react-table
/agent Streaming chat with logSet / queryPRs / generateProgram tools
/api/parse-set Non-streaming NL → set parser (generateObject)
/api/chat Streaming chat endpoint (streamText + tools)

Hotkeys (on /session/$id)

Key Action
space Log current set
↑ / ↓ ±5 lb
← / → ±1 rep
r Start 90s rest timer
s Skip set
[ / ] Prev / next exercise
gg Dashboard
gh History
gs Current session
? Help overlay

The Maxx

Two-handle slider, 0–110. The upper handle drives the theme; both feed the AI as %1RM intensity bounds. State persisted to localStorage; an inline pre-hydration script restores it before React boots (no FOUC at GIGAMAXX). Self-hosted Anton font preloaded so the GIGAMAXX swap is jank-free.

Intent skill

packages/skill is shaped to be discoverable by @tanstack/intent. With the skill installed as a workspace dep of apps/web, it appears in intent list alongside the rest of the TanStack ecosystem:

@tanmaxx/skill                  local   0.1.0     1
  tanmaxx-core             [core]        Programmatically drive the TanMaxx lifting tracker…
  Load: pnpm dlx @tanstack/intent@latest load @tanmaxx/skill#tanmaxx-core

Regenerate the skill from the canonical _metadata.ts:

pnpm gen:skill

Configuring for Cursor & Claude Code

The skill:* scripts are just thin wrappers around the intent CLI:

Script Underlying command What it does
pnpm skill:list intent list Lists intent-enabled packages + skills found in the workspace
pnpm skill:validate intent validate packages/skill Validates the skill files in packages/skill
pnpm skill:publish pnpm --filter @tanmaxx/skill publish Publishes @tanmaxx/skill to npm

To make a coding agent automatically discover and load the TanMaxx skill, drop skill-loading guidance into the agent’s config file. intent install generates this block for you (dry-run first to preview):

# Preview the block
pnpm dlx @tanstack/intent@latest install --dry-run

# Write it into AGENTS.md
pnpm dlx @tanstack/intent@latest install
  • Cursor reads AGENTS.md (and .cursor/rules/*) automatically, so intent install works out of the box. The generated block tells the agent to run intent list to discover skills and intent load @tanmaxx/skill#tanmaxx-core to load this one.
  • Claude Code reads CLAUDE.md. Either point it at the generated AGENTS.md or copy the … block into CLAUDE.md.

Once configured, the agent loads the skill on demand:

pnpm dlx @tanstack/intent@latest load @tanmaxx/skill#tanmaxx-core

That prints the SKILL.md describing the three agent-callable server functions (logSet, queryPRs, generateProgram) and their input schemas.

Useful scripts

Command Purpose
pnpm dev Start the Start dev server (:3000)
pnpm build Build for Nitro
pnpm typecheck All workspaces
pnpm gen:skill Re-render packages/skill/skills/tanmaxx-core/SKILL.md from apps/web/src/server/functions/_metadata.ts (intent-shaped skill is auto-generated, never hand-edited)
pnpm skill:list Run intent list from the workspace root to discover every intent-enabled package (incl. @tanmaxx/skill) and its skills
pnpm skill:validate Run intent validate packages/skill to lint the skill front-matter and structure before publishing
pnpm skill:publish pnpm publish the @tanmaxx/skill package to npm with public access
pnpm --filter @tanmaxx/web seed Wipe + reseed exercises and demo sessions

The skill:* scripts shell out to the intent CLI, which is a root devDependency. They must be run from the repo root so intent can scan the whole workspace.

Locked decisions

  • Persistence: SQLite + Drizzle (server) + @tanstack/db collections (client). No Convex.
  • Auth: none. Single user.
  • Seed: yuhonas/free-exercise-db (Public Domain), fanned out to 5,238 rows via grip variants for catalog visual impact.
  • Display font (GIGAMAXX): Anton (SIL OFL), self-hosted, size-adjust: 110% against the fallback.
View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add jherr/tanmaxx-17
New to MCP? Start with the mcpskill.org guide →