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

@voidpulse/react-native

v2.2.0

Published

React Native (Expo) SDK for Voidpulse event ingest and experiment assignment.

Readme

@voidpulse/react-native

React Native (Expo) SDK for Voidpulse event ingest and experiment assignment.

Company setup (multi-project)

Each Voidpulse project has its own ingest API key. Ship one key per app/project (Dungeon prod, Dungeon sandbox, Garden, …). The wrong key loads another project's experiment config.

| Setting | Value | | --------------- | ----------------------------------------------------------------------------------------- | | hostUrl | API origin only: https://api.voidpulse.ai (prod) or http://localhost:4001 (local API) | | apiKey | Project key from Voidpulse → Project settings (vp_…) | | Config endpoint | GET {hostUrl}/experiments/config with header x-api-key: {apiKey} |

Do not pass the Voidpulse web origin, a trailing slash, or /trpc. The SDK normalizes those to the API origin.

import { Voidpulse } from "@voidpulse/react-native";

const voidpulse = new Voidpulse({
  apiKey: DUNGEON_VOIDPULSE_API_KEY,
  hostUrl: "https://api.voidpulse.ai",
  skipInitialization: true, // common on Android; then call init()
  experimentsEnabled: true,
});

await voidpulse.init();
// init() loads the disk cache then fetches /experiments/config once.
// Foreground AppState transitions force another ETag-cached check.

const variant = voidpulse.getExperimentVariant("checkout-redesign", {
  fallbackVariant: "control",
});

getExperimentVariant never performs network I/O. Call prefetchExperiments(true) before a render-sensitive flow when you need a forced refresh. Disable assignment with experimentsEnabled: false without turning off event tracking.

If you see silence

Misconfig fails soft. The SDK never crashes the host app, never rejects new Voidpulse(...) / init(), and never turns a bad key or URL into an uncaught throw. You get console.warn once per issue kind, plus an optional debugBeacon callback for structured events.

| Symptom / warn kind | What to fix | | ------------------- | --------------------------------------------------------------------------------------------------------------------- | | Missing apiKey | Pass the project key from Voidpulse → Project settings (vp_…). | | Wrong hostUrl | Use https://api.voidpulse.ai (or local http://localhost:4001). Do not use the web app origin, /trpc, or a path. | | CORS / fetch block | Rare on native. Still confirm hostUrl is the API origin and the device can reach it. | | HTTP 401 | Wrong or rotated project key. | | HTTP 413 | Batch too large. Flush more often or shrink event properties. | | Network silence | No HTTP response. Check connectivity and hostUrl. Events requeue when possible. | | Batch drop | Non-retryable HTTP error. That flush's events will not retry. |

const voidpulse = new Voidpulse({
  apiKey: DUNGEON_VOIDPULSE_API_KEY,
  hostUrl: "https://api.voidpulse.ai",
  skipInitialization: true,
  debugBeacon: (event) => {
    // Optional: forward structured misconfig events to your own debug sink.
    console.debug("voidpulse-debug", event);
  },
});

Recoverable errors

The SDK keeps its queues in memory, so a failed kv-store write or remove only costs persistence across a restart and never rejects or throws. Pass onError to see those failures, for example in Sentry:

const voidpulse = new Voidpulse({
  apiKey: DUNGEON_VOIDPULSE_API_KEY,
  hostUrl: "https://api.voidpulse.ai",
  onError: (error, { operation, key }) => {
    Sentry.captureException(error, { level: "warning", tags: { voidpulse_operation: operation, voidpulse_key: key } });
  },
});

onError must not throw; the SDK ignores errors from it.

Local verification

pnpm --filter @voidpulse/react-native test
pnpm --filter @voidpulse/react-native typecheck