Skip to content

NexisChat Documentation

Version: 1.0 Generated: 2026-01-04 Project Type: Brownfield Monorepo

NexisChat is a multi-tenant WhatsApp management platform that enables users to manage multiple WhatsApp accounts, organize conversations, and automate workflows.

DocumentDescription
Development GuideSetup, scripts, and development workflow
ArchitectureSystem design and data flow
Technology StackComplete tech inventory
API Contracts - ServertRPC API reference
API Contracts - WhatsAppREST API reference
Database SchemaPostgreSQL tables and relationships
UI Component LibraryShared component catalog
AuthenticationAuth flows and security
CI/CD PipelineGitHub Actions workflows
NexisChat/
├── apps/
│ ├── client/ # Main chat client (TanStack Start)
│ ├── server/ # API server (Hono + tRPC)
│ ├── whatsapp-web-server/ # WhatsApp integration (Elysia)
│ ├── subscription/ # Subscription portal (Next.js)
│ ├── landing/ # Marketing site (Astro)
│ └── docs/ # Documentation (Fumadocs)
├── packages/
│ ├── ui/ # Shared component library
│ ├── i18n/ # Internationalization
│ ├── eslint-config/ # Shared ESLint configs
│ └── typescript-config/ # Shared TypeScript configs
└── docs/ # This documentation
  • Node.js ≥18
  • pnpm 10.16.1+
  • Bun 1.2+ (for whatsapp-web-server)
  • Docker (for local PostgreSQL)
Terminal window
# Clone and install
git clone https://github.com/your-org/NexisChat.git
cd NexisChat
pnpm install
# Setup environment
cp apps/server/.env.example apps/server/.env
# Edit .env with your credentials
# Start database
cd apps/server && docker compose -f development.docker-compose.yml up -d
pnpm db:push
# Start all services
pnpm dev
ServiceURLPort
Clienthttp://localhost:30003000
Serverhttp://localhost:87878787
WhatsApp Serverhttp://localhost:87888788
Subscriptionhttp://localhost:30013001
Landinghttp://localhost:43214321
Docshttp://localhost:30023002
Storybookhttp://localhost:60066006
Drizzle Studiohttp://localhost:49834983
CategoryTechnology
Monorepopnpm workspaces + Turborepo
FrontendTanStack Start, Next.js, Astro
BackendHono, Elysia, tRPC 11
DatabasePostgreSQL + Drizzle ORM
AuthWorkOS AuthKit + Better Auth
UIRadix UI + TailwindCSS 4
TestingVitest + Storybook + Chromatic
  1. Start with Development Guide
  2. Review Architecture
  3. Explore Technology Stack
  1. API Contracts - Server for tRPC endpoints
  2. API Contracts - WhatsApp for REST endpoints
  3. Authentication for auth flows
  1. UI Component Library for component catalog
  2. Run pnpm --filter ui storybook for interactive docs
  1. CI/CD Pipeline for workflow details
  2. Development Guide for environment setup

See Development Guide for:

  • Branch naming conventions
  • Commit message format
  • PR process
  • Code review guidelines
  • Issues: GitHub Issues
  • Docs Site: /docs route or apps/docs
  • Storybook: pnpm --filter ui storybook

This documentation was generated using the BMAD document-project workflow.