Marketplace · 2025–2026
Rivelya
A pay-per-minute expert consultation marketplace with live chat, voice and video.
- Commits, all mine
- 1,250+
- API endpoints
- 180+
- Data models
- 29
- Live channels: chat, voice, video
- 3
The challenge
Minute-based consultations are a high-volume, trust-sensitive business. The client needed a platform that could match clients with available experts instantly, meter every session precisely, collect payment upfront, hold and settle expert earnings and do all of it reliably in real time, without anyone reconciling balances by hand.
The solution
I built Rivelya from scratch as a one-developer product: a React app for clients, experts and admins; an Express and Socket.io backend; self-hosted LiveKit for WebRTC voice and video; and a billing engine on MongoDB transactions that the server controls. The server starts, meters and closes every session, so the money is always right, even when a browser tab isn't.
What I built
Key features

Instant or scheduled sessions
Expert presence updates live. Clients can start a session immediately (the expert has 30 seconds to accept) or book a slot from the expert's availability calendar. A scheduler auto-starts booked sessions on time, in the Europe/Rome timezone.

Chat, voice and video in one place
Socket.io powers chat, typing indicators, presence and call signalling. Voice and video run on a self-hosted LiveKit server with a TURN relay, with Twilio as a phone fallback. A live countdown shows each client exactly how much time is left.

Wallet and per-minute billing that can't drift
Stripe Payment Intents with verified webhooks top up a prepaid wallet held in integer cents. Every balance change runs in an atomic MongoDB transaction with idempotent payment handling, and negative balances are blocked. Expert earnings sit on a 7-day hold before they become withdrawable.

Expert and admin consoles
Invite-only expert onboarding with availability, rates, earnings and withdrawal requests. The admin console has an OTP login and covers commission per expert, payouts, CMS and blog, testimonials and promotional email campaigns.
User journey
The product, step by step
The client-facing walkthrough. Screens are from the live Italian product; captions are translated.
Step 01 of 13
Under the hood
Architecture
- 01Client
- React SPA for clients, experts and admins
- Socket.io client
- LiveKit client
- Stripe Elements
- 02Edge
- Nginx on AWS EC2
- HTTPS
- Static build + /api & websocket proxy
- 03Application
- Express REST API
- Socket.io realtime hub
- Cron session scheduler & metering
- PM2 process manager
- 04Data & services
- MongoDB Atlas (transactions)
- AWS S3 media
- Stripe
- LiveKit SFU + TURN
- Twilio Verify
- Resend email
- Groq / Gemini assistant
Engineering
Details that matter
- The server is the source of truth for billing: cron jobs start, meter and end sessions, and timers in the browser are display-only.
- Payments are protected against duplicates with a unique index on the payment intent, a check before processing and atomic transactions.
- Security: Helmet headers, rate limiting, verified Stripe webhooks, OTP admin sessions, KYC middleware and no direct S3 URLs.
- GDPR: cookie consent, account deletion with OTP confirmation, and media served through an authenticated proxy with WebP conversion.
- Push-to-deploy CI/CD with GitHub Actions: SSH, install, build and restart PM2 with no downtime.
- Built-in AI support assistant using Groq Llama 3.1, with Gemini as a fallback.
Tech stack
Technologies used
Frontend
Backend
Data
Integrations
Infrastructure
Want results like Rivelya?
Tell me what you’re building. I usually reply within a few hours with questions, a rough timeline and next steps.