Skip to content

Ardanas/x6-collaborative-graph-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

X6-based Collaborative Graph Editor

This project is a real-time collaborative graph editor built on top of the X6 graph visualization library. It allows multiple users to simultaneously create, edit, and view graph structures, demonstrating the power of real-time collaboration in a visual editing environment.

usage

Features

  • X6-powered graph editing: Utilize the powerful features of X6 for graph manipulation
  • Real-time collaboration: Multiple users can work on the same graph simultaneously
  • Cursor tracking: See other users' cursors in real-time
  • User awareness: Display avatars of connected users

Technology Stack

Frontend

  • Vue 3: Progressive JavaScript framework for building user interfaces
  • X6: Powerful graph visualization and editing library
  • Yjs: CRDT framework for building collaborative applications

Backend

  • Node.js: JavaScript runtime for server-side development
  • Hocuspocus: Real-time collaboration backend for Yjs

Collaboration

  • @hocuspocus/provider: Client-side provider for Hocuspocus
  • @hocuspocus/server: Server-side implementation of Hocuspocus

Getting Started

To run this project, you need to start both the frontend and backend servers.

Backend

  1. Navigate to the backend directory:

    cd backend
    
  2. Install dependencies:

    pnpm install
    
  3. Start the backend server:

    pnpm run start
    

The backend server will start running on http://localhost:1234.

Frontend

  1. Navigate to the frontend directory:

    cd frontend
    
  2. Install dependencies:

    pnpm install
    
  3. Start the frontend development server:

    pnpm run dev
    

The frontend application will be available at http://localhost:5173 (or another port if 5173 is already in use).

Open this URL in multiple browser windows to test the collaborative features.

References

License

This project is licensed under the MIT License.

About

A real-time collaborative graph editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published