An optofluidic device interfaces droplet microfluidics with light-sheet fluorescence microscopy for on-chip, high-throughput sample compartmentalization and 3-D imaging.