WARNING! SPOILER ALERT!
At the very end of Star Wars: Knights of the Old Republic, you and your crew are flying the Ebon Hawk towards th Unkown Planet. as you come out of hyperspace, this massive structure looms ahead, with a Sith Fleet around it. It is the ancient artifact, the Star Forge.
The Star Forge was created by the Rakata during their ironically named Infinite Empire, which Tatooine, Dantooine, Korriban, Manaan were a part of. It is basically a space station that harbors a gravity well. The Star Forge draws matter from the star to produce whatever the person in command needs. In this case, a never ending fleet of flimsy-looking fighters with bad aim. Or, a comfortable pair of Jedi robes.
NOTE: If you search Google Images for "Star Forge", you can find the picture I based this off of. #Ebon_Hawk #Forge #gravity_well #Republic #Sith #Star #Star_Forge #Star_Map #Star_Wars