8000 GitHub - KiranSinha872/OmeGo: Privacy-first, anonymous 1-on-1 video chat platform built with Next.js 16, React 19, Socket.IO, and WebRTC. Features intelligent matchmaking, real-time peer-to-peer communication, user blocking, rate limiting, and automated safety mechanisms. · GitHub
[go: up one dir, main page]

Skip to content
KiranSinha872Public

About

Privacy-first, anonymous 1-on-1 video chat platform built with Next.js 16, React 19, Socket.IO, and WebRTC. Features intelligent matchmaking, real-time peer-to-peer communication, user blocking, rate limiting, and automated safety mechanisms.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OmeGo - Privacy-First Anonymous 1-on-1 Video Chat

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.


Architecture Overview

  • 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:sqlite in 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.

Prerequisites

  • Node.js: >= 22.13.0 (Node.js 26 recommended)
  • npm: >= 10.0.0

Environment Setup

Copy .env.example to create your local .env file:

cp .env.example .env

Ensure 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.jsonl

For production deployment with Supabase:

NODE_ENV=production
STORAGE_BACKEND=postgres
SUPABASE_DB_URL=postgresql://postgres:[PASSWORD]@[HOST]:5432/postgres

Development

Install dependencies and start the unified server in development mode:

npm install
npm run dev

Open http://localhost:3000 in your browser. Both the web application and WebSocket signaling run on port 3000.


Production Build & Startup

Create an optimized Turbopack build and start the server:

npm run build
npm start

The production server initializes Next.js SSR and mounts the persistent Socket.IO server on http://0.0.0.0:3000.


Testing

Run the complete test suite with the native Node.js test runner:

npm test

All 124 unit, lifecycle, safety, durability, and integration tests execute concurrently in under 3 seconds.


API Endpoints

  • GET /health or GET /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.

About

Privacy-first, anonymous 1-on-1 video chat platform built with Next.js 16, React 19, Socket.IO, and WebRTC. Features intelligent matchmaking, real-time peer-to-peer communication, user blocking, rate limiting, and automated safety mechanisms.

Resources

St 4169 ars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0