All projects

Marketplace · 2025–2026

Rivelya

A pay-per-minute expert consultation marketplace with live chat, voice and video.

Client
Rivelya · Italy
My role
Solo full-stack developer: product, frontend, backend, infrastructure & DevOps
Timeline
Nov 2025 – Apr 2026
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

Rivelya expert directory with online status, ratings and channels, by Shair Ali
01

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.

Rivelya expert profile with Start now button, reviews and channel options, by Shair Ali
02

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.

Rivelya booking management showing a confirmed €19 session, by Shair Ali
03

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.

Rivelya live session room with conversation list and timer, by Shair Ali
04

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

  1. 01

    Start a consultation

    Start right away or book a time. The flow guides the client step by step.

  2. 02

    Sign in

    Email and password, or Google sign-in, with phone verification before the first booking.

  3. 03

    Open the expert directory

    The Experts menu lists everyone who is available right now.

  4. 04

    Choose an expert

    Clients compare ratings, specialities and channels, then open the profile.

  5. 05

    Start now

    One click on Start now. It's the fastest way to talk to an online expert.

  6. 06

    Or pick a day and time

    Date, time slot and channel. Price and duration are calculated live.

  7. 07

    Booking sent

    The request goes to the expert, and the amount is charged upfront.

  8. 08

    Track the booking

    Booking management shows whether the expert has accepted.

  9. 09

    Awaiting confirmation

    If the expert rejects, the client is refunded automatically.

  10. 10

    Booking confirmed

    A real-time notification arrives as soon as the expert accepts.

  11. 11

    Join the session

    At the scheduled time, the client joins by chat, chat and voice, call or video.

  12. 12

    Session in progress

    A server-controlled countdown shows the time remaining.

  13. 13

    Rate the session

    After the session, the client leaves a rating that feeds the expert's stats.

Under the hood

Architecture

  1. 01Client
    • React SPA for clients, experts and admins
    • Socket.io client
    • LiveKit client
    • Stripe Elements
  2. 02Edge
    • Nginx on AWS EC2
    • HTTPS
    • Static build + /api & websocket proxy
  3. 03Application
    • Express REST API
    • Socket.io realtime hub
    • Cron session scheduler & metering
    • PM2 process manager
  4. 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

  • React 18
  • Vite
  • TanStack Query
  • Tailwind CSS
  • Socket.io client
  • LiveKit client

Backend

  • Node.js
  • Express
  • Socket.io
  • node-cron
  • Joi

Data

  • MongoDB Atlas
  • Mongoose
  • AWS S3

Integrations

  • Stripe
  • LiveKit (WebRTC)
  • Twilio
  • Resend
  • Google OAuth
  • Groq / Gemini

Infrastructure

  • AWS EC2
  • Nginx
  • PM2
  • GitHub Actions

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.

Chat on WhatsApp