It was a normal evening. My eyes were open, but for a second I saw a ladybug that wasn't really there. 🐞

Curious, I looked it up. What does a ladybug actually do? It hunts. It eats aphids, the tiny insects that slowly eat a plant from the inside. Gardeners love ladybugs because they clean up without poison.

And I thought: that's exactly what I want in my code. A little bug that hunts the other bugs.

The name

I'm Italian, so I searched how to say "coccinella" in English. Ladybug. My game engine is called BeeEngine, so the ladybug became the bee's little sister: BeeLadybug. 🐝🐞

What a ladybug eats in software

In a garden it eats aphids. On a web page it hunts:

  • broken layouts
  • CSS you can't understand
  • boxes bigger than they look
  • elements hiding behind other elements

The classic hunt usually starts like this:

* { outline: 1px solid red; } 

It works, but it paints the whole page red and tells you nothing about sizes, margins or padding. I wanted the ladybug to land on one element at a time and tell me what's going on there, while I move the mouse.

The first divorce

BeeLadybug was born inside BeeEngine, as a small debug overlay on the canvas: hitboxes, FPS, slow motion, freeze. Very useful for my games.

Then I thought: why only for my games? A ladybug doesn't stay on one leaf. So it left the engine and started living on any web page.

The second divorce

It grew again, and split in two:

  • the universal inspector, a browser extension that works on any page
  • the library on npm, with adapters you plug into your own code

For example, this watches DOM mutations and counts them in a time window:

import { BeeLadybugCore, AntAdapter } from 'bee-ladybug'; const bee = new BeeLadybugCore(); const ant = new AntAdapter(bee, { root: document.body, threshold: 30, windowMs: 1000 }); ant.attach(); 

The ant counts every change. When too many arrive too fast, the ladybug tells you.

A whole garden of bugs

Once I had a ladybug, I asked myself: what do the other insects do?

An ant never stops. It counts, carries, notices every small change around the nest. So the AntAdapter watches DOM mutations and counts them.

A spider waits in its web and feels every vibration. It doesn't chase, it notices what's slow and heavy getting caught. So the SpiderAdapter listens for long tasks and slow resources.

I did the research on the insects myself, and I pushed for these adapters even when the AI I was working with kept suggesting something else. Each insect does one small job, and together they keep the garden clean. 🐜🕷️🐞

Where it lives today

  • Chrome Web Store
  • Firefox Add-ons
  • npm (bee-ladybug)
  • WordPress plugin, waiting for review

GitHub logo antonioprosperi2-svg / BeeLadybug-universal

Lightweight, zero-dependency HUD & telemetry overlay for web apps, game engines, and Python backends. Includes WebSocket bridge and custom AI assistant integration.

BeeLadybug

Chrome Web Store View sample report types npm download licenza Socket Badge size Snyk

BeeEngine Logo

Storico completo, dalla versione più recente alla più vecchia: CHANGELOG.md

Universal telemetry and visual inspection overlay.

BeeLadybug is not a Canvas widget. It is a small open-source debugger core that accepts raw packets from any source — Canvas 2D games, DOM pages headless bots, Python processes, AI pipelines — and renders them in one dark console.

Il Core non sa cosa sta monitorando. Riceve solo dati grezzi.

Versione attuale: 0.6.15 (package.json e BEE_LADYBUG_VERSION).

Perché questa struttura

Il file storico BeeLadybug era accoppiato a un engine di gioco (entità, hitbox, ctx.drawOverlay). Quello non scala a un sito HTML o a un modello Python. Per questo il progetto riparte da zero con due strati:

Strato Responsabilità
src/core/ Orologio fittizio, buffer, grafici, overlay cyberpunk
src/adapters/ Traduttori. Convertono un mondo specifico in sendData()

L'overlay non è disegnato sul Canvas. È un pannello HTML in Shadow DOM funziona sopra un gioco,…

Thank you

This article exists because of a question from @nyaomaru at the Necoz OSS potluck: "what inspired you to create it?" Now you know. A ladybug that wasn't there. 😸💚

What's the strangest place an idea of yours came from? 🐝