Skip to main content
#11

C Lync

โ˜…

WhatsApp Management & Automation SaaS Powered by Google AI. Mitigate chat overload with automated AI summarization & dynamic contact memory.

ReactExpressTypeScriptAIChatbotAutomationOpen SourceSupabase
<p align="center"> <img src="images/repo.png" alt="C-Lync Banner" width="100%"/> </p> <p align="center"> <img src="images/logo.png" alt="C-Lync Logo" width="120"/> </p> <h1 align="center">C-Lync</h1> <p align="center"> <strong>SaaS Manajemen & Otomatisasi WhatsApp Berbasis Google AI</strong> </p> <p align="center"> <a href="https://c-lync-266408539680.asia-southeast1.run.app/"><strong>๐ŸŒ Live Production</strong></a> </p> <div align="center">

Stars Forks License Platform

</div> <p align="center"> <a href="#-why-c-lync">Why This</a> ยท <a href="#-key-features">Features</a> ยท <a href="#-tech-stack">Tech Stack</a> ยท <a href="#-architecture">Architecture</a> </p>

๐Ÿ•’ Why C-Lync?

๐Ÿ–ผ๏ธ Preview

<table align="center"> <tr> <td align="center"><b>Web App Preview</b></td> </tr> <tr> <td><img src="images/dash.gif" width="200" alt="C-Lync Dashboard"/></td> </tr> </table>

Chat WhatsApp numpuk, pertanyaan yang sama berulang, respon lambat. Pemilik bisnis kecil keteteran balas chat manual seharian.

C-Lync hadir sebagai asisten cerdas yang menjembatani WhatsApp Web Gateway dengan infrastruktur kecerdasan buatan Google untuk mengotomatisasikan rangkuman obrolan dan pencatatan memori data kontak secara asinkron.

โšก AI Chat SummarizationRangkum puluhan pesan panjang jadi 1 baris info krusial instan
๐Ÿ”’ Dynamic Contact MemoryAI ekstrak preferensi kontak otomatis ke profil memori
๐Ÿ›ก๏ธ Multi-Tenant SecurityIsolasi data 100% via Supabase RLS per-user

๐ŸŽฏ Key Features

AI-Powered Capabilities

FeatureStatusDescription
AI Automated Summarizationโœ…Merangkum puluhan baris obrolan panjang menjadi satu baris informasi krusial instan
Dynamic Contact Memoryโœ…Mengekstrak informasi preferensi unik dari pesan kontak secara otomatis
Gemini AI Integrationโœ…Pemahaman konteks bahasa Indonesia yang unggul via Google AI Studio

Core Platform Features

FeatureStatusDescription
Web-based Dashboardโœ…Akses dari browser, ga perlu install aplikasi tambahan
Multi-Conversation Handlingโœ…Kelola banyak chat WhatsApp dari satu dashboard terpusat
Sub-Tab Isolation UIโœ…Pemisahan steril antara demo walkthrough dan data produksi
Realtime Badge Counterโœ…Counter unread badge bergerak dinamis via Supabase Realtime

Infrastructure

FeatureStatusDescription
Google Cloud Run Deploymentโœ…Berjalan di GCP dengan RAM hemat < 512MiB
Unified Monolith Architectureโœ…Frontend + Backend dalam satu port untuk minimalkan cold starts
PostgreSQL 17 + RLS 100%โœ…Isolasi data multi-tenant via Row Level Security

๐Ÿ› ๏ธ Tech Stack

LayerTechnologyWhy
FrontendReact.js, TypeScript, Tailwind CSS, Framer MotionAntarmuka taktil dengan touch targets >= 44px
BackendExpress.js, Node.jsUnified monolith, minimal cold starts
AI EngineGoogle AI Studio (Gemini Pro SDK)Kecepatan inferensi tinggi, konteks ID unggul
DatabaseSupabase (PostgreSQL 17.6)RLS 100%, Realtime subscription
DeploymentGoogle Cloud RunScalable serverless container

๐Ÿ—๏ธ Architecture

