An ultrathin package enables highly flexible, compact, and reliable optoelectronic systems for sensor and data communications applications.