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

@meldcrypto/react-native-sdk

v0.3.0

Published

React Native wrapper for the Meld SDK (iOS + Android) — embed a crypto on/off-ramp provider widget (Mercuryo card).

Readme

@meldcrypto/react-native-sdk

React Native wrapper for the Meld SDK — embed a crypto on/off-ramp provider's payment widget (Mercuryo card today) with one component. Supports iOS and Android, with the same JS API and event model on both. Wraps the native meldsdk-ios and meldsdk-android SDKs.

Install

npm install @meldcrypto/react-native-sdk

The wrapper autolinks. The native Meld SDK it depends on isn't an RN module, so it isn't autolinked — wire it per platform:

iOS

MeldSDK (the wrapper's pod dependency) resolves by name from CocoaPods trunk, so there's nothing to add to your Podfile. Just install with static frameworks (MeldSDK is a Swift pod):

cd ios && USE_FRAMEWORKS=static pod install

Android

Nothing to wire up beyond autolinking: the wrapper's Gradle module pulls in the native Android SDK (io.meld:meldsdk) from Maven Central, which is in the default repositories of new Android projects. minSdk 24+. The Android SDK declares the INTERNET and CAMERA permissions (camera is used for in-widget KYC); they merge into your app automatically.

The wrapper uses RN's legacy (Paper) view/module APIs, which run on the New Architecture via RN's interop layer — the default on RN 0.85. No extra configuration is needed; USE_FRAMEWORKS=static is required only because MeldSDK is a Swift pod.

Usage (identical on both platforms)

Your backend creates the order (your Meld API key never reaches the app); your app passes the response to <MeldWidget>.

import { Meld, MeldWidget } from '@meldcrypto/react-native-sdk';

Meld.configure('sandbox'); // or 'production'

<MeldWidget
  style={{ flex: 1 }}
  order={order}                                  // your backend's order JSON, passed through
  onReady={() => hideSpinner()}
  onPaymentSubmitted={() => showProcessing()}    // ⚠ UX hint — settlement is your webhook
  onStatusChange={(e) => { if (e.status === 'completed') showComplete(); }}
  onCancel={() => showRetryCTA()}
  onError={(e) => showError(e.message)}          // also fires on INVALID_ORDER / MOUNT_FAILED
/>

Optionally guard before rendering: if ((await Meld.capabilities(order)).embeddable) { … } (async on RN since it crosses the native bridge).

Events

| Event | Fires when | Do | |---|---|---| | onReady | Widget document loaded | Hide spinner | | onPaymentSubmitted | User finished the provider payment flow (UX hint only) | Show "processing" | | onStatusChange | Order status changed; e.status is pending | completed | failed | cancelled | React to status; completed = provider "order complete" (still not settlement) | | onCancel | User cancelled | Show retry CTA | | onError | Load failure, bad order, or terminal failed status | Show error; e.recoverable says retry vs. new order |

status is normalized across providers — code against it, not the raw provider string (in e.providerStatus). A terminal failed also fires onError, and a cancelled also fires onCancel. Every callback also receives the orderId.

Settlement — webhook, never the SDK

Neither onPaymentSubmitted nor onStatusChange with status === 'completed' is settlement — both are client-side UX signals. Mark the order paid only when your backend receives Meld's TRANSACTION_STATUS_CHANGED webhook. Show "processing", not "success", until then.

Example app

A complete, runnable demo for both platforms is in example/ — the same flow as the iOS, Android, and web demos (live quote → wallet → Buy → mounted widget, with a status banner and event log). See example/README.md to set up credentials and run it.

License

Proprietary. See LICENSE.