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

@boostengine/analytics

v1.2.0

Published

Enterprise Analytics Engine — KPIs, Conversion Funnels, Revenue Tracking, Pixel Tracker (Meta/GA4/GTM/Clarity) & AI Agent Toolkit for Next.js, Vite, React, and Node.js.

Readme

@boostengine/analytics 📊

npm version npm downloads license Next.js Ready Multi-Pixel

Universal eCommerce analytics and pixel tracker for Next.js, React, and Vite. Fires unified events to Meta Pixel (Facebook), Google Analytics 4 (GA4), Google Tag Manager (GTM), and Microsoft Clarity with WebView error shielding.

Prevents Instagram / Facebook in-app browser script crashes. Zero manual window.fbq or window.gtag boilerplate.


📸 Unified Event Tracking Flow

               Customer Clicks: [ Add to Cart - ₹1,499 ]
                                   │
                                   ▼
  ┌─────────────────────────────────────────────────────────────────┐
  │                     @boostengine/analytics                      │
  ├─────────────────────────────────────────────────────────────────┤
  │ trackAddToCart({ id: 'hoodie_01', price: 1499, currency: 'INR' })│
  └───────────────┬─────────────────┬─────────────────┬─────────────┘
                  │                 │                 │
   ┌──────────────▼────────┐ ┌──────▼─────────┐ ┌─────▼──────────┐
   │ Meta Pixel (fbq)      │ │ GA4 / GTM      │ │ MS Clarity     │
   ├───────────────────────┤ ├────────────────┤ ├────────────────┤
   │ fbq('track',          │ │ gtag('event',  │ │ Session tag &  │
   │   'AddToCart', {...}) │ │ 'add_to_cart') │ │ funnel marked  │
   └───────────────────────┘ └────────────────┘ └────────────────┘

🌟 Key Highlights

  • ⚡ 1-Click Multi-Pixel Setup: Inject Meta Pixel, GA4, GTM, and Microsoft Clarity tracking tags with a single <BoostAnalyticsProvider /> component.
  • 🛡️ In-App Browser Shielding: Prevents iOS & Android Instagram / Facebook WebViews from throwing unhandled script exceptions.
  • 🛒 E-commerce Standard Events: Pre-built helpers for trackPageView, trackViewContent, trackAddToCart, trackInitiateCheckout, and trackPurchase.
  • ⚛️ Universal Framework Support: Works seamlessly in Next.js 13/14/15 App Router, Next.js Pages Router, and Vite + React.

📦 Installation

# npm
npm install @boostengine/analytics

# pnpm
pnpm add @boostengine/analytics

# yarn
yarn add @boostengine/analytics

🚀 Quickstart Guide

1. Root Provider Setup (app/layout.tsx)

import { BoostAnalyticsProvider } from '@boostengine/analytics';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <head>
        <BoostAnalyticsProvider
          metaPixelId={process.env.NEXT_PUBLIC_META_PIXEL_ID}
          ga4MeasurementId={process.env.NEXT_PUBLIC_GA4_ID}
          gtmId={process.env.NEXT_PUBLIC_GTM_ID}
          clarityId={process.env.NEXT_PUBLIC_CLARITY_ID}
        />
      </head>
      <body>{children}</body>
    </html>
  );
}

2. Triggering Events Anywhere in Your Store

'use client';

import { useAnalytics } from '@boostengine/analytics';

export default function ProductBuyButton({ product }: any) {
  const { trackAddToCart, trackPurchase } = useAnalytics();

  const handleAdd = () => {
    trackAddToCart({
      content_ids: [product.id],
      content_name: product.title,
      currency: 'INR',
      value: product.price,
    });
  };

  return <button onClick={handleAdd}>Add to Bag</button>;
}

MIT © Rishabh GehlotRepository