We present a new compact instrument designed for scanning transmission X-ray microscopy. It has piezo-driven linear stages, making it small and light. Optical components from the virtual source point to the detector are located on a single optical table, resulting in a portable instrument that can be operated at a general-purpose spectroscopy beamline without requiring any major reconstruction. Careful consideration has been given to solving the vibration problem common to high-resolution microscopy, so as not to affect the spatial resolution determined by the Fresnel zone plate. Results on bacteriogenic iron oxides, single particle aerosols, and rare-earth permanent magnets are presented as examples of its performance under diverse applications.