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

@open-infra/telemetry-mobile

v0.2.0

Published

React Native safe explicit-fetch tracing with OpenInfra lifecycle, consent, privacy, and bounded OTLP export.

Readme

@open-infra/telemetry-mobile

An explicit-fetch tracing runtime for Expo and React Native. It uses OpenInfra's lifecycle, consent controller, privacy policy, and final OTLP export boundary. It does not load browser DOM instrumentation or Node server instrumentation, or register a global provider.

import { createMobileTelemetry } from '@open-infra/telemetry-mobile';

const telemetry = createMobileTelemetry({
  serviceName: 'mobile-app',
  endpoint: 'https://telemetry.example.com',
  allowedOrigins: ['https://api.example.com'],
});
await telemetry.start();
await telemetry.setConsent('granted'); // After the application's consent decision.
telemetry.recordLifecycle('mobile.startup');
await telemetry.fetch('https://api.example.com/orders');
await telemetry.forceFlush();
await telemetry.shutdown();

Collection is disabled until consent is granted. Request bodies and query-string values are excluded. Trace headers are sent only to explicitly allowed origins; baggage is never injected. Queues and exporter timeouts are bounded. Credentials in public collector URLs are rejected. Each runtime has a one-shot lifecycle; construct a new instance after shutdown.

Version 0.2 adds opt-in logs and metrics: pass logs: true and/or metrics: true to use the same collector base with /v1/logs and /v1/metrics. Call runtime.logger?.info(...), runtime.telemetryMetrics?.counter(...) or .histogram(...) after startup. Signals share consent/redaction and final export filtering; logs have a 512-record queue, and metrics have bounded instrument/cardinality budgets. Logs/metrics remain off by default for compatibility.

Use instrumentMobileAppState(runtime, AppState) with React Native's AppState to collect deduplicated active/inactive/background changes and flush in the background. Call the returned unsubscribe function during application cleanup. Call runtime.recordScreen('/orders/[id]') from the navigation framework's route-change callback; pass a route template rather than actual user IDs. No React Native runtime dependency is loaded by the SDK.

Native crash collection and device profiling are not implemented. AppState bindings and JavaScript exports do not establish native device qualification.