I was studying topological spaces having studied metric spaces. I guess the properties of open sets in metric space led into (in terms of open set) definition of Topological spaces. Although there are many equivalent definitions such as Kuratowski closure axioms, the most used definition is in terms of open sets.
I know that we can extend these topological spaces into vector spaces or any other algebraic structures by defining appropriate operations in the given topological space. I'm not aware of any generalization of topological spaces which further broadens the definition of topological spaces.
For example, if we replace union and intersection by any other two operations (let's call it op1 and op2) such that arbitrary op1 and finite op2 are closed in the given class of subsets of a set and conventionally we can call them as open$^*$ sets(I'm calling them open$^*$ to distinguish from the open sets in the normal sense). This idea is itself is worth reflecting because if we consider op1 as intersection and op2 as union then closed sets(in the normal sense) are open$^*$ sets and open sets(in the normal sense) are closed$^*$ sets. If we consider some other operations then the properties will differ entirely. In general, it may not lead us into metric spaces or may not have pleasant properties which always is the aim of mathematicians.
Does this kind of generalization of topological space exist? Did anyone work in this direction?