Devices for performing nanofabrication are provided which provide small volume reaction space and high reaction versatility. A device may include a reaction chamber adapted for nanoscale modification of a substrate and vacuum conditions; a scanning probe tip assembly enclosed within the reaction chamber; a first port coupled to the reaction chamber for delivering a gas; a second port coupled to the reaction chamber for applying a vacuum; and a substrate assembly insertedly mounted to the reaction chamber. The reaction chamber may include a body having one or more flexible walls and one or more supports to prevent the reaction chamber from collapsing under a vacuum. The device may further include an electrical conduit for coupling the tips of the scanning probe tip assembly to electrical components outside the reaction chamber. Also provided are apparatuses incorporating the devices and methods of using the devices and apparatuses.