Chamomile is a bare-minimum clone of the Snap!Cloud server for testing out Snap! forks. It supports listing projects, simulating authentication and password changes, and logging out.
Chamomile does not verify credentials or store any data, so it's not a suitable production replacement for the real Snap!Cloud.
Install dependencies: pip3 install uvicorn blacksheep
Start up Chamomile: python3 main.py
Host your Snap! fork on localhost with port 8080 using HTTP (if these exact requirements are not met, then Chamomile might reject your client):
python3 -m http.server 8080
In your JavaScript console (found under DevTools on Chromium), run this code snippet to tell Snap! where to find the Chamomile server:
Cloud.prototype.determineCloudDomain = function (){return "http://localhost:8000"}; // Patch the cloud domain logic to always use our self-hosted server.
world.children[0].cloud = new Cloud(); // Reconfigure Snap! using our patched Cloud client.