Introducing rack-toolbar
Rack Toolbar supplies middleware helpers for inserting content into responses at selected points. It was extracted from Rack Insight and can support diagnostic UI or other response additions. Its README calls out a limitation: this response-rewriting approach is incompatible with Rails streaming responses.
See the upstream README and project repository.