# 3D Firefly Terrariums

> Turn a thick glass miniature, scatter glowing fireflies and open its brass lid. Actual particles leave through the neck and return before it seals. A moonlit cabin, forest and real local lights in one offline HTML.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/firefly-hollow

## What you get

Bring a jar, habitat and optional palette. The Skill returns a downloadable Skill, interactive demos and example videos.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/firefly-hollow (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/firefly-hollow create <your glass miniature> with actual particle escape/return, local lighting and touch controls
```

## How it works

1. **Fill the Moonlit Jar prompt** Firefly Hollow fills its prompt with node scripts/fill-prompt.mjs --slots assets/prompts/examples/moonlit-jar.json --out prompt.md, then node scripts/new-project.mjs --out my-hollow and npm ci. The agent edits src/habitat.json within the validated layout. Structural changes update simulation, geometry and verification together. Build in a generated project, never in the packaged source folder.
2. **Open the jar** A forest cabin sits in thick glass on a moonlit desk. Drag the jar to turn it, tap the glass for a local scatter and glow, and tap or drag the brass lid sideways to unscrew it. A seeded fixed 60 Hz integrator flies 48 fireflies out through the real neck, and a limited set of point lights follows the active ones. Close recalls them before sealing.
3. **Build and verify the escape** npm run build:single writes the single HTML file with English and Simplified Chinese controls, and npm run shoot -- --file dist-single/index.html runs the checks in references/verification.md. Node 22.4 or newer is required, and a missing Chrome stops browser verification. The release verified portal crossing, the embed and a render error below 3e-7, meaning drawn positions match the simulated ones.

## FAQ

### What can I do inside Firefly Hollow?

Firefly Hollow lets you turn the jar, tap its glass, unscrew the lid and watch fireflies escape and return. The controls expose cabin and desk lights, daylight, population, glow, palette, slow motion, pause, reset view and restart. Right-drag orbits, the wheel zooms, and Cinema hides the interface until you press its exit button or Escape.

### Is Firefly Hollow a real firefly simulation?

No. Firefly Hollow is a kinematic miniature, not a biological or fluid simulation. The particles follow a seeded integrator for containment, separation and portal crossing, and the rendered instances use those same positions. Population edits add or remove particles immediately, and Restart restores the authored seed.

### Does Firefly Hollow cost anything to run?

No. Firefly Hollow needs no credentials, paid calls or uploads, and the Skill itself calls no model. A coding agent may use its own authorized model to edit the project. At runtime no models, fonts, audio files or network assets load; the jar's transmission and room environment are procedural.

### Does Firefly Hollow have sound?

Firefly Hollow plays only optional short synthesized tones after a gesture. It has no recorded ambience or speech, and no storage, condensation, smoke or moth subsystem. Browser state is temporary. Reduced motion starts the scene paused, and slow motion changes simulation time rather than playback speed.

### Does Firefly Hollow work with touch?

Yes. Firefly Hollow supports mouse, keyboard and touch in both languages, with two fingers for zoom and pan on touch screens. Headless frame rates in the reports do not establish real-device performance, listening quality or human acceptance, so check on your own hardware.

## Examples

- Firefly Hollow interactive miniature (scene)
- Amber fireflies (scene)
- Moonlit Jar (video)
- Amber fireflies (video)
