This is a data module for RemoteStorage. Have a look at the RemoteStorage documentation to find out how to integrate it into your application. Litewrite uses this module to store notes. Have a look at its source to find out how the setup works.
For documentation of the API of the documents data module see the source.