code: function assertTopicSanity() {
  	// checks for each configured topic if there is at least one vault set up to read or write with
  
  	var topics = Object.keys(topicConfigs);
  
  	topics.forEach(function (topic) {
  		var apis = topicApis[topic];
  		var vaultNames = Object.keys(apis);
  
  		// now make sure we have at least 1 persistent vault represented in vaultNames
  
  		var found = vaultNames.some(function (vaultName) {
  			if (!persistentVaults[vaultName]) {
  				return false;
  			}
  
  			if (readOrder.indexOf(vaultName) === -1 && writeOrder.indexOf(vaultName) === -1) {
  				return false;
  			}
  
  			return true;
  		});
  
  		if (!found) {
  			throw new Error('No readable or writable vaults configured for topic "' + topic + '"');
  		}
  	});
  }
docs: sanity checks