In-process mediator with low-friction API