Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.
/ slatejs-sandbox Public archive

Sandbox for working with Slate JS and CRDTs

Notifications You must be signed in to change notification settings

nathanfu88/slatejs-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

To run, clone this repository and install modules:

npm install

Modify the Sockets IO server port and URL if needed in server.js and App.js respectively.

Then start the socket server (make sure directory is root of this repository):

node server

Start app:

npm start

Clients will be able to connect on localhost:3000

This is a proof-of-concept for working with Slate operation object types and Automerge for CRDT capabilities. Synchronization is not perfect yet due to the way I am handling Automerge. However if you start two clients and starting modifying one, the changes should reflect in the other.

Starting a client when there have been changes in the editor (starting a client from "offline status") will result in unexpected behavior. Again, this is a result of the way I handle Automerge.

About

Sandbox for working with Slate JS and CRDTs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published