App / GPT-6.1 Sol 8 Oct 2026
Open in a new tab ↗

Firefly Meadow

0 Build on this Download
A 3d meadow with fireflies.

Prompt and process

# The one-file app prompt

Build me a small web app as ONE self-contained HTML file.

- Everything in one file: HTML, CSS and JavaScript. No build step and nothing to install.
- If you need a library, load it from a CDN with a script tag from a reputable public CDN such as cdnjs or jsDelivr.
- Fill the window, and work from a 360px-wide phone up to a large desktop screen.
- Support mouse, touch and keyboard where it makes sense.
- Save any useful preferences or state with localStorage, wrapped in try/catch so the app still works where storage is blocked.
- Follow the system light/dark setting where appropriate, but preserve the artistic intent of the scene.
- No sign-ins, no calls to private APIs, no tracking.
- Put a one-line "how to use" hint somewhere unobtrusive.
- It must run simply by opening the resulting HTML file in a modern browser.

## My idea: Firefly Meadow

Create an immersive, beautiful 3D nighttime meadow filled with fireflies.

This should feel less like a tech demo and more like discovering a small magical place.

The scene is a quiet forest clearing at night. The viewer is near ground level, surrounded by tall grass and subtle natural forms. Dark trees or foliage frame the clearing. There may be rocks, wildflowers, a small patch of water, distant hills, or other restrained environmental details if they improve the composition.

Hundreds of fireflies move through the space at different depths and heights. They should feel alive rather than like uniform particles: wandering, pausing, changing direction, clustering loosely, separating, and occasionally drifting near the viewer.

Their lights should glow warmly and illuminate or visually affect the darkness around them enough to create depth and atmosphere.

### The signature behavior

The fireflies should not simply blink randomly.

Over time, nearby fireflies should influence one another and gradually begin synchronizing their flashes. Local groups may fall into rhythm first, then waves of synchronization can spread through the clearing.

The result should sometimes produce beautiful pulses of light moving across the meadow, without becoming perfectly mechanical or losing the feeling of living creatures.

This emergent synchronization is a central part of the experience.

### Interaction

Make the environment subtly responsive.

- Moving the pointer or a finger through the scene should influence nearby fireflies in a natural way — attraction, curiosity, disturbance, or a combination.
- Clicking or tapping should create a visible but tasteful disturbance or pulse that causes nearby fireflies to scatter, react, or briefly change behavior.
- After being disturbed they should gradually return to their normal motion and synchronization.
- Camera movement should be gentle and intuitive. Use subtle pointer movement, drag, touch, keyboard controls, or a slow autonomous camera drift as appropriate.
- Avoid controls that make the experience feel like a conventional first-person game unless they genuinely improve it.

Interactions should be discoverable by simply playing with the scene.

### Atmosphere

Aim for a cinematic but restrained visual style.

Think:

- deep blue-black night
- soft moonlight
- warm golden-green firefly light
- subtle fog or atmospheric depth
- grass moving slightly in a breeze
- silhouettes fading into darkness
- occasional tiny environmental motion
- convincing depth and parallax
- smooth, slow movement punctuated by moments of coordinated light

If appropriate, use bloom, additive glow, fog, procedural geometry, shaders, particles, instancing, or other techniques to make it beautiful while keeping performance reasonable.

Do not depend on external image, model, texture, audio, or video assets. Generate the environment procedurally or with code.

### Composition and restraint

Prioritize:

1. atmosphere
2. visual composition
3. motion quality
4. believable firefly behavior
5. interaction
6. performance

over adding lots of features.

The opening view should already look deliberately composed, like a piece of interactive digital art.

Avoid dashboards, panels, debug information, score counters, menus, explanatory text, excessive sliders, or visible technical controls.

There should be no prominent UI.

The app should communicate primarily through the scene itself.

A strong implementation with fewer beautifully executed elements is preferable to a feature-heavy implementation.

### Performance

Keep the experience fluid on a normal recent laptop and usable on a modern phone.

Use efficient techniques where appropriate for large numbers of fireflies and grass.

Adapt gracefully if the device cannot comfortably render the maximum visual complexity rather than simply freezing or failing.

### Small touches

You may invent subtle details that strengthen the experience.

Examples could include:

- a rare firefly passing very close to the camera
- faint ripples if fireflies skim water
- grass bending slightly around a disturbance
- tiny motes visible only in moonlight
- distant synchronized flashes deeper in the forest
- subtle variation in firefly color, size, brightness, and behavior
- changing phases of collective synchronization

Use your judgment rather than trying to include every example.

### Overall goal

Make something that causes a person opening the file to spend a few seconds looking at it, then move their pointer or touch the screen, discover that the meadow is alive, and keep playing with it.

It should feel calm, slightly mysterious, organic, and magical.

The best result is not necessarily the most technically complicated one.

Make it memorable.

More from fomz

View all
Join Something new every day. Join the buffet