Gym dashboard
Members, plans, billing, check-ins, fingerprint terminals, training content, staff and approvals.
Case study · 2026 · Solo build
Agentic, multi-tenant gym management SaaS, with governed AI agents, offline check-in passes and billing-aware fingerprint terminals.

The problem
The solution
Billing, reminders and expiry run themselves. Members check in with an offline QR pass or an existing fingerprint terminal that now refuses unpaid members, even with the internet down. AI agents take on routine admin and coaching, inside the same permission rules as people.
Four apps, one platform
Members, plans, billing, check-ins, fingerprint terminals, training content, staff and approvals.
Offline QR pass, invoices with Pay now, routines, workout logging and progress charts on Android, iOS, Windows and macOS.
Onboard gyms, manage plans and add-on modules, AI token budgets, agent rollout and a cross-tenant audit log.
Governed assistants, plus the same tool catalogue exposed to external agents over the Model Context Protocol.
Feature highlight
The member's phone computes a rotating, HMAC-signed pass offline every 30 seconds, after a biometric unlock. The pass is bound to one phone and protected against replay. Admins choose which methods each gym allows.
Refuses unpaid members by itself, even offline.
Push-protocol sync of access windows, user import and attendance logs. No fingerprints are ever stored.
AI governance
Agents call the same permission-checked services as the UI, so tenant isolation, validation and auditing are identical.
Searches members, attendance, revenue and overdue invoices. With approval, it can freeze memberships, send reminders and record cash payments up to a cap.
Logs workouts, records measurements, sets goals and builds routines. It can only ever see the signed-in member.
A read-only analyst over the activity log and key business numbers.
Architecture
↓ HTTPS + JWT ↓
Challenges and solutions
Global EF Core query filters keyed on the token's tenant, empty-by-default results and a handful of explicit cross-tenant stores, backed by integration tests.
Agents only get tools both they and the user may use, and risky actions go through approval or four-eyes review, with amount caps, token quotas and an audit trail.
TOTP-style HMAC passes from a per-member derived key, server-side replay protection, key versioning, one phone per pass and biometric unlock before display.
Implemented the ZKTeco push protocol to sync access end dates, so terminals refuse unpaid members by themselves, even offline. Plus a browser simulator.
An idempotent rules engine, a single-instance job via Postgres advisory locks, atomic invoice numbers, idempotent webhooks and the outbox pattern.
Pages in Razor class libraries hosted by Blazor Server and MAUI BlazorWebView, with native camera, biometrics and secure storage bridged in.
Security
Reliability
Tech stack
Status: production-grade and deployed with CI/CD, being prepared for its first gyms in Pakistan and Malaysia. No paying customers yet. Local payment gateways (Easypaisa, Touch 'n Go) are planned.
Multi-tenant SaaS, governed AI agents or a .NET MAUI app. Let's talk.