A real-time collaborative diagram editor built with React + TypeScript + Syncfusion Diagram components. Multiple users can edit the same diagram simultaneously with WebSocket-powered real-time synchronization.
- Node.js: v18 or higher
- npm
-
Clone or navigate to the project directory:
cd d:\13_02_2026_CollabSample
-
Install frontend dependencies:
npm install
npm run startThe app will start at: http://localhost:3000
Edit src/collaboration/CollaborationService.ts:
constructor(serverUrl: string = 'ws://localhost:8080') {
// Change to your server URL
this.serverUrl = serverUrl;
}Edit server/server.js:
const PORT = 8080; // Change to your desired portFor production use, you need a Syncfusion license. Get a free 30-day trial at: https://www.syncfusion.com/account/manage-trials/downloads
Update src/index.tsx:
registerLicense('YOUR_LICENSE_KEY_HERE');Without a license, the app will show a trial banner but will work fully.
npm run start # Start development server (http://localhost:3000)
npm run build # Build for production
npm run preview # Preview production build- Syncfusion for the excellent React Diagram components
- Vite for blazing-fast development experience
- React team for the amazing framework