There were places that were run democratic/in a republican fashion.
Venice, to a great degree the various Hanseatic free cities, Switzerland.
Similarly, the Turks didn't have an aristocracy, since both the janissaries, the vezirs and all other functionaries were basically non-hereditary civil...