This is a bit of departure from how Obsidian’s simple files, folders, and built-in file tree work and is likely much more work than you think. There are some design holes and unknowns in this description that could make the coding work significant.
Happily, a key Obsidian principal is extensibility so anyone can build their own views and widgets on top, and many have. Here are a few community plugins that touch a bit on some of the things in your wish list.
Another alternative you might consider is organizing with Maps Of Content as a complement to or even in place of your folder system. Links are first-class in Obsidian, and the combination of simple files and links in index pages provide powerful views into your graph.