Free Infinite Craft-Style Alchemy Game — Single HTML File (Infinite Alchemy AI)
Infinite Alchemy AI: Infinite Craft-style element combining in one HTML file — offline recipe book works with no key; paste your own Gemini key and unknown combos get synthesized live by the model.
What it is
The hybrid part is the hook: paste your own Gemini API key into the top bar (it goes directly from your browser to Google — never to any middleman server, and it isn't stored) and any combination missing from the local book is synthesized live by gemini-2.5-flash into a new named element with its own emoji, which joins your permanent inventory. It's the cheapest possible demonstration of LLM-augmented game content: one fetch call, JSON out, new game object in.
Our review fixed one real recipe bug from the zero-shot generation: "Fire+Air" was defined twice, so the second definition silently overwrote Energy — killing the five recipe chains that depend on it (Portal, Storm, Life, Wizard, Robot) in offline mode. Plasma now comes from Energy+Air and the whole tree is reachable again.
Infinite Alchemy AI vs the usual way
Infinite Craft is a hosted site you can't self-host or extend. This is the same loop, offline-first, with the LLM as an optional bring-your-own-key bonus.
| Feature | Infinite Alchemy AI (single file) | Typical engine-based equivalent |
|---|---|---|
| Files to deploy | 1 HTML file | Framework bundle + assets + build output |
| External dependencies | 0 | Game engine (Phaser/Unity/…) + toolchain |
| Art & audio assets | None — Canvas drawing + synthesized sound | Sprite sheets, audio files |
| Mobile touch support | ✓ built in | Varies |
| Embed with an iframe | ✓ anywhere | Usually |
| Readable, remixable source | ✓ ~370 lines, MIT | Minified bundles |
Server requirements & dependencies
- Any modern browser — desktop or mobile. Nothing else.
- No build step, no server, no game engine, no external libraries.
- No image or audio assets: every sound is synthesized live with the Web Audio API.
- Embeds anywhere with a plain <iframe>.
How to install
2. Double-click index.html, or upload it to any static host (shared hosting, GitHub Pages, Netlify, an S3 bucket… anything that serves a file).
3. To embed it in an existing site: <iframe src="/games/index.html" width="860" height="620"></iframe>. That's the whole deployment story.
The prompt — build it yourself
Paste this into Gemini and you'll get this product. This is the actual spec that produced the code above.
Infinite Craft / Little Alchemy tarzında, tek bir HTML dosyasında çalışan 'Infinite Alchemy AI' adında hibrit bir simya oyunu geliştir. Sol panelde keşfedilen elementler listelensin, sağdaki Canvas çalışma alanında elementler sürükle-bırak ile üst üste getirildiğinde birleşsin. İçinde yerleşik çevrimdışı tarif sözlüğü ve prosedürel yedek mekanizma bulunsun; ayrıca üst bara opsiyonel Gemini API anahtarı girildiğinde gemini-2.5-flash API'sine istek atarak yeni elementleri dinamik JSON (isim ve emoji) olarak üretsin.
Verified before publishing: every file read line-by-line, UI strings localized to English for this showcase, and each game deployed and played on the live demo. Found and fixed a real zero-shot bug: a duplicate "Fire+Air" recipe key silently killed the Energy element and the five chains built on it in offline mode. Also confirmed the optional API key goes browser→Google directly and is never stored.
Reviews
Used Free Infinite Craft-Style Alchemy Game — Single HTML File (Infinite Alchemy AI)? A star rating takes two seconds and helps others.
More builds
License: MIT — free for personal and commercial use, no warranty. Software is provided as is; review the code before running it in production (it's short enough to actually read).