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

@vtex/ads-stories

v0.10.0

Published

VTEX Ads Stories web component

Readme

@vtex/ads-stories

VTEX Ads Stories web component. Framework-agnostic: works on any HTML5 page, including VTEX IO, FastStore and non-VTEX storefronts.

Work in progress. Currently requests the placement's Stories from the ad API, shows them in a carousel, whose cards open in a player at the bottom right, sends their impression, view and click events, and tells the store when a product is added to or removed from the cart.

npm

npm install @vtex/ads-stories

Register the element once, on the client:

import { defineVtexAdsStoryCarousel } from "@vtex/ads-stories";

defineVtexAdsStoryCarousel();
<vtex-ads-story-carousel
  publisher-id="your-publisher-id"
  session-id="the-store-session-id"
  placement="home_stories"
></vtex-ads-story-carousel>

CDN

The same build is available as a standalone script from unpkg and jsDelivr. It registers <vtex-ads-story-carousel> when it loads, so no JavaScript is needed in the page. Always pin an exact version: replace <version> below with a version published on npm.

<script
  src="https://unpkg.com/@vtex/ads-stories@<version>"
  integrity="sha384-<hash>"
  crossorigin="anonymous"
></script>

<vtex-ads-story-carousel
  publisher-id="your-publisher-id"
  session-id="the-store-session-id"
  placement="home_stories"
></vtex-ads-story-carousel>

Documentation

The full guide is on the VTEX Ads JS SDK documentation:

  • Quickstart: npm and CDN (integrity hash, Content-Security-Policy), server-side rendering, TypeScript and React.
  • Configuration: attributes, language and labels, CSS variables.
  • Layout and player: the carousel, the product and its cart stepper, the call to action, the player and video errors.
  • Product hydration: where prices and availability come from, and custom strategies.
  • Events: the add and remove from cart events for the store, and the ad events the element sends.

Contributing

To run the element locally or contribute a change, see CONTRIBUTING.md.