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

@thspian/circuul-react-native

v0.1.3

Published

Thspian's circuul app-install attribution client for React Native and Expo

Readme

@thspian/circuul-react-native

Circuul client for React Native and Expo. Call once on cold start to attribute an app install to a Thspian UGC creator and credit their CPA.


Before you install

  1. On thspian.com, create a UGC campaign with app install CPA enabled.
  2. Copy your campaign app token — it starts with cat_….
  3. Pass it to Circuul.init({ appToken: 'cat_…', platform: Platform.OS }).

Production API is built in. You do not need to pass apiBase in production.


Install

npm install @thspian/circuul-react-native @react-native-async-storage/async-storage

Expo

npx expo install @react-native-async-storage/async-storage

Usage

import { useEffect } from 'react';
import { Platform } from 'react-native';
import { Circuul } from '@thspian/circuul-react-native';

export default function App() {
  useEffect(() => {
    Circuul.init({
      appToken: 'cat_…',
      platform: Platform.OS,
    }).then((result) => console.log('[Circuul]', result));
  }, []);

  return /* your app */;
}

Dev / staging

Circuul.init({
  appToken: 'cat_…',
  env: 'dev',
  platform: Platform.OS,
});

Passing the creator code

Universal Links / App Links

const code = url.searchParams.get('ref') || url.searchParams.get('circuul_ref');
Circuul.init({ appToken: 'cat_…', platform: Platform.OS, code });

Play Install Referrer (Android)

Circuul.init({
  appToken: 'cat_…',
  platform: 'android',
  androidReferrer: referrerString,
});

Options

| Option | Required | Description | |--------|----------|-------------| | appToken | yes | Campaign token from Thspian (cat_…) | | platform | recommended | 'ios' or 'android' | | env | no | 'prod' (default) or 'dev' | | apiBase | no | Explicit override — wins over env | | code | no | Creator code from deep link | | androidReferrer | no | Play Install Referrer string | | clipboardCode | no | Fallback (iOS may prompt) | | idfv / gaid | no | Stronger dedupe |


Related

Create campaigns: thspian.com