The following instructions will guide you in setting up your own server to host N64 Wasm with cloud save states. Or if you have experience with Docker you can set it up as a Container using the included Dockerfile in the docker\ folder.
wwwroot\roms\dist\ folder into the wwwroot\ folderroms\ folderromlist.js file with the roms you copiedsettings.js to this:
var N64WASMSETTINGS = {
CLOUDSAVEURL: "api",
SHOWADVANCED: false,
SHOWOPTIONS: false
}
app.js
const PASSWORD = "mypassword";
npm installnpm run starthttp://localhost:5500

There is also a PHP implementation contributed by @kimboslice99 which you can view here README