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

@peltier/react-native

v0.2.0

Published

Peltier React Native SDK — provider, headless flow hooks, and drop-in RN widgets (<DepositWidget>, <RequestWidget>, <SendWidget>, <StealthRequestWidget>).

Downloads

404

Readme

@peltier/react-native

npm license

Drop-in payment widgets for React Native — accept any ERC-20 on any chain and settle as USDC at your destination. Ships <DepositWidget>, <SendWidget>, <RequestWidget>, and <StealthRequestWidget>, plus the provider and headless hooks. Zero native-module dependencies — QR rendering and clipboard access are injected via props, so it works in Expo and bare RN alike.

npm install @peltier/react-native viem react-native-get-random-values

Quickstart

import 'react-native-get-random-values' // FIRST import in your app entry
import { PeltierProvider, DepositWidget } from '@peltier/react-native'
import QRCode from 'react-native-qrcode-svg'
import * as Clipboard from 'expo-clipboard'

<PeltierProvider apiUrl="https://api.peltier.dev" publishableKey="pk_live_…">
  <DepositWidget
    destinationAddress="0xYourAddress"
    destinationChainId={8453}
    renderQr={(address) => <QRCode value={address} size={200} />}
    onCopyAddress={(address) => Clipboard.setStringAsync(address)}
    onComplete={(id) => console.log('Done:', id)}
  />
</PeltierProvider>

publishableKey is required<PeltierProvider> throws at mount without a valid pk_test_… / pk_live_… key (a secret sk_ key is rejected outright; never ship it in the app). The key's prefix selects the environment (test → testnet, live → mainnet), and every session the widgets create is tagged with your merchant (GET /v1/requests + the dashboard's Requests page).

Widgets

| Widget | Flow | |---|---| | <DepositWidget> | one-time deposit from any chain/token | | <SendWidget> | send driven by any EIP-1193 provider (e.g. WalletConnect's RN provider), with fail-closed calldata verification — allowedRouters is required | | <RequestWidget> | request/receive — share a link or QR, watch it settle | | <StealthRequestWidget> | stealth-address request flow |

Building your own UI? Every widget's engine is a headless hook — useDepositSession, useSendFromWallet, useRequestSession, useStealthRequest — and the browser-safe @peltier/core surface (registerSession, watchSession, signing, stealth) is re-exported on the package root.

Server-only sk_ helpers (payment-session creation, webhook verification, the subscriptions REST client) are deliberately not exported here — they belong on your server, via @peltier/node.

Setup notes

  1. Crypto polyfill — import react-native-get-random-values first in your app entry; viem key generation needs crypto.getRandomValues. (Declared as an optional peerDependency, so installs stay warning-free either way.)
  2. Live updates — React Native has no EventSource; watchSession falls back to polling automatically. For true SSE pass one in: watchSession(url, id, cb, onErr, { eventSource: RNEventSource }) (e.g. from react-native-sse, also an optional peerDependency). Either way a network blip won't kill the watch: SSE reconnects with capped backoff, then degrades to polling.
  3. QR codes — bring your own renderer (react-native-qrcode-svg) via renderQr.

Test mode

Use a pk_test_ key and every flow routes to testnet counterparts automatically — Stripe-style key parity, no config flag.

Docs

Full documentation lives at peltier.dev/docs.

License

MIT