Engineering on an astronomical scale, or astronomical engineering, i.e., engineering involving operations with whole astronomical objects (planets, stars, etc.), is a known theme in science fiction, as well as a matter of recent scientific research and exploratory engineering.
In the Kardashev scale, Type II and Type III civilizations can harness energy on the required scale. This can allow them to construct megastructures.
Orbital with no apparent hub
A proposed plan for an orbital ring