Sync algorithm - where to start understanding it

Hi everybody,

I am now using for a few weeks Joplin - I love it.

I have not a lot of experience but I would like to have a better insight into the sync algorithm just to better understand how it works. The question is: What is the best way to start or what are the relevant files that determine how the sync algorithm works? Do you have some hints for a beginner? I screened the source but I found no sync.js or something like that - sorry for the “stupid” question.

Many thanks.

Kind regards,


Have a look at lib/synchronizer.js. Check also tests/synchronizer.js for examples of what it does, and tests/test-utils.js to see how it’s setup. Feel free to ask if you have any question.