Clari Content Platform
Enterprise content coordination platform with intelligent sync, refinement, tagging, and real-time collaboration capabilities.Platform Overview
Clari is a microservices-based content platform built on Go, designed for high-throughput content processing and real-time collaboration.Core Services
| Service | Purpose | Technology |
|---|---|---|
| Engine | Core backend API and orchestration | Go + Fiber |
| STITCH | Content coordination - two-way sync, conflict resolution, change tracking | Go |
| SIFT | Document refinement - duplicate detection, semantic enrichment, quality metrics | Go |
| SPAWN | Hydration and metadata - content injection, MDX generation, JSON serialization | Go |
| CAST | Tagging and linking - tag parsing, resolver dispatch, cross-repo link resolution | Python |
| RELAY | Real-time presence, activity events, WebSocket connections | Go + gorilla/websocket |
| Gateway | API gateway with routing, rate limiting, reverse proxy | Go |
Architecture
Technology Stack
- Primary Language: Go 1.21+
- Web Framework: Fiber (Express-like)
- Database: PostgreSQL + GORM
- Real-time: gorilla/websocket
- Deployment: Docker, Kubernetes, Railway
- Observability: Prometheus, Grafana, structured logging
Key Features
-
Content Synchronization
- Two-way sync with conflict resolution
- Change tracking and version control
- Multi-source content coordination
-
Document Refinement
- Duplicate detection with semantic analysis
- Quality metrics and scoring
- Metadata enrichment
-
Real-time Collaboration
- Presence tracking across documents
- Activity event streaming
- WebSocket connection management
-
Tag Resolution
- Declarative tag parsing
- Cross-repository link resolution
- Metadata enrichment pipeline
Performance Characteristics
- Throughput: 10,000+ requests/second per service
- Latency: P95 < 50ms for API calls
- WebSocket: 10,000+ concurrent connections per RELAY instance
- Scaling: Horizontal scaling across all services
Repository Structure
clari-tools/engine- Core backend and APIclari-tools/stitch-service- Content sync serviceclari-tools/sift-service- Document refinementclari-tools/spawn-service- Content hydrationclari-tools/cast-service- Tag resolutionclari-tools/web- Frontend applicationclari-tools/kubernetes-manifests- K8s deployment configsclari-tools/helm-charts- Helm chartsclari-tools/terraform-infrastructure- Infrastructure as code
Deployment
Clari supports multiple deployment models:- Development: Docker Compose
- Staging: Railway (managed PaaS)
- Production: Kubernetes (self-hosted or managed)
Getting Started
Each service can be run independently:Documentation
- Architecture analysis and technical decisions
- Sprint completion reports and taskset summaries
- Integration testing and deployment plans
- Production readiness documentation
Organization: clari-tools
Primary Stack: Go, PostgreSQL, Docker, Kubernetes