← Back to Work

02 / ANONYMOUS LIVE VIDEO & CHAT

ICOGNITO

Icognito is a 1-on-1 anonymous video and text chat web app with a Next.js 16 frontend (web/) and a standalone Node.js + Socket.IO signaling server (socket/).

  • Next.js 16
  • React 19
  • TypeScript
  • Node.js
  • Socket.IO
  • ZegoCloud UIKit
  • Motion
  • Tailwind CSS

01 / The Problem

Problem

Starting a quick video conversation online usually requires account sign-ups, personal identity exposure, and manual room links.

02 / The Solution

Solution

Built a no-login matchmaking queue that pairs connected sockets in memory, creates a UUIDv4 room on match, and opens a 1-on-1 WebRTC video and text call via ZegoCloud UIKit.

03 / Architecture & Features

How it works

  1. 01

    Socket.IO Matchmaking Queue

    Manages an in-memory waitingQueue and activePairs map on the standalone Node.js signaling server.

  2. 02

    Event-Driven Room Lifecycle

    Handles create-room, waiting, matched, next, partner-left, and disconnect socket events, creating a UUIDv4 room when two users match.

  3. 03

    WebRTC Video & Text

    Loads @zegocloud/zego-uikit-prebuilt on the client in OneONoneCall mode (maxUsers: 2) to avoid Next.js SSR window errors, with per-session crypto.randomUUID() IDs and instant partner switching.

04 / Features

Key features

  • Anonymous 1-on-1 video and text chat with no sign-up
  • Socket.IO matchmaking queue with UUIDv4 room creation
  • Instant Next partner switching and disconnect cleanup
  • Per-session ephemeral IDs generated with crypto.randomUUID()

05 / Challenges

Implementation details

  • Cleaning up rooms and notifying the partner reliably when a user clicks Next or closes the tab.
  • Loading the ZegoCloud WebRTC SDK only on the client so Next.js SSR does not fail on window references.