Back to projects
Jan 2025 • 3 min read

Pulse Chat

Pulse Chat
AI-powered customer support platform with real-time messaging, embeddable widgets, and automated knowledge base replies.
Node.jsReactWebSocketsRedisMongoDBAI

Pulse Chat is an enterprise-ready customer support platform designed for modern SaaS companies. It unifies customer communications across web chat, email, and knowledge base inquiries into a single fast, synchronized inbox.

Key Highlights

  • AI Auto-Replies: Integrates Google Vertex AI and vector embeddings to answer recurring support questions instantly from documentation.
  • WebSocket Clustering: Utilizes Redis pub/sub to distribute millions of live events across horizontal Node.js replicas without latency.
  • Role-Based Workflows: Built granular permissions for admins, team leads, support agents, and end customers.

Architecture Snippet

import { Server } from "socket.io";
import { createAdapter } from "@socket.io/redis-adapter";
import { pubClient, subClient } from "./redis.config";

export function initializeRealtimeEngine(httpServer: any) {
  const io = new Server(httpServer, {
    cors: { origin: process.env.ALLOWED_ORIGINS?.split(",") },
    transports: ["websocket", "polling"],
  });

  io.adapter(createAdapter(pubClient, subClient));

  io.on("connection", (socket) => {
    socket.on("join:conversation", (conversationId) => {
      socket.join(`room:${conversationId}`);
    });

    socket.on("send:message", async (payload) => {
      io.to(`room:${payload.conversationId}`).emit("new:message", payload);
    });
  });

  return io;
}

Performance & Scalability

Metric Target Achieved
P95 Message Latency < 50ms 18ms
Concurrent Connections 10,000+ 25,000+ per node
Lighthouse Performance > 95 100/100

πŸš€ Quick Links

πŸ“œ Features & Highlights

  • βœ… Embeddable lightweight JavaScript chat widget for any web application
  • βœ… Real-time bidirectional messaging via WebSockets & Redis Pub/Sub
  • βœ… AI-driven instant answer engine using Vector Search & LLMs
  • βœ… Role-Based Access Control (RBAC) for Admins, Managers, and Agents
  • βœ… Shared omnichannel team inbox with live agent typing indicators
  • βœ… Real-time analytics dashboard with response time and CSAT metrics
  • βœ… JWT-based secure authentication and webhook integrations

πŸ“ˆ Lighthouse Score

100
Performance
100
Accessibility
100
Best Practices
100
SEO

πŸ’» Technology Stack

Layer Technologies
Frontend React, TypeScript, TailwindCSS, Vite
Backend Node.js, Express, Fastify, Socket.io
Database & Cache MongoDB, Redis (Pub/Sub & Caching)
AI & Search Google Vertex AI, OpenAI APIs, Vector Embeddings
Infrastructure Docker, Nginx, AWS ECS, Cloudflare

πŸ›οΈ License

MIT License • Free and open source.