Connect/express middleware for dcompose