code: function HoodieAdmin(baseUrl) {
    var hoodieAdmin = this;
  
    // enforce initialization with `new`
    if (!(hoodieAdmin instanceof HoodieAdmin)) {
      throw new Error('usage: new HoodieAdmin(url);');
    }
  
    // remove trailing slashes
    hoodieAdmin.baseUrl = baseUrl ? baseUrl.replace(/\/+$/, '') : '';
  
    // initializations
    hoodieAdmin.id = function() { return 'admin'; };
  
  
    // hoodieAdmin.extend
    // ---------------
  
    // extend hoodieAdmin instance:
    //
    //     hoodieAdmin.extend(function(hoodieAdmin) {} )
    //
    hoodieAdmin.extend = function extend(extension) {
      extension(hoodieAdmin);
    };
  
    //
    // Extending hoodie admin core
    //
  
    // * hoodieAdmin.bind
    // * hoodieAdmin.on
    // * hoodieAdmin.one
    // * hoodieAdmin.trigger
    // * hoodieAdmin.unbind
    // * hoodieAdmin.off
    hoodieEvents(hoodieAdmin);
  
    // * hoodieAdmin.request
    hoodieAdmin.extend(hoodieRequest);
  
    // * hoodieAdmin.open
    hoodieAdmin.extend(hoodieOpen);
  
    // * hoodieAdmin.checkConnection
    hoodieAdmin.extend(hoodieConnection);
  
    // * hoodieAdmin.account
    hoodieAdmin.extend(hoodieAdminAccount);
    hoodieAdmin.account.bearerToken = utils.config.get('_account.bearerToken');
  
    // * hoodieAdmin.plugin
    hoodieAdmin.extend(hoodieAdminPlugin);
  
    // * hoodieAdmin.user
    hoodieAdmin.extend(hoodieAdminUser);
  
    //
    // loading user extensions
    //
    applyExtensions(HoodieAdmin);
  }
docs: When initializing a hoodie instance, an optional URL can be passed. That's the URL of the hoodie backend. If no URL passed it defaults to the current domain.  // init a new hoodie instance hoodie = new Hoodie