Infinite Factory

Play Infinite Factory →

Infinite Factory is a crafting and automation game where the recipe book is written by an AI. You start with humble basics — think sticks and stones — and combine any two items on the crafting grid. Instead of checking a fixed recipe list, the game asks a language model what those two things should make, so the tech tree grows in directions nobody planned, including me. Two players can take completely different routes through the game and end up with inventories that barely overlap.

From crafting to automation

Discovering a recipe by hand is only half the game. Once you know a combination works, you can put it on rails: place generators on the factory floor to produce base items, and machines to run your known recipes automatically. The factory keeps producing while you experiment, so the loop becomes: explore weird combinations by hand, automate the ones that matter, and use the output to reach items you couldn't afford to make manually. Drag-and-drop everything — items, machines, and an unceremonious trash can for the experiments that didn't pan out.

The weekly race

Every week the game announces a Weekly Goal: the AI looks at the current state of the tech tree and generates a target item that's deliberately several steps beyond anything players have built. The first players to craft it land on the leaderboard for that week's event. It's the part of the game I'm most interested in watching, because the goal item is new every time — there's no wiki to look up and no established route, just everyone reasoning about what chain of AI-generated recipes might plausibly get there before the timer runs out.

Accounts and syncing

A free account keeps your inventory, discovered recipes, and factory synced in the cloud, and is how the game tracks your place in weekly events. The backend runs on Supabase — database, auth, and realtime updates for the shared parts of the world — with recipe and goal generation handled by Google's Gemini model through serverless edge functions. The front end is React with a drag-and-drop toolkit and a state store that keeps the factory simulation ticking smoothly.

Why I built it

Crafting games usually die when players exhaust the content. I wanted to see what happens when the content can't be exhausted — when the recipe space is effectively infinite and the challenge shifts from "find the recipes the developer hid" to "reason about what an AI is likely to say sticks and lightning make." The weekly goal turns that open-endedness into a competition with real stakes and a fresh puzzle every week.

Play it here: Infinite Factory. Questions, feedback, or a great story about a cursed recipe chain? Contact me.