A five-role fitness ecosystem, from AI-generated programs to gym-integrated food ordering.
Blink
A Persian-language fitness PWA connecting members, coaches, gyms, buffets, and platform admins in one system - workout and nutrition programs, gym memberships, in-app food ordering, reviews, and Zarinpal payments, all role-scoped from a single shared schema.

- Next.js
- TypeScript
- PostgreSQL
- Prisma
- NextAuth
- Tailwind CSS
01Problem
Iranian gyms, personal trainers, and their in-house buffets ran on disconnected tools - paper logs, spreadsheets, phone calls - with no shared system linking a member's workout plan to their gym membership, their food orders, or the coach tracking their progress.
02Idea
One PWA that gives every party in the fitness ecosystem - member, coach, gym, buffet, and platform admin - their own role-scoped view of the same underlying data, so a workout plan, a gym membership, and a meal order all live in one connected system instead of five separate ones.
03My role
End-to-end: schema design, every server action and page across all five roles, the payment and moderation systems, and the deployment pipeline - built and shipped in daily increments, each one deployed, live-tested with disposable accounts, and verified before moving to the next.
04Tech
Next.js 16 App Router with Server Actions throughout, NextAuth v5 for phone-based credentials auth, Prisma over PostgreSQL, Tailwind CSS v4, Zarinpal for payments, self-hosted Web Push for notifications, and Resend for transactional email - all running behind PM2 and nginx.
05Design
A dark, high-contrast UI built around a single accent color and Vazirmatn for Persian type, with bottom-tab navigation per role and shared component patterns - avatar upload, star ratings, status badges - reused everywhere instead of one-off implementations.
06Development
Grew in scoped, single-purpose phases rather than one large build: reviews and moderation, payment status correctly reflecting refunds, symmetric relationship-ending across every business pairing, an AI-generated fallback plan for members without a coach, and - most recently - email verification and self-service password reset.
07Result
A live platform at blink-co.ir covering five distinct roles, real payment flows, AI-assisted plan generation, and a full admin moderation layer - developed through continuous, tested increments rather than a single monolithic release.