baseBot: Embeddable AI chat framework with multi-thread conversations and per-user isolation

Overview

baseBot is an embeddable AI chat framework delivered as a pnpm monorepo. It gives you a React chat widget, a Node.js server SDK, and shared API contracts so you can add streaming AI conversations to your product with per-user thread isolation. Customer auth stays on your side; the widget talks to the Node API over REST and streaming endpoints backed by Postgres, Redis, and pluggable LLM providers.

Architecture
baseBot system architecture diagram
Demo output
React demo: Nano Mobility customer portal with embedded BaseBotChat support widget showing a multi-turn conversation
Key features
Stack
Layer Technologies
Language & runtime TypeScript, Node.js 20+, ES modules
Package manager pnpm 9 (workspaces)
Backend Fastify 5, @fastify/cors
Data PostgreSQL 16 (pg), Redis 7 (ioredis)
Jobs / streaming BullMQ, custom stream emitter & signed stream tokens
AI OpenAI SDK (adapter pattern)
Frontend React 18+ (BaseBotChat), Vite (react-demo)
Validation & API docs Zod, @asteasolutions/zod-to-openapi, YAML OpenAPI output
Testing & lint Vitest, ESLint 9, Prettier, TypeScript 5.8
Infrastructure (local) Docker Compose
CI GitHub Actions (Postgres + Redis service containers)