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

@pagepact/interactive-ad-sdk

v1.0.3

Published

A framework-agnostic interactive advertisement web component with Firebase integration.

Readme

Interactive Ad SDK

A modern, framework-agnostic interactive advertisement web component. It allows you to display beautiful banner ads while enabling users to engage by liking, disliking, viewing, and commenting.

Features

  • Framework Agnostic: Built with native Web Components, meaning it works in React, Vue, Angular, or Vanilla JS.
  • Zero Setup: Connects automatically to the Ad Network's database out of the box. No backend configuration needed from the webmaster.
  • Modern Aesthetics: Premium, responsive default styling using Shadow DOM encapsulation.
  • Engaging UI: Includes an engagement bar and comment section out-of-the-box.

Installation

npm install @pagepact/interactive-ad-sdk

Usage

Simply import the SDK into your project's main entry file (e.g. main.js, App.jsx, or _app.js). This registers the <interactive-ad> tag.

import '@pagepact/interactive-ad-sdk';

Then, you can use the <interactive-ad> HTML tag anywhere in your application!

<interactive-ad 
  ad-id="campaign-summer-sale" 
  title="Summer Cloud Hosting Sale" 
  description="Get 50% off all our premium cloud servers for a limited time."
  image-url="https://example.com/banner.jpg"
  link-url="https://example.com/sale"
></interactive-ad>

Attributes

  • ad-id (Required): A unique string identifier for this advertisement.
  • variant: The standard IAB ad size layout. Can be rectangle (300x250, default), leaderboard (728x90), or skyscraper (160x600).

Wrapping 3rd-Party Ads (like Google AdSense)

Instead of passing static attributes, you drop your ad creative (like a Google Ads <ins> and <script> tag, or an <img> tag) directly inside the <interactive-ad> tag.

<interactive-ad variant="rectangle" ad-id="my-campaign-123">
   <!-- Your Ad Network Code goes here -->
   <ins class="adsbygoogle"
        style="display:inline-block;width:300px;height:250px"
        data-ad-client="ca-pub-12345"
        data-ad-slot="67890"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>
</interactive-ad>

License

MIT