I’m working on a project to do local caching using localStorage I want it to work in both nodejs as well as in the browser I have a similar situation with my RallyAnalytics project where I use driverdan’s node-XMLHttpRequest as a drop-in replacement for the browser’s native XMLHttpRequest object