A standard usage of ol-comfy is to start by creating a singleton containing all olc classes your application needs. Then in your app you only need to access this singleton and some (string) ids to access everything you need from Ol-Comfy and OpenLayers!

Check the example's root folder, files store-manager.ts and map-entry.ts to see how to build such a singleton.

Here's an example with two olc instances from a single singleton.