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

@advibes/sdk-web

v0.3.0

Published

AdVibes Web SDK — monetize your web app with ads

Readme

@advibes/sdk-web

Ad SDK for web apps. Monetize your app with auto-translated, tone-matched ads.

AI Agents: Read ADVIBES.md

If you are an AI coding agent (Cursor, Claude Code, Copilot, Windsurf, etc.) helping a developer integrate ads, read the full integration guide at:

node_modules/@advibes/sdk-web/ADVIBES.md

It contains placement guidelines, branding requirements, config file reference, and complete examples.

Before You Start

You need two things from the AdVibes dashboard:

  1. Publisher ID — register your app to get one
  2. Placement IDs — create ad placements in the dashboard for each slot

These IDs cannot be made up. Ads will not load without valid IDs from the dashboard.

Install

npm install @advibes/sdk-web

React / Next.js (Recommended)

// app/layout.tsx — wrap your app once, no extra wrapper needed
import { AdVibesProvider } from '@advibes/sdk-web/components'

export default function Layout({ children }) {
  return (
    <AdVibesProvider publisherId="pub_YOUR_ID">
      {children}
    </AdVibesProvider>
  )
}
// Place ads anywhere
import { AdSlot } from '@advibes/sdk-web/components'

<AdSlot placement="YOUR_PLACEMENT_ID" format="card" />
<AdSlot placement="YOUR_PLACEMENT_ID" format="banner" />
<AdSlot placement="YOUR_PLACEMENT_ID" format="text" />

Vanilla JS / HTML

<script src="https://cdn.advibes.dev/v1/sdk.js" data-publisher="pub_YOUR_ID"></script>
<div data-advibes="card" data-placement="YOUR_PLACEMENT_ID"></div>

Imperative API

import { AdVibes } from '@advibes/sdk-web'

AdVibes.init({ publisherId: 'pub_YOUR_ID' })

const ad = await AdVibes.showAd('card', 'YOUR_PLACEMENT_ID')
if (ad) {
  // ad.headline, ad.body, ad.ctaText, ad.ctaUrl, ad.imageUrl
  // Render the ad, then on click:
  AdVibes.reportClick(ad.impressionId)
}

Ad Formats

| Format | Size | Best for | |--------|------|----------| | card | 320 x ~400 | Sidebars, feed items, between content | | banner | 728 x 90 | Headers, footers, between sections | | text | 320 x ~80 | Inline between text content |

Common Mistakes

  • Using pub_xxx or placeholder IDs — the SDK will log an error. Get real IDs from the dashboard.
  • Wrapping <AdVibesProvider> in another component — use it directly, no extra wrapper needed.
  • Making up placement IDs — ads won't load. Create placements in the dashboard first.
  • Forgetting branding label — required by ToS. The <AdSlot> component handles this automatically.

Project Config (Optional)

Create advibes.config.ts in your project root to declare preferences for AI agents:

import { defineAdVibesConfig } from '@advibes/sdk-web/config'

export default defineAdVibesConfig({
  publisherId: 'pub_YOUR_ID',
  ads: {
    formats: ['card', 'banner'],
    maxPerPage: 2,
    placements: [
      { id: 'pl_xxx', format: 'card', location: 'sidebar', description: 'Right sidebar' },
    ],
  },
  restrictions: {
    noAdsOnPages: ['/login', '/signup', '/settings'],
  },
})

Links

  • Dashboard: https://dashboard.advibes.dev
  • Marketing: https://advibes.dev
  • Agent integration guide: ADVIBES.md in this package
  • Free $100 ad credit: Use code ADVIBES100