← Back to Spend Elon Musk's Money

Spend Elon Musk's Money

A spend-it-all toy in the spirit of "Spend Bill Gates' Money," pointed at a $1 trillion pile. The catalog runs from a $6 coffee up to buying Twitter, funding Starship, and moving to Mars.

A receipt tracks everything you buy, and a footer shows how much interest the pile earned while you shopped. It runs entirely in your browser, with no account, no server, and no data leaving the page.

How to Play

Spend the pile however you like:

  1. Scroll the catalog from cheap to absurd.
  2. Tap + / or type an exact quantity to buy or sell any item.
  3. Watch the running balance and the receipt update as you go.

Try to empty the $1T pile, then read the receipt footer.

How It's Built

A small TypeScript toy bundled into static assets. No WASM, no server logic, no backend, so it runs entirely in the browser. I wrote up the build on my blog.

  • TypeScript - the catalog, spend state, and the pure functions that derive totals, receipt lines, and interest are typed and unit-tested with Vitest.
  • Vite - bundles the source into a small set of static HTML/JS/CSS files, served directly with no Node at runtime.
  • No backend - one quantity map is the source of truth, and the balance, receipt, and animations all derive from it in the browser.

Links