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

@puul/react-native-sdk

v1.5.0

Published

Official React Native SDK for the Puul Partner API — prediction markets for mobile apps

Readme

@puul/react-native-sdk

Official React Native SDK for the Puul Partner API — add prediction markets to your mobile app.

Installation

npm install @puul/react-native-sdk react-native-webview

Quick Start — API Client

import { PuulPartner } from '@puul/react-native-sdk';

const puul = new PuulPartner({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
});

// List live markets
const markets = await puul.markets.list();

// Place a prediction
const prediction = await puul.predictions.place({
  marketId: markets[0].id,
  outcomeId: markets[0].outcomes[0].id,
  stakeAmount: 100000,
  stakeCurrency: 'NGN',
  idempotencyKey: 'unique-key-001',
});

Quick Start — Drop-in UI (PuulConnect)

For zero-UI-work integration, use the PuulConnect component:

import { PuulConnect } from '@puul/react-native-sdk';

function PredictionScreen({ navigation }) {
  return (
    <PuulConnect
      partnerKey="your-client-id"
      marketId="optional-market-uuid"
      theme="dark"
      onPredictionPlaced={(result) => {
        console.log('Prediction placed:', result.prediction);
        navigation.goBack();
      }}
      onClose={() => navigation.goBack()}
    />
  );
}

The PuulConnect component opens a hosted WebView where users can:

  1. Browse available markets
  2. Select an outcome
  3. Enter stake amount
  4. Place a prediction

The result is communicated back via the onPredictionPlaced callback.

API Reference

puul.sessions

| Method | Description | |---|---| | createLinkToken(params) | Create a link token for user account linking | | create(linkToken) | Exchange a link token for a user session |

puul.markets

| Method | Description | |---|---| | list(countries?) | List all live markets |

puul.predictions

| Method | Description | |---|---| | createQuote(params) | Get a binding quote | | place(params) | Place a prediction | | get(predictionId) | Get prediction details | | list(options?) | List predictions |

puul.wallet

| Method | Description | |---|---| | getBalance() | Get user wallet balance | | getOmnibusBalance() | Get partner omnibus balance | | getDepositAccount() | Get deposit account details | | deposit(params) | Deposit funds | | withdraw(params) | Withdraw from omnibus to bank/crypto |

Auto-Settlement: If your payout_method is configured (via the admin dashboard), revenue share is automatically paid out after each market settlement.

PuulConnect Props

| Prop | Type | Required | Description | |---|---|---|---| | partnerKey | string | ✅ | Partner client ID | | marketId | string | | Pre-select a specific market | | theme | 'dark' \| 'light' | | UI theme (default: dark) | | onPredictionPlaced | (result) => void | | Called when prediction is placed | | onClose | () => void | | Called when user closes | | onError | (error) => void | | Called on error | | style | ViewStyle | | Container style |

Error Handling

import { PuulError } from '@puul/react-native-sdk';

try {
  await puul.predictions.place(params);
} catch (error) {
  if (error instanceof PuulError) {
    console.error(error.code);       // 'INSUFFICIENT_BALANCE'
    console.error(error.statusCode); // 400
    console.error(error.retryable);  // false
  }
}

Links