A universal framework for hydrodynamics