The article proposes a compact wireless power transfer framework for IoT devices, addressing the challenges of power supply in complex environments. The core components include a plane-wave feeder and a transmissive 2-bit reconfigurable metasurface-based beam generator, forming a reconfigurable power router with a subwavelength profile (0.8 wavelengths). This setup enables object detection, localization, and intelligent wireless power transfer to multiple targets, especially in dynamic multitarget environments. The system also supports simultaneous wireless information and power transfer (SWIPT). Experiments demonstrate the framework's capability to detect and localize targets, selectively supply power, and achieve SWIPT. The proposed framework is suitable for commercialization due to its low cost and compact size, offering potential applications in dynamic environments with IoT devices.The article proposes a compact wireless power transfer framework for IoT devices, addressing the challenges of power supply in complex environments. The core components include a plane-wave feeder and a transmissive 2-bit reconfigurable metasurface-based beam generator, forming a reconfigurable power router with a subwavelength profile (0.8 wavelengths). This setup enables object detection, localization, and intelligent wireless power transfer to multiple targets, especially in dynamic multitarget environments. The system also supports simultaneous wireless information and power transfer (SWIPT). Experiments demonstrate the framework's capability to detect and localize targets, selectively supply power, and achieve SWIPT. The proposed framework is suitable for commercialization due to its low cost and compact size, offering potential applications in dynamic environments with IoT devices.