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

vwo-segment-analytics-next

v0.1.0

Published

Forward VWO experiment impressions to Segment using @segment/analytics-next.

Readme

VWO Segment (analytics-next) integration

This plugin allows you to send VWO experiment data to Segment using the modern @segment/analytics-next browser SDK.

It listens to VWO experiment events in the browser and automatically forwards them to Segment as tracking events.

Package installation

# via npm
npm install vwo-segment-analytics-next

# also install Segment's browser SDK
npm install @segment/analytics-next

Usage

This plugin works with Segment’s @segment/analytics-next library.

Initialize VWOSegment with your Segment Analytics instance:

import { AnalyticsBrowser } from '@segment/analytics-next';
import VWOSegment from 'vwo-segment-analytics-next';

// In your app bootstrap file
const [analytics] = await AnalyticsBrowser.load({
  writeKey: 'YOUR_SEGMENT_WRITE_KEY',
});

// Optional: identify the user (for example, session-based)
analytics.identify('USER_OR_SESSION_ID');

// Initialize plugin
const vwoSegment = new VWOSegment({ analytics });
vwoSegment.init();

Ensure that the code is rendered and executed exclusively on the client side, as this plugin is designed for browser/client-side functionality only.

Requirements

  • Segment initialized using @segment/analytics-next
  • VWO SmartCode installed and exposing the VWO command queue
  • Browser environment (no Node.js/server-side support)

How it works

This plugin follows the VWO SmartCode pattern:

(function () {
  window.VWO = window.VWO || [];
  VWO.push([
    'onVariationApplied',
    function (data) {
      // ...
    },
  ]);
})();

It:

  • Hooks into VWO’s onVariationApplied command
  • Extracts account, experiment, and variation details from _vwo_acc_id and _vwo_exp
  • Reads the VWO UUID from the _vwo_uuid cookie (when available)
  • Sends a track event via @segment/analytics-next
  • Prevents duplicate firing per experiment/variation in a single page view

Peer dependency

"peerDependencies": {
  "@segment/analytics-next": "^1.0.0"
}

Code of Conduct

Code of Conduct

Contributing

Contributing

License

Apache License, Version 2.0

Copyright 2026 Wingify Software Pvt. Ltd.