Penpal simplifies communication with iframes, workers, and windows by using promise-based methods on top of postMessage.