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

@attryio/sdk-core

v0.1.6

Published

Shared Attry SDK engine for mobile app analytics, attribution, deep links, deferred deep links, and revenue events.

Readme

@attryio/sdk-core

Shared JavaScript engine for Attry, a mobile app analytics and attribution platform for campaign analytics, app user analytics, deep links, deferred deep links, and revenue events.

Most mobile apps should not install this package directly. Use one of the platform SDKs instead:

@attryio/sdk-core is the transport, queue, storage, event normalization, revenue normalization, and deep link resolution layer used by those platform SDKs. It is useful when you are building a custom Attry integration, a new platform SDK, or a server/runtime adapter.

Links

Install

npm install @attryio/sdk-core

Again: customer apps normally install @attryio/react-native or @attryio/capacitor. Core has no native lifecycle hooks, no native storage by default, and no platform-specific install attribution collection on its own.

Basic usage

import { Attry } from "@attryio/sdk-core";

const attry = await new Attry({
  appId: "457064853",
  apiKey: "attry_live_...",
  platform: "ios"
}).init();

await attry.track("flashcards_generated", {
  properties: {
    deckId: "deck_123",
    cardCount: 18
  }
});

Purchase intent and revenue

Use initiatePurchase when the user starts a checkout, subscription, or paywall purchase flow.

await attry.initiatePurchase({
  properties: {
    productId: "pro_monthly",
    placement: "paywall"
  }
});

Use purchase when money was actually captured or a paid conversion happened. purchase must include value or amountMinor plus currency.

await attry.purchase({
  value: 31.42,
  currency: "USD",
  productId: "pro_monthly",
  transactionId: "txn_123",
  store: "app_store"
});

Attry stores revenue as stable minor-unit fields, so campaign revenue is not guessed from arbitrary custom properties.

Standard events

Attry accepts custom event names, but these standard names are reserved for dashboard reporting:

| Event | Sent by | Purpose | | --- | --- | --- | | install | Platform SDK | First SDK install for the current app installation. | | open | Platform SDK | App opened or became active. | | session_started | Platform SDK | A new app usage session started. | | session_ended | Platform SDK | A session ended after backgrounding or timeout. | | app_foreground | Platform SDK | App returned to the foreground. | | app_background | Platform SDK | App moved to the background. | | deep_link_opened | Platform SDK | App opened from a deep link, universal link, or app link. | | initiate_purchase | App | User started a purchase or subscription flow. | | purchase | App | Paid conversion or purchase revenue. Requires revenue. |

Everything else can be sent as a custom event with track("your_event_name", { properties }).

What core provides

  • Event queueing and batch delivery to https://api.attry.io/v1/events/batch.
  • Stable installation and anonymous ID generation using the configured storage adapter.
  • track, identify, initiatePurchase, purchase, resolveInstall, resolveDeepLink, and submitAppleAdsToken.
  • Revenue validation for purchase.
  • URL parsing helpers for Attry links.
  • Storage and transport interfaces for platform SDKs.

Need help?

Email [email protected] or open the Attry dashboard.