const express = require('express'); const NChatServer = require('nchat-plugin'); const app = express(); const chatServer = new NChatServer( db: redisClient );
[Your App] ←→ [NChat Plugin API] ←→ [NChat Core Engine] ↓ (WebSockets / Redis / DB) | Layer | Responsibility | | :--- | :--- | | | React, Vue, Svelte, or vanilla JS components. Renders UI, handles local state. | | Plugin API | REST + WebSocket gateway. Authenticates users, validates messages. | | Core Engine | Manages rooms, persistence, delivery receipts, typing indicators. | Key Features 1. Zero-Config Real-Time Sync NChat uses WebSockets with automatic fallback to polling. Connect in one line: nchat plugin
You can use this as a template for documentation, a blog post, or a pitch deck. Author: Engineering Team Reading time: 6 minutes The Problem: Chat is Everywhere, but Integration is Painful Every modern web application needs chat—customer support, team collaboration, live events, or multiplayer games. Yet, developers waste weeks reinventing the wheel: building WebSocket handlers, managing message queues, rendering message threads, and handling file uploads. Authenticates users, validates messages
Unlike bloated SaaS solutions, NChat gives you full ownership of your data while eliminating the boilerplate code. NChat operates on a three-layer model: managing message queues