I have created a new npm package! It solves the problem of creating a fetch compatible function to call routes on the same express server. Inspired by express-data-ssr. Very useful for calling a backend package which you run as a middleware, within your server side rendering code (let’s say you are using SSR in node.js for the initial render of your game as an SPA and you are using a headless CMS for the data like directus) express-middleware-fetch - npm