Search projects, hackathons, sponsors and tech

    ← All projects

    I'm The Mayor

    Fun mayor simulator for developers to unwind and escape doom scrolling during Claude sessions.

    Demo

    About

    Ever thought "If I was him ,would've done this better" or "Capitalism is bad / "This place should've been governed by communists"? Time to put the money where the mouth is , cause you will be the mayor of the City and make your in between deep prompting time to something fun. I made this project especially for developers like me who get bored and doom scrolls like hell instead of using your brain to do something fun and entertaining Made to work like a Claude code sidebar , fun simulation game| Powered by ENSv2 ,Privy and Graph ( Subgraphs)

    How it's made

    Vanilla JS, Canvas 2D, zero npm packages in the browser, ~25 files on one window.MM global. State is a 48×48 grid plus thirty scalars, fully deterministic. smoke.js runs 500 game-days against a stub DOM — 225 checks, no browser, no network. The chain layer is a separate esbuild bundle loaded beside the game, never inside it. Pull the network out and it's the same game. ENS (ENSv2, Sepolia) is load-bearing. CityOracle.push() is the only path onto the chain and requires the write role on mayor.cityhall.eth — no name, no write. The office expires with the term, is non-transferable (an office can't be sold; a district deed can), and is revocable by the recall the sim already triggers. Nine districts each deploy their own registry. verify-gate.js proves it in 8 assertions, including a stranger's push reverting with NotTheMayor. Privy gets you in with email OTP, no seed phrase — and its ES256 token plus public JWKS became the auth for cloud saves. The Graph indexes nine ERC-4626 vaults and the oracle; the manifest is generated from the deployment so it can't drift.