-
Notifications
You must be signed in to change notification settings - Fork 0
nChat Bundle
The nChat bundle is the pro plugin bundle that activates the full chat feature surface on a self-hosted nSelf backend. It is included in the Basic membership tier ($0.99/mo or $9.99/yr) and in every higher tier.
| Plugin | Role |
|---|---|
chat |
Core message store hooks, retention policy, archiving |
livekit |
WebRTC voice + video calls |
recording |
Call + screen-share recording egress |
moderation |
Automated content filtering, manual review queue |
bots |
Programmable bots + slash command framework |
realtime |
Presence, typing indicators, live cursors over WS |
auth |
SSO, LDAP, SAML, MFA enforcement (pro auth extension) |
cd nchat/backend
# 1. Set your membership key (obtain at https://nself.org/pricing)
nself license set nself_pro_xxxxx...
# 2. Install all 7 plugins in one call
nself plugin install chat livekit recording moderation bots realtime auth
# 3. Rebuild and start the stack
nself build && nself startAfter nself build, docker-compose.yml regenerates to include the bundle containers and the matching NEXT_PUBLIC_* env vars propagate to the frontend.
The frontend never assumes a bundle plugin is available. It checks public env vars at runtime and hides the corresponding UI surface if the env var is absent or empty:
| Plugin | Env var | Feature |
|---|---|---|
| livekit | NEXT_PUBLIC_LIVEKIT_URL |
Voice / video call buttons |
| recording | NEXT_PUBLIC_RECORDING_ENABLED |
Record call button |
| moderation | NEXT_PUBLIC_MODERATION_ENABLED |
Auto-filter, review queue |
| bots | NEXT_PUBLIC_BOTS_ENABLED |
Bot accounts, slash commands |
| realtime | NEXT_PUBLIC_REALTIME_URL |
Presence, typing indicators |
| auth | NEXT_PUBLIC_AUTH_SSO_ENABLED |
SSO login flow |
| chat | NEXT_PUBLIC_CHAT_ENABLED |
Core chat hooks |
Use @/lib/features/bundle-detect to query bundle state in React:
import { nchatBundle, isFullBundleInstalled, missingPlugins } from '@/lib/features'
if (nchatBundle.livekit) {
// Show video call button
}
if (!isFullBundleInstalled()) {
console.info('Missing plugins:', missingPlugins())
}The canonical env-var reference lives in nchat/backend/.env.example under the nChat Bundle section. It documents every variable each plugin contributes. Copy the variables you need into .env (or set them via nself env) rather than editing .env.example.
Without a license key, the chat core runs on the 25 free plugins (auth, storage, search, mail, etc.) and the app degrades gracefully:
- Call buttons hide
- Moderation review queue hides
- Bot management UI hides
- SSO settings redirect to built-in email auth
No hard crashes. Set NSELF_PLUGIN_LICENSE_KEY to a valid key and rerun nself build && nself start to unlock the bundle at any time.
-
nchat/backend/.env.exampleβ nChat Bundle section with every env var -
chat/frontend/src/lib/features/bundle-detect.tsβ runtime detection helpers - https://nself.org/pricing β Basic, Pro, Elite, Business, and Enterprise tiers
- https://docs.nself.org/plugins β plugin registry and install guide
nself-chat v0.3.0 | GitHub | Issues | Discussions | Demo
Edit this page | MIT License | Β© 2026
(See π Security section below for 2FA, PIN Lock, and security audits.)
(Search lives in π Reference below.)
- π¬ Advanced Messaging
- π E2EE Setup
- π Search Setup
- π Call Management
- πΊ Live Streaming
- π₯οΈ Screen Sharing
- πΉ Video Calling
- ποΈ Voice Calling
- π± Mobile Optimization
- π§ͺ Testing
- π i18n
- π API Overview
- π Complete Reference
- π» API Examples
- π€ Bot API
- π Auth API
- π GraphQL Schema
- π Deployment Overview
- π³ Docker
- βΈοΈ Kubernetes
- β Helm Charts
- β Production Checklist
- π Production Validation
- π’ Multi-Tenant
- ποΈ Architecture
- π Diagrams
- ποΈ Database Schema
- π Project Structure
- π TypeScript Types
- π SPORT Reference
- π 2FA
- π¬ Messaging
- π Call Management
- π Call State Machine
- π E2EE
- πΊ Live Streaming
- π± Mobile Calls
- π PIN Lock
- π Polls
- π₯οΈ Screen Sharing
- π Search
- π Social Media
- ποΈ Voice Calling
- π Security Overview
- π‘οΈ Security Audit
- β‘ Performance
- π Best Practices
- π 2FA
- π PIN Lock
- π E2EE
- π‘οΈ E2EE Audit
v1.0.0 β’ 2026