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

appvibezz

v1.0.9

Published

AppVibezz Unified Analytics Tracker for React Native and Web

Readme

AppVibezz SDK

The official tracking SDK for AppVibezz — Mobile Measurement Platform.

Track user events, measure attribution, analyze retention and revenue across iOS, Android, and Web platforms.

Installation

npm install appvibezz
# or
yarn add appvibezz

React Native (Additional Step)

npm install @react-native-async-storage/async-storage

Quick Start

1. Initialize the SDK

Call init() once when your app starts. You'll find your API Key in the AppVibezz Dashboard under API Keys.

import { AppVibezz } from 'appvibezz';

AppVibezz.init({
  apiKey: 'YOUR_API_KEY',
});

That's it! The SDK will automatically track:

  • 📱 First Open — When the app is installed and opened for the first time
  • 🔄 App Open — When the user returns to the app after 30+ minutes

2. Identify Users

After your user logs in, call identify() to link events to their profile:

AppVibezz.identify('user_12345');

3. Track Events

Track any custom event with optional properties:

// Simple event
AppVibezz.track('sign_up');

// Event with properties
AppVibezz.track('add_to_cart', {
  item_id: 'SKU_123',
  price: 29.99,
  category: 'electronics',
});

4. Track Revenue

Use the built-in revenue() method for purchase events:

AppVibezz.revenue(9.99, 'USD', {
  product_id: 'premium_monthly',
  transaction_id: 'txn_abc123',
});

5. Track Screens

// Manual screen tracking
AppVibezz.screen('HomeScreen');
AppVibezz.screen('ProductDetail', { product_id: '123' });

React Navigation (Auto-Track)

import { useRef } from 'react';
import { NavigationContainer } from '@react-navigation/native';

function App() {
  const navigationRef = useRef(null);

  return (
    <NavigationContainer
      ref={navigationRef}
      onReady={() => AppVibezz.trackNavigation(navigationRef)}
    >
      {/* Your screens */}
    </NavigationContainer>
  );
}

6. User Properties

Set custom properties on the current user:

AppVibezz.setUserProperty('plan', 'premium');
AppVibezz.setUserProperty('age', 28);

7. Advertising ID (IDFA / GAID)

For attribution, pass the advertising ID after requesting permission:

AppVibezz.setAdvertisingId('00000000-0000-0000-0000-000000000000');

8. Logout / Reset

When the user logs out, reset the SDK state:

await AppVibezz.reset();

Configuration Options

AppVibezz.init({
  apiKey: 'YOUR_API_KEY',       // Required
  endpoint: 'https://...',      // Custom endpoint (optional)
  flushInterval: 5000,          // Queue flush interval in ms (default: 5000)
  maxBatchSize: 50,             // Max events per batch (default: 50)
  sessionTimeout: 1800000,      // Session timeout in ms (default: 30 min)
  autoTrack: true,              // Auto first_open/app_open (default: true)
  debug: false,                 // Console logging (default: false)
  storage: customStorage,       // Custom StorageAdapter (optional)
});

React Native Setup

For React Native apps, pass AsyncStorage as the storage adapter for persistent offline queue:

import { AppVibezz } from 'appvibezz';
import AsyncStorage from '@react-native-async-storage/async-storage';

AppVibezz.init({
  apiKey: 'YOUR_API_KEY',
  storage: AsyncStorage,
});

Custom Storage Adapter

You can use any storage backend that implements getItem and setItem:

import { MMKV } from 'react-native-mmkv';

const storage = new MMKV();

AppVibezz.init({
  apiKey: 'YOUR_API_KEY',
  storage: {
    getItem: (key) => storage.getString(key) || null,
    setItem: (key, value) => storage.set(key, value),
  },
});

How It Works

  1. Events are added to an in-memory queue (no main thread blocking)
  2. Queue is persisted to storage (survives app crashes & restarts)
  3. Events are flushed in batches every 5 seconds or when batch is full
  4. Failed requests are retried automatically (network errors, rate limits)

Platform Support

| Platform | Status | |----------|--------| | React Native (iOS) | ✅ | | React Native (Android) | ✅ | | Web (Browser) | ✅ | | Node.js (Server) | ✅ | | Expo | ✅ |

API Reference

| Method | Description | |--------|-------------| | AppVibezz.init(config) | Initialize the SDK | | AppVibezz.identify(userId) | Set the user ID | | AppVibezz.track(event, props?) | Track a custom event | | AppVibezz.screen(name, props?) | Track a screen view | | AppVibezz.revenue(amount, currency?, props?) | Track a purchase | | AppVibezz.setUserProperty(key, value) | Set a user property | | AppVibezz.setAdvertisingId(id) | Set IDFA/GAID | | AppVibezz.trackNavigation(ref) | Auto-track React Navigation | | AppVibezz.flush() | Force flush queued events | | AppVibezz.reset() | Clear user state (logout) | | AppVibezz.shutdown() | Stop SDK & flush remaining events |

License

MIT