bot-middleware-jubi is a Node.js server middleware for building chatbot backends with support for Facebook Messenger, Twilio WhatsApp, Firebase Cloud Messaging (FCM), and web sockets. Version 1.0.102 is the latest. It requires MongoDB for storage and optionally Redis for clustering. The package provides a unified configuration interface for multiple channels, including passphrase-based authentication, dashbot integration, and static file serving. It is primarily used with CommonJS require() and has minimal TypeScript support.
npm install bot-middleware-jubiVerified import paths — ran on the pinned version, not inferred.
Initializes a bot server with MongoDB, serves static files, and sets up Facebook Messenger webhook.
Use const { ... } = require('bot-middleware-jubi'); instead of import.Ensure MongoDB is running and the URI is correct before calling Server().
Check the latest documentation for replacement APIs if they are missing.
Use const { Server } = require('bot-middleware-jubi'); and ensure Node.js version supports CommonJS.Start MongoDB or update the dbUri with correct credentials and host.
Change the httpPort option to an available port or kill the process using port 4000.