// ───────────────────────────────────────────────────────────── // Landing Page — Hero + Features showcase // ───────────────────────────────────────────────────────────── 'use client'; import Link from 'next/link'; import { Code2, Users, Zap, Shield, Video, Bot, Terminal, Globe } from 'lucide-react'; const features = [ { icon: Users, title: 'Real-Time Collaboration', desc: 'Multiple users editing simultaneously with CRDT-based sync' }, { icon: Zap, title: 'Low Latency', desc: 'WebSocket-powered updates with optimistic UI rendering' }, { icon: Terminal, title: 'Code Execution', desc: 'Run code in isolated Docker containers with streaming output' }, { icon: Bot, title: 'AI Assistant', desc: 'Integrated AI for debugging, optimization, and code explanation' }, { icon: Video, title: 'Video Calls', desc: 'WebRTC peer-to-peer video/audio with screen sharing' }, { icon: Shield, title: 'Secure Sandbox', desc: 'Isolated execution with resource limits and network isolation' }, { icon: Code2, title: 'Monaco Editor', desc: 'VS Code-grade editing with IntelliSense and multi-language support' }, { icon: Globe, title: 'Scalable', desc: 'Redis pub/sub for horizontal scaling across multiple instances' }, ]; export default function HomePage() { return (
A production-grade collaborative IDE with real-time editing, AI-powered debugging, video collaboration, and secure sandboxed code execution. Like VS Code, but multiplayer.
{` 1 │ `}import{` { collaborate } `}from{` `}'codesync'{`;
2 │
3 │ `}const{` room = `}await{` collaborate.`}createRoom{`({
4 │ name: `}'Project Alpha'{`,
5 │ language: `}'typescript'{`,
6 │ members: [`}'alice'{`, `}'bob'{`],
7 │ });
8 │
9 │ room.`}on{`(`}'update'{`, (delta) => {
10 │ `}// CRDT ensures conflict-free merging{`
11 │ editor.`}applyDelta{`(delta);
12 │ });`}
Built with production-grade architecture, real-time synchronization, and modern developer tooling.
{feature.desc}