Is there a way to use the settings.write function to add my own properties in the settings file and access them through all the components within the session without being persisted?
PS If I ask this is because it gives me an errore settings.write is not a function
settings.write is not exposed in the custom module currently. Using a simple module to store your settings should be more appropriate (and if you need persistence, using node's fs module will let you write on the filesystem).
While writing this I found out that calling require() doesn't allow sharing a module accross different modules (it's read from disk and executed each time), I'm pushing a fix to make this possible :