Cortex CMS: AI-Native Headless Content Repository

Cortex CMS: AI-Native Headless Content Repository

Cortex CMS: The AI-Native Content Engine

Cortex CMS is an open-source, AI-native headless content repository built with a pragmatic polyglot architecture. It is designed to act as the central nervous system for modern digital experiences, integrating seamlessly with both frontend applications and asynchronous background AI workers.

Project Overview

Traditional Content Management Systems segment content storage from the increasingly important AI processing pipelines. Cortex CMS bridges this gap natively. It provides a robust, strongly-typed foundation for content editors and developers while integrating efficiently with Python-based AI workers for tasks like vector embedding, summarization, and RAG (Retrieval-Augmented Generation) out-of-the-box.

Technologies Used

  • TypeScript & Fastify: The high-performance core API server, providing the primary interface for content delivery.
  • GraphQL (Pothos & Yoga): A fully automatic, code-first GraphQL layer offering deep querying, mutations, and WebSocket subscriptions for real-time updates.
  • Drizzle ORM & PostgreSQL: A type-safe persistence layer leveraging pgvector for advanced AI similarity searches.
  • BullMQ & Redis: A robust asynchronous messaging layer powering the webhook delivery system and internal event pipelines.
  • Python: A dedicated, non-public AI worker pipeline that handles computationally heavy LLM interactions.

Key Features

  • 🧠 Pragmatic Polyglot Architecture: Optimized at every layer, utilizing TypeScript for the web/API tiers and Python for specialized AI and vector workloads.
  • ⚑ Automated GraphQL API: A robust implementation of a Relay-compliant connection system, ensuring client scalability with completely N+1 safe DataLoaders built directly in.
  • πŸ•ΈοΈ Real-Time Webhooks & Subscriptions: Event-driven architecture utilizing a transactional outbox and background queue system to guarantee webhook deliveries, alongside live WebSocket subscriptions.
  • πŸ€– Built-In AI Pipelines: Direct integration through queues for AI enrichment workloads, eliminating the need to wire up separate complex infrastructure for text processing and semantic indexing.