LivingKioskUse now
← All displays

Fireflies

The edge of a wood just after dusk, with fireflies drifting over the grass. Each one is an oscillator with its own natural rhythm, and every flash nudges the phase of the flies near it, so patches of the meadow drift into step and out again — nothing is scripted. Three painted tree lines with mist between them give it depth: far flies are small, dim and slow and pass behind the grass, near ones are bigger, brighter and quicker and pass in front of it.

Fireflies at dusk: an indigo sky with a rose band above the horizon and a pale moon, three layers of dark tree line with mist between them, and a scatter of warm gold fireflies glowing at different sizes and brightness above the grass.
DuskGold flies under a rose-and-lilac afterglow.
Fireflies at night: a near-black blue sky with faint stars and a bright full moon in a wide halo, dark tree lines, and green-glowing fireflies, a few bright and most faint, drifting above the meadow.
NightGreen lights under a full moon.

The synchrony is real

Natural rhythms run from 3.2 to 5.5 seconds, and each flash pulls the phase of nearby flies toward its own. Setting sync to 0 turns the coupling off and every fly keeps its own clock — a quick way to see what the pulling is doing.

If you self-host

Self-hosted, read-only container. Fireflies draws on a single 2D canvas — no WebGL, and no network request of any kind. The backdrop is painted once; each frame redraws only the grass and the lights, at a capped 30 frames a second.

What it wants

A count of flies, a colour — gold, green, or blue — and dusk or night. Scene scale comes from the screen’s shorter side, so the same URL works on a 16:9 panel, a portrait tablet, or a browser window.

Setup

Put Fireflies on a screen.

A browser is genuinely enough — the Mac app and Fully Kiosk below are conveniences, not requirements.

Any screen

nothing to install
  1. Open the display in whatever browser the screen already has.
  2. Go full screen: F11 on Windows and Linux, ⌃⌘F on macOS.
  3. Or give it a browser of its own, which is what a dedicated panel wants: chrome --kiosk <url> — on macOS, open -a "Google Chrome" --args --kiosk <url>.
  4. Turn off display sleep in the machine’s power settings and walk away.

Mac desktop

LivingKiosk app
  1. Get the app and its install steps at livingkiosk.com/mac. It isn’t notarized yet, so macOS asks you to approve it once.
  2. Menu bar → Library… and pick a display for each screen.
  3. Configure… on any screen for its reload schedule, dim, and saved configs.
See the Mac app →

Wall tablet

via Fully Kiosk
  1. On any Android tablet, install Fully Kiosk Browser.
  2. Settings → Web Content → Start URL: the display’s address.
  3. Under Device Management, keep the screen on and set a dim schedule so it isn’t glaring at 3am.
  4. Turn on Start on Boot so a power blip brings the display back by itself.
fully-kiosk.com →

Displays are ordinary web pages, so anything that can hold one open works: a Raspberry Pi on a monitor, a retired iPad, a Fire tablet, the browser built into a TV.

Configuration

URL parameters.

Everything below, plus a live preview and a URL builder that writes the link for you, is at fireflies.livingkiosk.com/setup.

ParameterDefaultMeaning
count70How many fireflies are in the meadow, 5–250. Rounded to a whole number.
sync0.5How strongly each flash pulls on nearby flies’ rhythm, 0–1. 0 turns it off.
huegoldgreen or blue. The colour of the light.
timedusknight. Dusk keeps a rose and lilac afterglow on the horizon; night is nearly black-blue with a full field of stars.
speed1A multiplier on drift, flash rhythm and grass, 0.2–3. Clamped, not rejected.
dim0Neutral darkening overlay, 0–0.8 (fleet-wide convention).
seed—Pins the trees, stars, grass, and each fly’s starting position and phase, so the same URL always begins the same way.

Fireflies is open source under the MIT licence. Run it yourself with one command. The source opens to the public soon.