About

The Crab is an experiment in Slopcore.

I've been exposed to Slopcore this week: surprisingly good AI-generated music with AI-generated videos. I'm not sure whether Slopcore has to have satirically meta AI themes; if so, The Crab fails on that.

But I thought I'd see what I could do. I chose not to use an AI video model because I didn't want to pay for it.

I started by asking Claude to write lyrics and structure for a song based on a short story I'd previously made with AI.

This took a bit of back-and-forth, because I wanted it to be "inspired by" the story, not a retelling of it, and Claude needed a bit of convincing about that.

I gave Suno (free tier) those lyrics and asked it for an upbeat Eurovision euro-pop song. Suno gave me two candidates from its basic models, and extracts using its premium models. I picked my favourite of the free ones.

The giant crab's googly eyes over the night-time stage.

Then I gave Claude Code the audio and lyrics, and asked what it would need in terms of skills or tools, to create me a video in browser JavaScript. It said, nothing, it had all it needed.

Claude started by building a web page in which I could play back the song and manually mark the start of phrases. I did a fairly poor job of marking the phrases, so I asked Claude whether it could grab some tools and analyse the audio itself. It could, with some Python libraries.

While it was doing that, which took about 20 minutes...

First I rambled at Claude in voice mode about what ought to happen in the video. The outcome of this is in the git repo. I gave it some guidance about the paper puppet aesthetic, and asked it to, in separate agents, create a singer character with a demo page, and scenery with a demo page.

Claude Opus massively overdelivered here. In one shot it made the singer you now see, complete with all the pose controls and animations. And the other agent did the same with the scenery, including the day to night feature, the setting sun and rising moon, everything.

Worrying about token usage, I asked for five crowd members, to be reused many times. And then I had somewhere to be, so I gave Claude Opus the goal of completing the video. Then I went to a school Christmas fair for two hours.

When I came back, it was still working on it. I saw in the log that it was worried about drop-shadow effects causing slow rendering. So I typed in that it was OK to perform slowly if it could have a render-to-video mode where it goes frame-by-frame and writes an MP4. It adopted this very quickly and built itself a record-to-video mode which it could consume from Node.js.

That gave me good-enough video. The only real fault was those identical crowd members. And I had tons of tokens left.

So I asked it to build a mix-n-match crowd member builder, a demo page for that, then to populate the crowd with randomised members. It didn't take long.

Turning it into this site took a few minutes.

Thrilling, or terrifying...