Electron beam ion traps (EBITs) are ideal tools for both production and study of highly charged ions (HCIs). In order to reduce their construction, maintenance, and operation costs, we have developed a novel, compact, room-temperature design, the Heidelberg Compact EBIT (HC-EBIT). Four already commissioned devices operate at the strongest fields (up to 0.86 T) reported for such EBITs using permanent magnets, run electron beam currents up to 80 mA, and energies up to 10 keV. They demonstrate HCI production, trapping, and extraction of pulsed Ar16+ bunches and continuous 100 pA ion beams of highly charged Xe up to charge state 29+, already with a 4 mA, 2 keV electron beam. Moreover, HC-EBITs offer large solid-angle ports and thus high photon count rates, e.g., in x-ray spectroscopy of dielectronic recombination in HCIs up to Fe24+, achieving an electron-energy resolving power of E/ΔE > 1500 at 5 keV. Besides traditional on-axis electron guns, we have also implemented a novel off-axis gun for laser, synchrotron, and free-electron laser applications, offering clear optical access along the trap axis. We report on its first operation at a synchrotron radiation facility demonstrating the resonant photoexcitation of highly charged oxygen.