# I shipped a generative artwork at MoMA in five days. Here's the engineering.

> Source: <https://dev.to/ameliawb/i-shipped-a-generative-artwork-at-moma-in-five-days-heres-the-engineering-13na>
> Published: 2026-12-06 22:27:36+00:00

**Recommendation:** Validate model-chosen IDs against your real dataset and replace silent sample-data fallbacks with soft failures to true results, logging which stage failed.
More in the playbook "Verifying model output": <https://wpnews.pro/playbooks/output-verification>

Last week I spent five days at the Museum of Modern Art for the MoMA × Anthropic Creative Sprint. The brief was two words: *Create Connections*. I was paired with an artist I had never met, Samar Younes, and we were given the MoMA Collection API, Claude, and a deadline.

We shipped **Kin Garden**. It is live at [kingarden.art](https://kingarden.art) and the code is [on GitHub](https://github.com/Ameliawb/MoMAxAnthropic).

On Friday we pitched it in the Celeste Bartos Theater, in MoMA's Cullman Education and Research Building. Twenty-four teams, three minutes each, one shared laptop, and a panel of four judges drawn from senior staff at MoMA and MoMA PS1. Three projects were honored: Judge's Pick, Vision & Innovation, and Craft & Execution. Kin Garden was not one of them. It was an extraordinary afternoon to be part of, and the piece is live, public and still taking visitors.

I'm an engineer and an artist. This post is about the engineering.

You name someone: a grandmother, a friend, a cat, a city. You pick the words for what they bring. They assemble on screen as a creature built from washers, lenses, springs and beads. You drag them across a field and it blooms behind them.

Then a lens opens. Your kin go through it into MoMA's collection, and each one comes back with a real artwork chosen for you and a few lines written in their voice. You plant a seed, and it joins a community garden that every later visitor's kin can wander.

Samar built the world: the beings, the materials, the palette. I built the system that makes it run.

`requestAnimationFrame` loop.
I chose this on purpose. In a five-day sprint, the cost of a toolchain is paid every time you deploy. With no build step, a push to `main` was live in about a minute, so I could change the piece while standing next to the person reacting to it. We went from v4.5 to v6.0 in two days that way.

A generative piece inside a museum has one way to fail badly: inventing an artwork. So the model is never asked what exists. The pipeline is:

``` js
const free = list.filter((a) => !picked.has(a.id));
const artwork =
  free.find((a) => a.id === String(r.artworkId)) || // the model's pick, if it is real
  free.find((a) => a.image) ||                      // otherwise a real work with a picture
  free[0] || list[0] || null;
if (artwork) picked.add(artwork.id);
```

The model is creative where creativity is wanted, in the voice, and has no authority where it is not, in the catalogue. The same block guarantees that no two kin bring back the same work.

On day four, artworks started coming back wrong: the same three works, two with no picture. The image pipeline was fine. The real fault was a design mistake of mine. When the request to Claude failed, the client quietly fell back to built-in sample works and presented them as if the kin had found them.

A silent fallback that looks like success is worse than an error. I replaced it with a pipeline where every stage fails soft to something *true*:

``` js
const themes = await themesP.catch((e) => {
  trouble.push("themes: " + e.message);
  return { themes: [], searches: {} };   // no search words: fall through to works on view
});
```

If the poem fails, the kin still bring real works. If the search fails, each kin brings a real work currently on view. The client retries once. And I added a `?test=1` path that runs a canned visit and reports which stage had trouble, so the next failure is diagnosed in one request and not by guesswork.

While I was in there I fixed a second problem: search words were derived from a fixed set of character types, so results clustered around the same titles. They now come from who each kin is (their name, what kind of kin they are, how they are to you), with images preferred and results interleaved across search terms.

The community garden is shared and public, so I decided early what it would never hold. A seed stores themes, the kinds of kin that carried it, and the artworks. It never stores a name. That is enforced in the function that writes the seed, not promised in a README.

I built this pairing with Claude Code, from a browser, with no local environment. I set the architecture, made the calls on what to cut, reviewed what shipped, and ran a preview branch for every risky change before it reached `main`. On the last morning Samar handed me a prioritized list of sixteen changes; the ones marked essential were live before we pitched that afternoon.

What that gave us was range. In one week the same person could tune a particle system, restructure an API pipeline, cut a soundtrack, and rewrite the first screen as a cut-and-paste word game because a tester found the form confusing.

I'm Amelia Winger-Bearskin. I build systems where language models, real data and human meaning have to hold together under a deadline, and I can take one from a blank file to a public launch. If your team is working on applied AI, creative tools or developer experience, I'd like to hear what you're building.

Kin Garden was made with Samar Younes for the MoMA × Anthropic Creative Sprint. Artwork data and images come from The Museum of Modern Art, New York. The project is a sprint entry and is not endorsed by MoMA.

**Try it:** [kingarden.art](https://kingarden.art) · **Code:** [github.com/Ameliawb/MoMAxAnthropic](https://github.com/Ameliawb/MoMAxAnthropic)
