I accidentally built a plugin system (The Registry Pattern)

A central map where components announce themselves — instead of a central file that imports everything.