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

@tiledev/sdk-analytics-meta

v0.1.0

Published

Meta (Facebook) App Events for React Native — a provider adapter for @tiledev/sdk-analytics-core backed by react-native-fbsdk-next, plus an Expo config plugin that wires the native Facebook SDK (App Id + Client Token). Reports the catalogue's e-commerce e

Readme

@tiledev/sdk-analytics-meta

Meta (Facebook) App Events for React Native / Expo apps — a provider adapter for @tiledev/sdk-analytics-core backed by react-native-fbsdk-next, plus an Expo config plugin that wires the native Facebook SDK.

It reports the catalogue's canonical e-commerce events (DefaultEvents — addToCart, purchase, initiateCheckout, productView, search, …) to Meta as Facebook conversion events, which Meta's ad platform uses for install/purchase attribution and campaign optimisation. This is a measurement integration (App Events), not ad buying and not the Conversions API.

Install

npm i @tiledev/sdk-analytics-meta react-native-fbsdk-next

Peers: @tiledev/sdk-analytics-core, react, react-native, and (native only) react-native-fbsdk-next.

1. Native setup (Expo config plugin)

Add the plugin to app.json. It writes the Facebook keys into Info.plist / strings.xml / AndroidManifest. Credentials come from the plugin props or from extra.integrations.metaAds (fb_appId, fb_clientToken) — the same place the Apptile dashboard/pipeline stores them. With no credentials the native build is left untouched.

{
  "expo": {
    "plugins": ["@tiledev/sdk-analytics-meta"],
    "extra": {
      "integrations": {
        "metaAds": { "fb_appId": "", "fb_clientToken": "" }
      }
    }
  }
}

Then npx expo prebuild (or run a dev/EAS build). The native Facebook SDK auto-initialises from the baked keys.

2. Register the adapter

import { createMetaAnalyticsAdapter } from "@tiledev/sdk-analytics-meta";

analyticsService.use([
  // …other adapters…
  createMetaAnalyticsAdapter({
    appId: META.fbAppId,          // optional — baked natively by the plugin
    clientToken: META.fbClientToken,
    // iOS: hand us the ATT result so advertiser tracking matches the user's choice
    getTrackingAuthorized: async () =>
      (await getTrackingPermissionsAsync()).status === "granted",
  }),
]);

The adapter no-ops on web and when the native SDK is absent, so it is safe to register unconditionally.

Event mapping

| Canonical event | Facebook event | | --- | --- | | productView / selectProduct / viewCart | ViewedContent | | collectionView | ViewedContent (product_group) | | search | Searched | | addToCart | AddedToCart | | addToWishlist | AddedToWishlist | | initiateCheckout / checkout | InitiatedCheckout | | purchase / itemPurchased | Purchase (logPurchase) | | signup / customerRegistered | CompleteRegistration |

Everything else is skipped (no Meta standard counterpart).

iOS App Tracking Transparency

Advertiser tracking must respect ATT. The host owns the ATT prompt (e.g. expo-tracking-transparency) and passes the result via getTrackingAuthorized; the adapter flips setAdvertiserTrackingEnabled to match on init.