C Lync
โWhatsApp Management & Automation SaaS Powered by Google AI. Mitigate chat overload with automated AI summarization & dynamic contact memory.
๐ 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 Summarization | Rangkum puluhan pesan panjang jadi 1 baris info krusial instan |
| ๐ Dynamic Contact Memory | AI ekstrak preferensi kontak otomatis ke profil memori |
| ๐ก๏ธ Multi-Tenant Security | Isolasi data 100% via Supabase RLS per-user |
๐ฏ Key Features
AI-Powered Capabilities
| Feature | Status | Description |
|---|---|---|
| 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
| Feature | Status | Description |
|---|---|---|
| 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
| Feature | Status | Description |
|---|---|---|
| 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
| Layer | Technology | Why |
|---|---|---|
| Frontend | React.js, TypeScript, Tailwind CSS, Framer Motion | Antarmuka taktil dengan touch targets >= 44px |
| Backend | Express.js, Node.js | Unified monolith, minimal cold starts |
| AI Engine | Google AI Studio (Gemini Pro SDK) | Kecepatan inferensi tinggi, konteks ID unggul |
| Database | Supabase (PostgreSQL 17.6) | RLS 100%, Realtime subscription |
| Deployment | Google Cloud Run | Scalable 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>