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-apptile

v0.4.2

Published

Apptile-Analytics adapter for TilePacket apps. Implements the @tiledev/sdk-analytics-core AnalyticsAdapter and merges two platform providers into one: Segment tracking (segmentAnalytics) and the Apptile backend notification analytics (apptileNotificationA

Readme

@tiledev/sdk-analytics-apptile

Apptile-Analytics adapter for the @tiledev/sdk-analytics-core contract. This one adapter merges two platform providers:

  1. Segment — ported from apptile-core segmentAnalytics/ (the writeKey tracking client; native via @segment/analytics-react-native, no-op on web).
  2. Apptile backend notification analytics — ported from apptile-core apptileNotificationAnalytics/ (every event is POSTed to Apptile's events-api analytics + notification routes; runs on native and web). See also ApptileAnalytics.ts (handleEvent, which fired apptileNotificationAnalytics.sendEvent for every event) and api/AnalyticsAPI.ts.
npm install @tiledev/sdk-analytics-apptile @tiledev/sdk-analytics-core

Required peer: @segment/analytics-react-native (native Segment leg; a no-op on web). The Apptile events-api leg POSTs via the global fetch and needs no HTTP dependency. No keys are baked — pass options.writeKey (the platform's APPTILE_ANALYTICS_SEGMENT_KEY) and the Apptile app/endpoint config at runtime.

Adapter mapping (name: 'apptile')

| AnalyticsAdapter method | Segment leg | Apptile events-api leg | | --- | --- | --- | | init | createClient({ writeKey }) (+ identify(userId) if known) | — | | track(event, props) | track(event, transform(props)) | POST analytics route + notification route | | screen(name, props) | screen(name, props) | POST analytics route + notification route | | identify(userId, traits) | identify(userId, traits) | — | | setUserProperties(props) | identify(undefined, props) | — | | reset() | reset() | — |

  • Analytics route (always): POST {analyticsUrl} with { eventType, ...properties }. Default analyticsUrl = https://events-api.apptile.io/analytics.
  • Notification route (only when appId + oneSignalAppId + a resolved OneSignal user id are present): POST {eventsUrl} with { eventType, appId, oneSignalUserId, oneSignalAppId, deviceId, payload }. Default eventsUrl = https://events-api.apptile.io/event.
  • login / signup payloads are transformed to { method, customerId } for Segment (ported).

Options

createApptileAnalyticsAdapter({
  // Segment
  writeKey: SEGMENT_WRITE_KEY,          // omit → Segment leg disabled
  // Apptile events-api
  appId: APPTILE_APP_ID,
  oneSignalAppId: ONESIGNAL_APPID,
  getOneSignalUserId,                    // from @tiledev/sdk-analytics-onesignal
  getDeviceId: () => deviceId,
  // analyticsUrl / eventsUrl override the defaults; enableNotificationAnalytics: false disables the leg
});

Wire into the theme's AnalyticsService

import { analytics } from '@/core/services/analytics'; // the theme AnalyticsService singleton
import { createApptileAnalyticsAdapter } from '@tiledev/sdk-analytics-apptile';
import { createFirebaseAnalyticsAdapter } from '@tiledev/sdk-analytics-firebase';

// Register every enabled provider. Each adapter owns its own track/identify/screen/... logic;
// AnalyticsService just loops over the registered adapters.
analytics.use([
  createApptileAnalyticsAdapter({ writeKey: SEGMENT_WRITE_KEY, appId: APPTILE_APP_ID, oneSignalAppId, getOneSignalUserId }),
  createFirebaseAnalyticsAdapter({ /* config via options */ }),
  // clevertap / appsflyer / facebook / klaviyo / moengage / onesignal / apple-att
]);
// <AnalyticsProvider> already uses the `analytics` singleton — nothing else to wire

Development

npm run build   # clean + tsc
npm run lint    # tsc --noEmit