How to implement a file data manager?

I want to implement a file data manager to solve dependencies between files .
I am choosing to put the data in the Map or indexDB. But I am afraid that there will be out of memory by putting data in the Map.
Is there a better idea?

Is this in any way related to Theia?

This isn’t related to Theia.
I just want to get some suggestions if anyone had done a similar thing.

This is not related to Theia :sweat_smile: