lght.dev

2026Self-hosted · Production-readyFull-stack · Design + engineering

ChatBox

Web chat, WhatsApp, Instagram and email support in one operator workspace.

Operators were drowning in tabs. Built one workspace where AI handles the easy stuff and humans get the rest with full context.

ChatBox — screenshot 1 of 6ChatBox — screenshot 2 of 6ChatBox — screenshot 3 of 6ChatBox — screenshot 4 of 6ChatBox — screenshot 5 of 6ChatBox — screenshot 6 of 6

The tradeoff

NestJS over Next.js API routes. More boilerplate, but the WebSocket layer and queue workers needed real backend boundaries.

What's inside

One inbox

Web chat, WhatsApp, Instagram and email feed into one inbox. Assign, escalate, star, SLA timers. Same surface for every channel.

AI handoff that knows when to stop

The Groq assistant resolves the easy stuff and escalates with full conversation context the moment a human is needed.

Live ops dashboard

Active chats, pending queue, online operators and conversation volume, refreshed live over Socket.IO.

Lead scoring

AI-scored leads from chat intent: status, rating, summary, intent class, last touch, conversion timeline.

Quality pipeline

Tickets for tone, accuracy, escalation and process violations. Each one is investigated with evidence attached and closed on a real timeline.

Reports the team reads

Volume, response times, CSAT, channel mix and agent performance, exported as CSV or JSON.

Operator workspace

Teams, skills, presence, daily resolved counts, CSAT per operator. Role-based access control built in.

Hardened defaults

Passport JWT auth and granular settings for general, notifications, security and appearance.

Embeddable widget

Brandable web chat widget configured from admin: colors, position, greeting, agent persona. Live preview while you edit.

Built in four weeks

Modern monorepo, clear boundaries between admin / API / shared. Turborepo, pnpm, Docker Compose, Vitest.

Stack

  • Next.js 15
  • React 19
  • Tailwind
  • NestJS 11
  • Drizzle ORM
  • Postgres 16 (pgvector)
  • Redis
  • Socket.IO
  • MinIO
  • Turborepo