Skip to main content
Under NDA

ContentTab – Headless CMS Platform with AI Pipeline

ContentTab is a headless CMS platform delivered as a monorepo of three independent applications: a NestJS 10 modular monolith backend, a Next.js 14 App Router admin dashboard, and a Next.js 15 marketing site.

Engagement
Company project · NDA
My Role
Full stack engineer
Platform
Web (SaaS)
Market
Content teams
Technologies used
  • NestJS
  • Next.js 14
  • MongoDB
  • Redis

Built under NDA — client data and source code remain confidential, so details are intentionally limited.

ContentTab headless CMS editor with AI writing assistant
20+
Feature modules serving 30+ API route prefixes
4
LLM output parser extraction fallback strategies
24
Mongoose schemas behind the content model

The challenge

Organizations managing multilingual content at scale face a convergence of hard problems: rigid CMS schemas that resist extension, fragmented authorization models across teams, unreliable AI integrations that silently fail mid-stream, and zero visibility into API consumption. Existing solutions force a tradeoff between rigid monolithic tools or disjointed glue code.

The solution

We architected and built ContentTab — a NestJS 10 modular monolith backend exposing 20+ feature modules across 30+ route prefixes backed by MongoDB (24 Mongoose schemas). It features dual-authentication (JWT + API key/secrets), workspace-scoped embedded RBAC, and a provider-agnostic AI streaming pipeline with atomic credit reservations.

Key features delivered

Engineered with clean code, scalable architecture and strict attention to performance.

AI Content Pipeline with Multi-Provider Failover

Provider-agnostic AI layer (HuggingFace Inference) supporting 5 operations with real-time SSE streaming, 4 fallback LLM parsers, and atomic credit reservation using MongoDB $inc.

Workspace-Scoped ACL with Embedded RBAC

Roles and members are embedded directly in Workspace documents to eliminate N+1 queries. Hierarchical permissions (delete → write → read) across 13 resources.

Floating AI Widget with CSS Custom Highlight API

Glass-morphism floating AI prompt box over EditorJS with selection persistence (CSS Custom Highlight API + DOM injection) for cross-block replacements.

Headless Custom Schema Engine & Content Versioning

Extensible custom fields (`cs[]` array) without database migrations, coupled with full audit-safe content versioning, split-pane diff comparisons, and backup restores.

Dual-Authentication & Programmatic REST API

Dual auth (JWT + API key/secret pairs) with Redis sliding-window rate limiting, full request logging, and observable programmatic API access.

Multi-Tenant Workspace & Invitation Engine

Isolated workspaces with invitation lifecycle management, seeded system roles, and full frontend ACL mirroring (<Can> component, usePermission hook).

The business impact

ContentTab provided enterprise teams with schema-agnostic content management and fail-safe streaming AI generation.

  • Prevented customer billing data loss via atomic credit reservations and automatic failure refunds
  • Eliminated developer dependency for new content models through dynamic custom field schemas
  • Accelerated team onboarding with workspace-embedded RBAC and instant permission assignment
  • Kept AI streaming available through automatic primary/fallback provider failover
ContentTab – Headless CMS Platform with AI Pipeline — results screen

Have a project in mind?I'd love to hear about it.

Let's talk
Quick messageReply within 24h