oneshotlm
Compare all models on this prompt →

Fireworks · grok-4.3

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

⛨ sandboxed Open in new tab ↗
transcript · 8 messages
user

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

assistant
thinking
The task is: "Build a single-page web app and write it ALL into one self-contained file named index.html in the current directory: CSS in a <style> tag, JS in a <script> tag, inline — do not create se...First, the task is to build a single-page web app in one index.html file with CSS in <style>, JS in <script>, no externals.

It must be full-screen canvas for fireworks: clicks launch shells that explode into gravity-affected, fading particle bursts.

I need to write the entire code in index.
bash {"command":"ls -la /workspace"}
toolResult

total 4 drwxrwxrwx 2 node node 64 Jul 22 17:45 . drwxr-xr-x 1 root root 4096 Jul 22 17:45 ..

assistant
thinking
The directory is empty. I'll create index.html with a self-contained fireworks display.
First, the user wants a fireworks display on a full-screen canvas. Key features: clicks launch shells that explode into gravity-affected, fading particle bursts. Everything self-contained in index.html.

I need to create the code for index.html with inline CSS and JS.

Make it full-screen: canvas width/height = window.inner , CSS to cover body.

Dark background for night sky.

JS:

- Event listener for resize to adjust canvas.

- Click event: launch shell from bottom, direction towards click point.

- Shell: moves up with gravity (vy += 0.1 or something each frame), explodes when reaches top or after time.
write /workspace/index.html (3824 bytes)
toolResult

Successfully wrote 3824 bytes to /workspace/index.html

assistant
thinking
The file has been created. Let me verify it exists.
bash {"command":"ls -la /workspace/index.html && wc -c /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 3824 Jul 22 17:45 /workspace/index.html 3824 /workspace/index.html

assistant
thinking
The file is complete, single HTML file, fully self-contained. No external resources used. Functional fireworks with gravity-affected particles, fading, click-to-launch, touches the requirements exactl...

✅ Created `/workspace/index.html` — a fully self-contained single-file fireworks display. - Full-screen canvas with dark night-sky fade trails - Click anywhere to launch a rocket shell - Shells explode into colorful, gravity-affected, fading particle bursts - Particles decelerate, shrink, and drift realistically - Auto-launches occasional shells for continuous display - Spacebar also launches a shell - Runs completely offline, zero network, zero external files

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelgrok-4.3
vendorxAI · Grok
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Fireworks auto-launch and explode into colorful gravity-fading particle bursts, click adds new shells; keys mostly don't add new launches but page keeps animating.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion5.6%
on click4.0%
on drag2.6%
on wheel2.2%
on enter + space5.9%
on arrow keys6.0%
on w/a/s/d5.0%
frame spread15.5 / 255
console errors0
js errors none

METRICS

runtime34.7s
tokens in4.2k
tokens out2.4k
cached4.8k
cost / run$0.0122