An api at the core of piecemaker