-
-
Earn 52 browser-local badges for discoveries, experiments and monster encounters. No account required.
-
Explore 20 original patchwork monsters and choose two or three for your experiment.
-
A seven-slot Gloop hybrid: borrowed parts from seven owners change what it can sense, do and trigger.
-
A genuine live-AI choice from November 19: Hootle selects a flash after hearing the returned greeting, with evidence in the Trace.
-
Change the environment: the padded strip stops the stomp at Tick 2, interrupting the Workshop chain before its song.
-
Moonlit Marsh: borrowed night eyes reveal a flash through fog. Recorded genuine AI replies make the sequence repeatable.
-
Echo Cavern: recorded genuine AI replies show a greeting, returned echo and flash leading Chomp to approach. No new model call.
Inspiration
AI is easy to talk to and hard to understand. A reply appears, but the information available to the model, the choices it could make and the consequences of its decision can remain abstract.
As a solo developer, I wanted to turn those ideas into something people could build, play with and question. Monster Patch Lab makes a creature's abilities tangible: lend it different eyes, ears or a signature part, and you change what it can notice or do. Put that creature in a world with other monsters, give it a goal, and watch a sequence unfold.
The aim is a playful route into AI literacy, systems thinking and experimentation: make a prediction, change something, inspect the evidence and explain what happened.
What it does
Monster Patch Lab is a browser playground with 20 original patchwork monsters. Pick two or three for the stage and build hybrids across seven interchangeable part slots. A borrowed part can change a creature's senses, actions or built-in reactions. Parts can come from monsters that are not on stage.
The environments participate in the experiment. In the Storm Workshop, Rumble's stomp travels across a metal floor. Echo's borrowed ears let Zap hear it, a rain cloud makes rain, a borrowed gear heart repeats an action, and Gloop catches enough rain under a pocket lid to sing. Lay down the padded strip and the same stomp is stopped before it reaches Zap. In Moonlit Marsh, fog hides signals that night eyes can see. In Echo Cavern, a greeting returns as an echo unless a curtain absorbs it.
The AI Experiment Lab adds a real model to that world. The player chooses a goal and, in Free play, any of the 20 monsters as the AI actor. The model receives that monster's game state, the signals it actually noticed, its recent actions and its currently legal moves. It can make up to three decisions during a run, allowing later choices to respond to earlier events.
The November 19 live demonstration in Echo Cavern shows that feedback sequence: the model first chose to greet Chomp. Bubbles distracted Chomp, but an echo brought a greeting back. After hearing the reply, the model chose a flash; Chomp's rule then brought it over. The model's selected evidence pointed to the returned greeting.
Players can predict a move, pause, step through the run, explain the outcome with evidence cards, compare with Rules fallback, or pin choices and replay with a change. The Trace distinguishes model choices, recorded replies, rules, built-in reactions and fallback. It shows the selected evidence and observable consequences, rather than claiming to reveal the model's hidden reasoning. A result is credited to the AI actor's choice only when the Trace contains a causal path to it.
Three recorded live-AI examples reproduce genuine replies from the demonstration without making another request. They are clearly labeled as recordings; the model is not choosing again. Live AI is optional, and a labeled Rules fallback keeps the playground working when AI is off, unavailable or at a limit.
There is also a guided friendship story, 10 challenges and 52 browser-local badges. No account is needed. Keyboard and tap alternatives accompany dragging, sound is muted by default, and reduced motion is available.
How I built it
I used Kiro IDE to implement the product through milestone specifications, steering documents, task execution and focused reviews.
React, Vite and strict TypeScript provide the application. PixiJS draws the creatures, scenery and effects. A deterministic TypeScript simulation owns the senses, rules, signals and bounded Tick-by-Tick state changes. The AI chooses a move inside that simulation; it does not rewrite the world or execute arbitrary instructions.
The browser sends structured game values to an API Gateway HTTP API and AWS Lambda. The server calls OpenAI's Responses API using a strict output schema, and both server and client validate the reply. Credentials stay on the server. A DynamoDB ledger reserves each request's worst-case cost before it is sent. Reset invalidates pending decisions so a late response cannot change a new run.
The site is hosted on private S3 behind CloudFront. Terraform manages the AWS infrastructure. Vitest, fast-check and browser walkthroughs check simulation behavior, capability boundaries, saves, replay correctness and the API contract.
Challenges I ran into
The hardest design problem was making an explanation trustworthy. A goal happening after an AI move does not prove that move caused it. An independent review exposed a case where an arrival-triggered greeting was incorrectly credited to the AI. The fix follows the causal path through signals, rules and reactions, so a chosen wait or an unrelated arrival cannot take the credit.
Reproducibility was another challenge. Live model replies can vary or time out. The solution keeps live experiments separate from exact recorded replies and deterministic fallback, with visible source labels. The recorded demonstration preserves its original timeout instead of pretending every move succeeded through AI.
Development-credit consumption was also a significant constraint. In my experience, Kiro's token/credit cost was much higher than other AI development tools I've used. That made focused milestones, clear acceptance criteria and avoiding redundant review or test cycles especially important. This concerns development credits; the application's runtime AI spending is budgeted separately.
Accomplishments I'm proud of
- Interchangeable parts change the flow of an interaction, rather than only changing appearance.
- The model can take part in a sequence of decisions while remaining inside visible game boundaries.
- The same world supports building, prediction, replay, comparison and explanation.
- The shipped follow-up passed 1,590 tests, and its live deployment passed 86 browser checks with no game API requests or page errors.
- A public, captioned showcase demonstrates an actual hybrid build, environmental intervention, badges and genuine model choices in under three minutes.
What I learned
An AI feature becomes more interesting when people can influence its information and available actions, then inspect the consequences. It also becomes easier to discuss responsibly when a programmed rule, a model choice and an unavailable-model fallback are visibly different.
Specs helped define invariants such as capability gating and stale-response rejection. Visual walkthroughs caught discrepancies that simulation checks could miss. The strongest explanations connect the displayed creatures, the underlying state and the Trace.
What's next
The next priority is observing first-time players and improving any confusing transitions from watching an example to creating an experiment. I also want to complete real-device Safari, Firefox and screen-reader checks. The learning activities offer opportunities to explore AI and communication; learning outcomes have not yet been measured.
Built With
- amazon-api-gateway
- amazon-cloudfront
- amazon-dynamodb
- amazon-route53
- amazon-web-services
- aws-certificate-manager
- aws-lambda
- aws-systems-manager
- fast-check
- kiro
- openai
- pixijs
- playwright
- react
- terraform
- typescript
- vite
- vitest
- zod