Trainlink
Trainer–client marketplace
Mobile-first platform connecting personal trainers with clients, covering booking, payments, sessions, workouts, video calls, and payouts.
Stack
- NestJS microservices
- gRPC
- PostgreSQL (TypeORM)
- Redis
- BullMQ
- WebSockets
- WebRTC
- Stripe + Stripe Connect
- AWS S3
- React Native (Expo)
- Docker
Engineering details
14
Calls are peer-to-peer: audio and video flow directly between the trainer's and client's devices over WebRTC, encrypted with DTLS-SRTP, with no media server in between. A socket.io channel acts as the signaling layer — relaying the SDP offer/answer and ICE candidates — while STUN handles NAT traversal so peers can reach each other across networks. Signaling is only accepted between the trainer and client of a session that is currently in progress.

