Skip to content

curatedhealth/vital-expert-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VITAL Platform

Version: 4.1 | Architecture: World-Class Modular Monolith Status: βœ… Production-Ready | Audit: A (93/100) - December 2025

AI-powered healthcare intelligence platform with multi-tenant architecture, visual workflow designer, and enterprise-grade security.


πŸ“Š Codebase Inventory (December 2025)

Layer Active Files Test Files Archive Total
Backend (Python) 425 47 96 568
Frontend (TypeScript) 1,394 18 0 1,412
Packages (TypeScript) 223 0 0 223
Grand Total 2,042 65 96 2,203

Canonical Audit Report: .claude/docs/services/ask-expert/ASK_EXPERT_UNIFIED_AUDIT.md


⚠️ AI Agents: File Creation Rules

DO NOT create files in project root or random locations!

File Type βœ… Correct Location ❌ Wrong Location
Internal Docs /.claude/docs/ /, /docs/
Public Docs /docs/guides/ /, /.claude/docs/
Python Code /services/ai-engine/src/ /, /scripts/
SQL Files /database/migrations/ /, /docs/

See STRUCTURE.md or .claude.md for complete rules.


πŸš€ Quick Start

# Install dependencies
pnpm install

# Start development
make dev

# Or use Docker
make docker-up

πŸ“š Documentation: See docs/ for public docs or .claude/docs/ for internal documentation.


πŸ—οΈ Architecture

vital-platform/
β”œβ”€β”€ apps/                           # Frontend (Next.js 14)
β”‚   └── vital-system/               # Main application
β”‚       └── src/
β”‚           β”œβ”€β”€ app/                # Next.js App Router
β”‚           β”œβ”€β”€ features/           # Feature modules
β”‚           β”œβ”€β”€ components/        # Shared components
β”‚           β”œβ”€β”€ lib/                # Utilities (consolidated)
β”‚           β”œβ”€β”€ middleware/         # Next.js middleware
β”‚           β”œβ”€β”€ types/              # TypeScript types
β”‚           β”œβ”€β”€ contexts/           # React contexts
β”‚           β”œβ”€β”€ hooks/              # React hooks
β”‚           └── stores/             # State stores
β”‚
β”œβ”€β”€ packages/                       # Shared packages
β”‚   └── protocol/                   # Type definitions (Zod schemas)
β”‚
β”œβ”€β”€ services/                       # Backend services
β”‚   └── ai-engine/                  # Python FastAPI + LangGraph
β”‚       β”œβ”€β”€ src/
β”‚       β”‚   β”œβ”€β”€ api/                # Routes & middleware
β”‚       β”‚   β”œβ”€β”€ modules/            # Business logic
β”‚       β”‚   β”‚   β”œβ”€β”€ translator/     # React Flow β†’ LangGraph
β”‚       β”‚   β”‚   β”œβ”€β”€ execution/      # Workflow runner
β”‚       β”‚   β”‚   β”œβ”€β”€ expert/         # Ask Expert service
β”‚       β”‚   β”‚   └── panels/         # Panel discussions
β”‚       β”‚   β”œβ”€β”€ workers/            # Celery async tasks
β”‚       β”‚   β”œβ”€β”€ domain/             # Entities & services
β”‚       β”‚   └── infrastructure/     # LLM, DB, cache
β”‚       └── tests/
β”‚
β”œβ”€β”€ database/                       # SQL migrations & policies
β”‚   β”œβ”€β”€ migrations/                 # Schema migrations
β”‚   └── policies/                   # RLS policies
β”‚
β”œβ”€β”€ infrastructure/                 # Deployment configs
β”‚   β”œβ”€β”€ docker/                     # Docker Compose + Dockerfiles
β”‚   └── terraform/                  # AWS infrastructure
β”‚
β”œβ”€β”€ tests/                          # E2E & performance tests
β”‚   β”œβ”€β”€ e2e/                        # Playwright tests
β”‚   └── performance/                # k6 load tests
β”‚
└── docs/                           # Public documentation
    β”œβ”€β”€ architecture/               # System design
    β”œβ”€β”€ api/                        # OpenAPI spec
    └── guides/                     # Getting started

πŸ”‘ Key Features

Feature Description
Ask Expert 4-mode AI assistant (quick, smart, deep, panel)
Workflow Designer Visual builder with React Flow β†’ LangGraph
Multi-tenant Row-Level Security with organization_id
Type-Safe Zod (TS) β†’ Pydantic (Python) sync
Async Processing Celery workers for long tasks
Token Budgeting Cost control per organization

πŸ“¦ Commands

# Development
make dev                  # Start all services
make dev-api             # Backend only
make dev-web             # Frontend only

# Docker
make docker-up           # Start containers
make docker-down         # Stop containers
make docker-logs         # View logs

# Testing
make test                # All tests
make test-api            # Backend tests

# Build
make build               # Build all
make sync-types          # Generate Pydantic from Zod

πŸ“š Documentation

Document Location
Architecture .claude/docs/architecture/VITAL_WORLD_CLASS_STRUCTURE_FINAL.md
API Reference docs/api/openapi.yaml
Getting Started docs/guides/getting-started.md
Development docs/guides/development.md
Deployment docs/guides/deployment.md
Internal Docs .claude/docs/

πŸ› οΈ Tech Stack

Frontend: Next.js 14, React Flow, TanStack Query, Tailwind CSS Backend: FastAPI, LangGraph, Celery, Pydantic Database: Supabase (PostgreSQL + RLS), Pinecone (vectors) Infrastructure: Docker, Terraform, AWS EKS


πŸ—‚οΈ Directory Structure (Keep vs Archive)

βœ… KEEP - Production Code

Directory Files Purpose
services/ai-engine/src/agents/ 66 L1-L5 agent hierarchy
services/ai-engine/src/api/ 66 FastAPI routes & schemas
services/ai-engine/src/langgraph_workflows/ 40 Mode 1-4 workflows
services/ai-engine/src/services/ 71 Business logic
apps/vital-system/src/app/ 281 Next.js pages & API
apps/vital-system/src/features/ 344 Feature modules
apps/vital-system/src/components/ 385 UI components
packages/vital-ai-ui/ 141 VITAL AI UI library

πŸ—‘οΈ ARCHIVE - Safe to Remove

Directory Files Reason
services/ai-engine/src/_backup_phase1/ 27 Phase 1 refactoring backups
services/ai-engine/src/_legacy_archive/ 69 Deprecated implementations

πŸ“„ License

Proprietary - All Rights Reserved


Last Updated: December 12, 2025

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •