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.
@basebot/core (types/schemas), @basebot/node (backend SDK), @basebot/react (BaseBotChat widget + HTTP client)docs/openapi.yaml)| 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) |