Image-guided positioning, or neuronavigation, is critical for precise targeting of transcranial magnetic stimulation (TMS) and other noninvasive brain stimulation. However, existing commercial systems have limitations in flexibility and extensibility for research applications. We present new open-source software for neuronavigated non-invasive brain stimulation (NaviNIBS) that provides comprehensive functionality for TMS experiments. NaviNIBS supports imaging data import, target planning, head registration, real-time tool tracking, and integration with robotic positioning and electrophysiology systems. Key features include flexible target specification, support for multiple tracking hardware options, refined head registration techniques, and an extensible addon system. We describe the software architecture, core functionality, characterization of tracking performance, and example applications of NaviNIBS. This software aims to facilitate methodological improvements and novel experimental paradigms in noninvasive brain stimulation research.