Aphrodite: Full-Stack Generative AI Monorepo
From Code to Deployment in Minutes. Ship compliance-ready AI applications with multi-modal generation (text, image, video) in a unified Next.js + NestJS + FastAPI monorepo—deploy seamlessly to any cloud or on-premise with Docker, Helm, and Terraform.
Aphrodite is a full-stack generative AI monorepo that bundles everything you need to build and deploy AI-powered applications: a web app (Next.js), API gateway (NestJS), LLM workers (FastAPI), image/video generation services, compliance service, and shared utilities—all in one codebase. Think of it as a production-ready GenAI starter kit on steroids.
Quick-start scripts spin up the entire stack locally in minutes. Built-in endpoints handle text generation, image synthesis, video creation, and compliance auditing. Infrastructure-as-code (Docker Compose, Helm, Terraform) enables seamless deployment to cloud or on-premises. Aphrodite reduces time-to-market for GenAI apps from months to days—designed for startups and enterprises that need to move fast without sacrificing control.
Stack Components
- Web App (Next.js) - User-facing web interface with server-side rendering and API routes
- API Gateway (NestJS) - Control plane for orchestrating LLM, image, and video generation requests
- LLM Worker (FastAPI) - Python service for text generation (OpenAI, Anthropic, open-source models)
- Image/Video Generation - Services for DALL-E, Stable Diffusion, video synthesis, and custom pipelines
- Compliance Service - Built-in compliance auditing (GDPR, HIPAA, SOC 2) for all generated content
- Shared Utilities (TypeScript) - Common libraries for auth, logging, metrics, and data validation
- Infrastructure (IaC) - Docker Compose, Helm charts, Terraform modules for any cloud or on-prem deployment
Quick-Start in Minutes
Clone the monorepo and run a single command to spin up the entire stack locally. Docker Compose orchestrates web app, API gateway, LLM workers, and services. Pre-configured environment variables and sane defaults get you from zero to demo in under 10 minutes.
Text Generation (LLM Worker)
FastAPI-based LLM worker supports OpenAI GPT-4, Anthropic Claude, Cohere, and open-source models (LLaMA, Mistral). Unified API for streaming responses, function calling, and retrieval-augmented generation (RAG). Swap models without changing application code.
Image & Video Generation
Generate images via DALL-E, Stable Diffusion, or custom diffusion models. Create videos from text prompts or image sequences. Built-in background removal, upscaling, and style transfer. Batch processing for large-scale content creation.
Built-In Compliance Service
Compliance service automatically audits all generated content for GDPR, HIPAA, SOC 2, and custom policy violations. Flags sensitive data (PII, PHI), bias, and prohibited content. Integration with THEMIS for cryptographic audit trails of all compliance checks.
Next.js Web Application
Pre-built Next.js web app with authentication, responsive UI components (shadcn/ui), and API routes. Server-side rendering for SEO. Real-time updates via WebSockets. Customize branding, add pages, and deploy to Vercel, AWS Amplify, or self-host.
NestJS API Gateway
API gateway built with NestJS orchestrates requests to LLM workers, image/video services, and compliance checks. Built-in rate limiting, authentication (JWT, API keys), and observability (logs, metrics). GraphQL and REST endpoints for flexibility.
Aphrodite includes infrastructure-as-code for seamless deployment to any environment. Docker Compose for local dev, Helm charts for Kubernetes, and Terraform modules for cloud providers (AWS, Azure, GCP). Deploy the entire stack with a single command or customize for your specific infrastructure requirements.
Deployment Options:
- Docker Compose - Local development with hot reload; single-command spin-up (docker-compose up)
- Kubernetes (Helm) - Production deployment with auto-scaling, load balancing, and high availability
- Terraform - Provision cloud infrastructure (AWS ECS, Azure Container Apps, GCP Cloud Run)
- Serverless - Deploy API gateway and workers to AWS Lambda, Azure Functions, or Google Cloud Functions
Cloud Providers:
- AWS - ECS, EKS, Lambda, S3 for media storage, RDS for database
- Azure - Container Apps, AKS, Functions, Blob Storage, PostgreSQL
- GCP - Cloud Run, GKE, Cloud Functions, Cloud Storage, Cloud SQL
- On-Premises - Docker Swarm or Kubernetes on your infrastructure
Healthcare
Build patient-facing chatbots that generate empathetic responses and educational content. Compliance service enforces HIPAA requirements automatically. Generate synthetic training data for medical models while protecting patient privacy.
Automotive Retail
Produce personalized marketing emails, images of custom vehicle configurations, and video ads. Integrate with dealership websites for conversational search and inventory queries. Generate content at scale for multi-location dealership groups.
Financial Services
Automate financial report generation, create chatbot assistants for customer service, and generate visual dashboards. Compliance service ensures all outputs meet SEC, FINRA, and internal policy requirements.
Legal
Generate draft legal documents, translate contracts, summarize depositions, and create illustrative graphics. Ensure all AI-generated content meets compliance requirements before attorney review.
Government
Build citizen service portals that answer questions, generate forms, and create explainer videos. Keep content compliant with open-records laws and accessibility standards (WCAG, Section 508).
Military & Intelligence
Generate synthetic images or video for training, simulation, or decoy purposes. Provide language translation and summarization for intelligence analysis. Compliance auditing ensures sensitive data protection.
Aphrodite is built on the AIOS ecosystem and integrates deeply with other Apotheon products:
- AIOS (AI Operating System) - Aphrodite runs on AIOS for zero-trust identity, telemetry, and federated deployments. Multi-tenancy and resource isolation are managed by AIOS.
- Hermes (Agent Orchestration) - The API gateway uses Hermes for orchestrating multi-step AI workflows (e.g., text generation → image generation → compliance check).
- Mnemosyne (Memory) - Generated content, user data, and compliance logs are stored in Mnemosyne's federated memory tiers for durability and fast retrieval.
- THEMIS (Governance) - All AI-generated content and compliance checks are logged in THEMIS's cryptographic audit trail. Prove regulatory compliance with tamper-proof evidence.
- Thea (CMS) - Aphrodite powers Thea's AI-powered content generation features (copywriting, translation, image editing). Thea's visual interface wraps Aphrodite's APIs.
- AI Studio - Aphrodite's LLM workers are available as nodes in AI Studio workflows. Chain together text, image, and video generation in visual pipelines.
- Ares (Security Testing) - AI-powered pentesting ensures Aphrodite's APIs, authentication, and content delivery are secure. Ares identifies vulnerabilities before deployment.
- Frontend: Next.js 14, React, TypeScript, Tailwind CSS, shadcn/ui
- API Gateway: NestJS, TypeScript, GraphQL, REST, WebSockets
- LLM Worker: FastAPI, Python, OpenAI SDK, Anthropic SDK, LangChain
- Image/Video: DALL-E API, Stable Diffusion, FFmpeg, custom pipelines
- Compliance: Python service with PII detection, policy checks, THEMIS integration
- Database: PostgreSQL (relational), Mnemosyne (memory tiers), Redis (cache)
- Message Queue: Redis, RabbitMQ, or cloud-native (AWS SQS, Azure Service Bus)
- Infrastructure: Docker, Docker Compose, Kubernetes (Helm), Terraform (AWS/Azure/GCP)
- Auth: NextAuth.js (SSO, OAuth), JWT, API keys
- Observability: Structured logging (Winston), metrics (Prometheus), tracing (OpenTelemetry)
Ready to Build GenAI Apps Fast?
See how Aphrodite's full-stack monorepo can reduce your time-to-market from months to days. Book a demo to discuss your use case.