I am looking to the derby multiplayer notepad. I am wondering what would be the best way to implement something like a cursor for the other people editing. Something like in google docs / etherpad for instance.
In general, I am looking for the following :
PS: I saw this question, but it doesn't really help me regarding the synchronization.
You will have to enforce authentication in your application. I suggest you get the derby-auth npm module and use that to authenticate.
Once your user is authenticated you can then pass their handle (see Passport) back to every edit request to your server, then push that info back out to the connected clients.