Paid video call platform with AI companions
A browser‑based one‑to‑one video call platform: partner matching, per‑minute billing, gifts, moderation, and voice AI companions. Built by one engineer with AI agents, from the first commit to a working product.
- engineer across backend, frontend, and infrastructure
- 1
- engineer across backend, frontend, and infrastructure
- from the first commit to the current version
- ~5 mo
- from the first commit to the current version
- to restore a call after a dropped connection
- 60 s
- to restore a call after a dropped connection
A paid one‑to‑one video call platform that runs in the browser. A user presses a button, the service finds an available host, and a video call with text chat begins. The first minutes are free; after that, billing is per minute, and there are gifts and a private mode. Hosts go through ID verification and earn a share of call revenue and levels. The product also has an affiliate program.
One of our engineers built the whole product with AI agents: architecture, API, interface, payments, moderation, and infrastructure.
Calls and matching
Video goes directly between participants over WebRTC; the Fastify and Socket.IO server only relays the signaling messages needed to set up the connection. This means the server does not pay for video traffic. For networks where a direct connection is impossible, a TURN server issues time‑limited credentials.
Matching runs on Redis: available hosts are kept in a set, and blocked pairs are always excluded. If anyone other than a recent partner is available, the recent partner is skipped for 15 minutes, so users do not keep landing on the same person.
Browser connections drop often, so recovery works on several levels. A failed connection triggers an ICE restart. If the other person disappears, the call waits 60 seconds for them to return. After a socket reconnects, a host becomes available again, and after a server restart, stale sessions are closed.
Billing
Minutes are bought in bundles and deducted by a server‑side timer during the call. Top‑ups go through a payment gateway, and ad partners receive server‑to‑server conversion postbacks. Host and affiliate shares are calculated automatically.
AI companions
Besides human hosts, there are voice AI companions built on a Realtime API, with speech recognition and memory of past conversations. Voice AI costs money for every minute, so spending is capped by limits in Redis: per user per day and for the whole service per day, and failed attempts count too. In the pilot, calls are capped at three minutes.
Call deadlines are stored in Redis together with an owner lock implemented as a Lua script. A call therefore ends correctly even if the API restarts mid‑conversation.
Moderation and safety
An administrator approves hosts after checking their documents. Frames from calls are saved for manual review, users can report and block each other, and administrator actions are written to an audit log. If messages suggest a person is in distress, the service stops showing them paid offers for 24 hours.