AI/MLProduction

Cocon - Corporate Social Media Platform

Cocon is a multi-tenant SaaS platform built for mid-sized companies and enterprises to streamline their social media content creation. The platform integrates AI services for caption generation, auto-fill, and image tagging, while providing a full social publishing pipeline via Ayrshare integration. Built on Laravel 11 and Vue 3 with subdomain-based multi-tenancy, Redis-backed queues via Laravel Horizon, and a custom theming system — all running in a Docker-based infrastructure.

Project Details

My Role

Senior Full-Stack Engineer

Duration

Ongoing

Team Size

5 developers

Status

Production

Technologies

LaravelVue.jsPHP 8.3OpenAIRedisLaravel HorizonDocker

Key Features

  • AI-powered caption generation and copywriting assistance
  • Brand-compliant social media post creation in seconds
  • Multi-tenant architecture with subdomain routing and company scoping
  • Social publishing pipeline across multiple platforms via Ayrshare
  • Live preview for creative selection and format switching
  • AI image tagging and auto-fill for rapid content production
  • Analytics and reporting dashboard per tenant
  • Redis-backed queue workers for posts, analytics, and image processing

Results & Impact

  • Platform live and serving enterprise clients including automotive dealerships, digital agencies, and logistics companies
  • Achieved up to 70% reduction in content creation costs for clients
  • Scalable multi-tenant architecture supporting rapid onboarding of new companies
  • AI-assisted workflows cut social media post production time from hours to seconds

Challenges

  • Building a robust multi-tenant system with per-company subdomain routing and data isolation
  • Integrating multiple AI providers for real-time caption generation and image tagging at scale
  • Designing a flexible theming system supporting per-tenant corporate identity compliance
  • Managing complex queue workloads across posts, screenshots, analytics, and image tagging

Solutions

  • 💡Implemented company-scoping middleware with subdomain-based tenant resolution across all API and web routes
  • 💡Integrated OpenAI services as isolated service classes with fallback handling and queue-based processing
  • 💡Built a multi-entry Laravel Mix frontend with a dynamic theme system driven by tenant configuration
  • 💡Structured dedicated queue workers per domain (emails, posts, analytics, screenshotter, image-tagging) via Laravel Horizon

Project Gallery

Cocon - Corporate Social Media Platform - 1
Cocon - Corporate Social Media Platform - 2
Cocon - Corporate Social Media Platform - 3
Cocon - Corporate Social Media Platform - 4
Cocon - Corporate Social Media Platform - 5