c-lync/
โ”œโ”€โ”€ images/                  # Visual assets (banner, demo gif)
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/         # Modular UI components (BottomTabs, CustomDialog)
โ”‚   โ”‚   โ””โ”€โ”€ settings/       # Profile, billing, WA connection settings
โ”‚   โ”œโ”€โ”€ context/
โ”‚   โ”‚   โ””โ”€โ”€ AppContext.tsx  # Global state + onboarding flag
โ”‚   โ”œโ”€โ”€ jobs/               # Background jobs (autoCleanup, userDeletion)
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”‚   โ”œโ”€โ”€ apiClient.ts    # Centralized fetch wrapper
โ”‚   โ”‚   โ”œโ”€โ”€ geminiClient.ts # Google GenAI SDK integration
โ”‚   โ”‚   โ””โ”€โ”€ supabase.ts     # Database client
โ”‚   โ”œโ”€โ”€ middleware/
โ”‚   โ”‚   โ”œโ”€โ”€ auth.ts         # JWT authentication guard
โ”‚   โ”‚   โ””โ”€โ”€ tokenQuotaCheck.ts  # AI token quota limiter
โ”‚   โ”œโ”€โ”€ routes/              # Legal routes (GDPR, Privacy Policy)
โ”‚   โ”œโ”€โ”€ screens/
โ”‚   โ”‚   โ”œโ”€โ”€ AiAgents.tsx    # Gemini AI chat interaction
โ”‚   โ”‚   โ”œโ”€โ”€ AuthScreen.tsx   # Multi-tenant login/register
โ”‚   โ”‚   โ”œโ”€โ”€ Chats.tsx       # Core UI (Real vs Sandbox tabs)
โ”‚   โ”‚   โ”œโ”€โ”€ Dashboard.tsx    # Token analytics & quota panel
โ”‚   โ”‚   โ””โ”€โ”€ Settings.tsx     # Business profile controls
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ baileyStateManager.ts  # WA multi-file auth sync
โ”‚   โ”‚   โ”œโ”€โ”€ memoryBackupService.ts
โ”‚   โ”‚   โ””โ”€โ”€ tokenQuotaService.ts   # Per-user AI quota cutter
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ”œโ”€โ”€ promptBuilder.ts       # Safe prompt constructor
โ”‚       โ””โ”€โ”€ promptOptimizer.ts     # Context token optimizer
โ”œโ”€โ”€ supabase/
โ”‚   โ””โ”€โ”€ migrations/         # SQL schema migrations
โ”œโ”€โ”€ server.ts               # Express core engine + static server
โ”œโ”€โ”€ whatsappService.ts      # Baileys WA Socket integration
โ”œโ”€โ”€ SUPABASE_SCHEMA.sql     # Complete RLS + table schema
โ””โ”€โ”€ package.json            # Dependencies

โš™๏ธ System Flow

[ User ]
  โ”‚
  โ”œโ”€โ”€ Login / Register (protected by Supabase RLS 100%)
  โ”‚
  โ”œโ”€โ”€ WhatsApp Web Sync (scan QR via Baileys multi-file auth)
  โ”‚
  โ””โ”€โ”€ Core Menu (Chats Screen)
        โ”‚
        โ”œโ”€โ”€ SANDBOX SIMULASI TAB
        โ”‚     โ””โ”€โ”€ Pure in-memory demo, bypass database quota
        โ”‚
        โ””โ”€โ”€ PESAN NYATA TAB
              โ””โ”€โ”€ PostgreSQL Realtime Listener
                    โ””โ”€โ”€ Badge counter updates dynamically

[ Background Circuit ]
  โ”‚
  โ”œโ”€โ”€ Pesan Masuk โ”€โ”€โ–บ Save to whatsapp_messages table
  โ”‚
  โ”œโ”€โ”€ Klik "SUMMARY" โ”€โ”€โ–บ promptOptimizer.ts compiles payload
  โ”‚
  โ”œโ”€โ”€ Inferensi โ”€โ”€โ–บ Google AI Studio processes summary
  โ”‚
  โ””โ”€โ”€ RAM Server stays < 512MiB

๐Ÿ† Awards

Project Hasil Kompetisi #JuaraVibeCoding (Google Cloud Indonesia)

Catatan Evaluasi Juri: Berkas ini merupakan Mirror / Shadow Repository yang dirancang khusus untuk menyajikan dokumentasi arsitektur sistem, bagan alur kerja, serta cetak biru struktur folder C-Lync (Project Challenge 11/50) secara transparan. Kode sumber inti (Core Engine) disimpan aman di dalam repositori privat demi melindungi token API komersial dan hak cipta kekayaan intelektual.


๐Ÿ“ฆ License

This repository is a public documentation mirror for the C-Lync project.

  • Core Code: Proprietary / Komersial Terbatas โ€” disimpan di repositori privat
  • Documentation: Mirror ini disediakan untuk transparansi arsitektur dan portfolio

For licensing inquiries, contact the author.


๐Ÿ”— Connect

<p align="center"> <a href="https://github.com/Curzyori"> <img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white"/> </a> <a href="https://curzy.dev"> <img src="https://img.shields.io/badge/Portfolio-58A6FF?style=for-the-badge"/> </a> <a href="https://linkedin.com/in/curzy"> <img src="https://img.shields.io/badge/LinkedIn-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white"/> </a> </p>

<sub>Built with passion as the 11th Project of the <strong>50 Projects Challenge</strong> by <strong>@curzyori</strong></sub>