npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@boostbossai/lumi-extension

v0.3.0

Published

Lumi for Browser Extension App runtime SDK — Boost Boss's ad placements for Chrome MV3 extensions.

Readme

@boostbossai/lumi-extension

Runtime SDK for Lumi for Browser Extension App — Boost Boss's ad placements for Chrome Manifest V3 extensions.

You shouldn't install this directly. Use the installer:

cd /path/to/your/chrome-extension
npx @boostbossai/install-extension <publisherId>

The installer adds this package to your extension and wires up the four runtime entry points (background, popup, sidepanel, newtab).

Scope (v0)

  • Chrome MV3 only. Firefox/Safari extension manifests differ; we'll add them once the Chrome flow is proven.
  • Zero deps. Vanilla browser-extension JS.
  • ES modules in src/. The dist/ directory holds the files referenced by popup/sidepanel/newtab HTML — for v0 they re-export from src/. A real build step (esbuild/rollup) will replace these with bundled single-file outputs later.
  • A classic (non-module) service-worker build lives at dist/background.classic.js for publishers whose manifest doesn't set background.type === "module".

Entry points

| File | Purpose | | --------------------------------- | ------------------------------------------------------------ | | src/background.js | LumiBackground.init({ publisherId }) — service worker init | | src/popup.js | Popup card renderer (auto-mount on DOMContentLoaded) | | src/sidepanel.js | Side panel slot renderer (auto-mount on DOMContentLoaded) | | src/newtab.js | New-tab takeover renderer (auto-mount on DOMContentLoaded) | | src/citation.js | LumiCitation.mount(opts) — single-line sponsored citation | | src/chip.js | LumiChip.mount(opts) — tappable quick-reply pill | | src/card.js | LumiCard.mount(opts) — inline sponsored card | | src/loading.js | LumiLoading.observe(opts) — loading-state ad | | src/onboarding.js | LumiOnboarding.mount(opts) — one-time install hero card | | src/shared.js | fetchAd, fireImpression, constants | | src/index.js | Package root re-exports | | dist/background.classic.js | Non-module service worker build |

Placements (8/8 auto-mounted in v0.2.0)

Every placement auto-mounts inside popup.html, sidepanel.html, and newtab.html — the install CLI wires the surface scripts and the runtime does the rest. Per Publisher Agreement §4.1 auto-placement is the default. Publishers suppress individual placements with <div data-lumi-disable="<placement>"></div> or pin one to an exact spot with <div data-lumi-slot="<placement>"></div>.

| Placement | Module | Surface | Auto-mount strategy | | ------------- | ---------------------------- | -------------------------------- | -------------------------------- | | popup | src/popup.js | popup.html | Auto-mount on DOMContentLoaded | | sidepanel | src/sidepanel.js | sidepanel.html | Auto-mount on DOMContentLoaded | | newtab | src/newtab.js | newtab.html | Auto-mount on DOMContentLoaded | | citation | src/citation.js | under AI response | Heuristic: detected AI container → safe-default fallback | | chip | src/chip.js | suggested-action row | Heuristic: detected suggestion container → safe-default | | card | src/card.js | feed flow | Heuristic: detected feed container → safe-default | | loading | src/loading.js | busy state | Heuristic: detected spinner/aria-busy → safe-default | | onboarding | src/onboarding.js | popup post-install | Fires once via chrome.storage.local seen flag |

The 5 secondary placements (citation, chip, card, loading, onboarding) are driven by src/auto-mount.js, which runs alongside the popup/sidepanel/newtab renderers, observes the DOM with MutationObserver for SPA-style late mounts, and refuses to inject into risky containers (code blocks, form inputs, system messages, navigation chrome).

Loading-state detection

LumiLoading.observe() watches the passed container for:

  • [aria-busy="true"]
  • elements matching .spinner or .loading
  • elements with [data-lumi-slot="loading"] — optional explicit pin

Spinner-like elements that stay visible for >1.5s are replaced with a sponsored card. Explicit data-lumi-slot="loading" markers mount immediately (no delay). One ad per observe() call — re-arm by calling again.

Network

All four renderers call https://boostboss.ai/api/lumi-fetch with:

{
  "publisher_id": "...",
  "placement": "popup-card | sidepanel-slot | newtab-takeover | ...",
  "surface": "browser-extension-app",
  "context": { "url": "<active tab URL or null>" },
  "session_id": "<uuid>",
  "sdk": "lumi-extension",
  "sdk_version": "0.1.0"
}

Impressions are reported to /api/lumi-impression using the impression_token returned with each ad.

Manifest V3 compliance

  • No remote code loading (fetch for JSON only, never script source).
  • No eval or new Function.
  • No inline scripts in popup/sidepanel/newtab HTML — the install CLI inserts <script type="module" src="./node_modules/@boostbossai/lumi-extension/dist/<surface>.js">.
  • Session state lives in chrome.storage.session (service workers don't have localStorage).

License

MIT