Middleware layer for Node and Ramverk