Dynamically adding a catalog

I know I can add a catalog source in the settings.js file but I was wondering if it was possible to dynamically add a catalog ?
I would write a node/plugin to serve my private catalog and the ideal workflow would be the following:

  • User adds node/plugin
  • User edits the configuration node and sets the Gitlab API token
  • Catalog is added