OmeGo is a lightweight, privacy-first, anonymous 1-on-1 video chat application built on a unified Next.js 16 full-stack architecture with React 19, Socket.IO, and browser-native WebRTC.
- Full-Stack Runtime: Unified Next.js 16 with App Router and Server Components (
app/). - Real-Time Engine: Persistent Socket.IO (
v4.8.x) attached directly to a custom Node.js HTTP server (server.js), serving both web traffic and WebSocket signaling on a single port. - Media Transport: Native browser WebRTC (
RTCPeerConnection,getUserMedia) with Google Public STUN and configurable TURN relay fallback. - Matchmaking Engine: Synchronous, atomic, in-memory queue (
src/server/matchmaker.js) with longest-waiter-first pairing, mutual preference resolution, and 30-second queue broadening. - Safety & Anti-Abuse: Token-bucket rate limiting, IP concurrency limits, post-call 120-second reporting grace window, bidirectional blocking, and automated multi-reporter cooldowns (
src/server/safety.js). - Persistence: Dual storage adapter supporting PostgreSQL via Supabase with Row-Level Security (RLS) in production, and native Node.js
node:sqlitein local development. Asynchronous non-blocking write queues with append-only disk spillover recovery (src/server/storage/). - Testing: Native Node.js test runner (
node:test) covering 100% of unit, storage durability, lifecycle, and end-to-end integration flows.
- Node.js:
>= 22.13.0(Node.js 26 recommended) - npm:
>= 10.0.0
Copy .env.example to create your local .env file:
cp .env.example .envEnsure SERVER_SALT is configured with a cryptographically random string of at least 32 characters:
PORT=3000
NODE_ENV=development
SERVER_SALT=replace-with-at-least-32-random-characters-here
STORAGE_BACKEND=sqlite
SQLITE_DB_PATH=data/shuup.db
REPORTS_FILE_PATH=data/reports.jsonlFor production deployment with Supabase:
NODE_ENV=production
STORAGE_BACKEND=postgres
SUPABASE_DB_URL=postgresql://postgres:[PASSWORD]@[HOST]:5432/postgresInstall dependencies and start the unified server in development mode:
npm install
npm run devOpen http://localhost:3000 in your browser. Both the web application and WebSocket signaling run on port 3000.
Create an optimized Turbopack build and start the server:
npm run build
npm startThe production server initializes Next.js SSR and mounts the persistent Socket.IO server on http://0.0.0.0:3000.
Run the complete test suite with the native Node.js test runner:
npm testAll 124 unit, lifecycle, safety, durability, and integration tests execute concurrently in under 3 seconds.
GET /healthorGET /api/health: Fast health check endpoint returning{ "status": "ok" }.GET /: Next.js App Router root page rendering the reactive video interface./socket.io/*: Persistent WebSocket connection endpoint.