An open API service indexing awesome lists of open source software.

https://github.com/hum2a/therabot

TheraBot is a therapeutic chatbot application built with React and Node.js that provides users with mental health support through AI-powered conversations.
https://github.com/hum2a/therabot

chatbot firebase healthtech javascript nodejs openai-api react render

Last synced: 6 months ago
JSON representation

TheraBot is a therapeutic chatbot application built with React and Node.js that provides users with mental health support through AI-powered conversations.

Awesome Lists containing this project

README

          

# TheraBot ๐Ÿค–

[![Build Status](https://img.shields.io/github/workflow/status/yourusername/TheraBot/CI?style=for-the-badge)](https://github.com/yourusername/TheraBot/actions)
[![Coverage](https://img.shields.io/codecov/c/github/yourusername/TheraBot?style=for-the-badge)](https://codecov.io/gh/yourusername/TheraBot)
[![License](https://img.shields.io/github/license/yourusername/TheraBot?style=for-the-badge)](LICENSE)
[![Version](https://img.shields.io/github/v/release/yourusername/TheraBot?style=for-the-badge)](https://github.com/yourusername/TheraBot/releases)
[![Stars](https://img.shields.io/github/stars/yourusername/TheraBot?style=for-the-badge)](https://github.com/yourusername/TheraBot/stargazers)

[![TypeScript](https://img.shields.io/badge/TypeScript-4.9.5-blue?style=for-the-badge&logo=typescript)](https://www.typescriptlang.org/)
[![React](https://img.shields.io/badge/React-18.2.0-blue?style=for-the-badge&logo=react)](https://reactjs.org/)
[![Next.js](https://img.shields.io/badge/Next.js-13.4.7-black?style=for-the-badge&logo=next.js)](https://nextjs.org/)
[![OpenAI](https://img.shields.io/badge/OpenAI-API-412991?style=for-the-badge&logo=openai)](https://openai.com/)

๐Ÿง  AI-Powered Mental Health Support Platform

[Demo](https://therabot.com) โ€ข [Documentation](https://docs.therabot.com) โ€ข [Contributing](CONTRIBUTING.md) โ€ข [Support](SUPPORT.md)

---

## ๐ŸŒŸ Features

### Core Capabilities

- ๐Ÿค– Advanced NLP for emotional understanding
- ๐ŸŒ Real-time translation (20+ languages)
- ๐Ÿ”’ End-to-end encryption
- ๐ŸŽฏ Personalized therapy approaches
- ๐Ÿ“Š Progress tracking & analytics
- ๐Ÿ”„ 24/7 continuous learning
- ๐Ÿง  CBT & DBT techniques
- ๐Ÿšจ Crisis detection & support

### Technical Stack

- โš›๏ธ React 18 with Server Components
- ๐Ÿ“ก WebSocket real-time communication
- ๐Ÿ”‘ JWT authentication & RBAC
- ๐ŸŒ Edge computing deployment
- ๐Ÿ“ฑ Progressive Web App (PWA)
- ๐Ÿ” Elasticsearch integration
- ๐Ÿš€ Redis caching layer
- ๐Ÿ›ก๏ธ HIPAA compliance ready

## ๐Ÿš€ Quick Start

### Prerequisites

```bash
node >= 18.0.0
npm >= 9.0.0
docker >= 24.0.0
```

### Installation

1. **Clone & Install**
```bash
git clone https://github.com/yourusername/TheraBot.git
cd TheraBot
npm install
```

2. **Environment Setup**
```bash
cp .env.example .env.local

# Configure your environment variables

```

3. **Development**
```bash
npm run dev

# Visit http://localhost:3000

```

4. **Docker Deployment**
```bash
docker compose up -d

# Available at http://localhost:3000

```

## ๐Ÿ—๏ธ Architecture

```mermaid
graph TD
A[Client] -->|WebSocket| B[API Gateway]
B -->|gRPC| C[Auth Service]
B -->|gRPC| D[Chat Service]
D -->|REST| E[OpenAI API]
D -->|Pub/Sub| F[Redis]
D -->|Document| G[MongoDB]
C -->|Cache| F
C -->|Document| G
```

## ๐Ÿ› ๏ธ Tech Stack

Frontend Technologies

- **Framework**: Next.js 13 (App Router)
- **Language**: TypeScript 4.9
- **State Management**: Zustand + React Query
- **Styling**: Tailwind CSS + Framer Motion
- **Testing**: Jest + React Testing Library
- **Build Tool**: Turborepo

Backend Services

- **Runtime**: Node.js (Express)
- **API**: gRPC + REST
- **Database**: MongoDB (primary)
- **Cache**: Redis (distributed)
- **Search**: Elasticsearch
- **Message Queue**: RabbitMQ

DevOps & Infrastructure

- **CI/CD**: GitHub Actions
- **Containers**: Docker + Kubernetes
- **Monitoring**: Prometheus + Grafana
- **Logging**: ELK Stack
- **Cloud**: AWS (multi-region)
- **CDN**: Cloudflare

## ๐Ÿ“Š Performance Metrics

| Metric | Value | Status |
|--------|-------|--------|
| Response Time | <100ms | โœ… |
| Availability | 99.99% | โœ… |
| Error Rate | <0.01% | โœ… |
| Concurrent Users | 100k+ | โœ… |
| Data Encryption | AES-256 | โœ… |

## ๐Ÿ” Security

- ๐Ÿ›ก๏ธ SOC 2 Type II Certified
- ๐Ÿ”’ HIPAA Compliant
- ๐ŸŒ GDPR Ready
- ๐Ÿ”‘ 2FA Enabled
- ๐Ÿ“ Security Audit Logs
- ๐Ÿšซ DDoS Protection
- ๐Ÿ” Regular Penetration Testing
- ๐Ÿ” Data Encryption at Rest & in Transit

## ๐Ÿงช Testing

```bash

# Unit Tests

npm run test

# Integration Tests

npm run test:integration

# E2E Tests

npm run test:e2e

# Load Tests

npm run test:load
```

## ๐Ÿ“ˆ API Performance

```typescript
interface APIMetrics {
responseTime: '<100ms';
throughput: '10k req/s';
errorRate: '<0.01%';
availability: '99.99%';
}
```

## ๐ŸŒ Deployment

```yaml
# kubernetes/production.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: therabot
spec:
replicas: 3
selector:
matchLabels:
app: therabot
template:
metadata:
labels:
app: therabot
spec:
containers:
- name: therabot
image: therabot:latest
ports:
- containerPort: 3000
```

## ๐Ÿ”„ CI/CD Pipeline

```mermaid
graph LR
A[Push] -->|Trigger| B[Build]
B --> C[Test]
C --> D[Lint]
D --> E[Security Scan]
E --> F[Deploy Staging]
F -->|Manual Approval| G[Deploy Production]
```

## ๐Ÿ“š Documentation

- [API Reference](docs/api.md)
- [Architecture Guide](docs/architecture.md)
- [Deployment Guide](docs/deployment.md)
- [Security Practices](docs/security.md)
- [Contributing Guide](CONTRIBUTING.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)

## ๐Ÿค Contributing

We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.

### Good First Issues

- ๐Ÿ› Bug fixes
- ๐Ÿ“ Documentation
- ๐ŸŽจ UI/UX improvements
- โœจ Feature requests

### Major Contributions

- ๐Ÿ—๏ธ Architecture changes
- ๐Ÿš€ Performance improvements
- ๐Ÿ”’ Security enhancements
- ๐ŸŒ Internationalization

## ๐Ÿ“„ License

TheraBot is licensed under the [MIT License](LICENSE).

---

**[Website](https://therabot.com)** โ€ข **[Documentation](https://docs.therabot.com)** โ€ข **[Blog](https://blog.therabot.com)** โ€ข **[Twitter](https://twitter.com/therabot)**

Made with โค๏ธ by the TheraBot Team