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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@power-gaming/promotion-widget

v0.2.3

Published

The **PowerGaming Promotion Widget** is a dynamic overlay solution that seamlessly displays promotional content within gaming environments. Designed for easy integration into third-party websites, the widget can be configured to render specifically within

Readme

PowerGaming Promotion Widget Integration

The PowerGaming Promotion Widget is a dynamic overlay solution that seamlessly displays promotional content within gaming environments. Designed for easy integration into third-party websites, the widget can be configured to render specifically within predefined containers, ensuring optimal placement and user experience. A real-time socket connection maintains up-to-date promotion information, allowing for instant updates without requiring page refreshes.


Installation

npm install @power-gaming/promotion-widget

Usage

1. Add a Root Container

In your HTML, create a container element where the widget will be mounted:

<div id="power-gaming-widget"></div>

This element's ID will be used as the rootContainerId.


2. Inject the Widget

import { injectWidget } from '@power-gaming/promotion-widget';

injectWidget({
  rootContainerId: 'power-gaming-widget',
  containerId: 'game-frame',
  casino: {
    accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    lobbyUrl: "https://lobby.powergaming.be/promotion"
  }
});

3. Eject the Widget (optionally)

Ejecting the widget is not directly necessary because it's handled by the websocket.

import { ejectWidget } from '@power-gaming/promotion-widget';

// supply it with the rootContainerId
ejectWidget('power-gaming-widget');

Options: PowerGamingWidgetOptions

| Option | Type | Required | Description | |-------------------|----------|----------|--------------------------------------------------------------------------------------------------------------------------| | rootContainerId | string | Yes | The ID of the container where the widget will be rendered | | containerId | string | No | Optional container boundary. Defaults to document.body if not provided | | casino | object | Yes | The casino object contains the accessToken and lobby to connect to the promotion lobby | | accessToken | string | Yes | The generated accessToken that is coming from the integration-api-client in order to authenticate the third-party player | | lobbyUrl | string | Yes | The access url to the promotion lobby returned by the integration-api-client |


Support

Need help reach out to the PowerGaming team or open an issue.