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

@pacrypto55/privy-onramp

v1.1.0

Published

Privy on-ramp for Orderly DEXes. Lets a connected user buy crypto straight into their embedded wallet via Privy's funding flow. Adds itself as a row in the shared @pacrypto55/wallet-menu 'Privy Wallet' button.

Readme

@pacrypto55/privy-onramp

Privy on-ramp for Orderly Network DEXes. Lets a connected user buy crypto straight into their Privy embedded wallet ("Buy USDC" by default). Adds itself as a row in the shared @pacrypto55/wallet-menu "Privy Wallet" button — installing this plugin alone is enough, it registers the host automatically if it isn't already.

⚠️ Before you install: enable funding in the Privy Dashboard

This plugin calls Privy's own fundWallet(). Privy will refuse every call with Error: Wallet funding is not enabled unless your app's Privy account has a funding provider (MoonPay, Coinbase Onramp, ...) actually connected. This is a server-side setting on your Privy App ID, not something this plugin — or any client-side config — can turn on.

Fix it once, before testing:

  1. Go to the Privy Dashboard → your App → Configuration → Funding.
  2. Connect and enable at least one provider (e.g. MoonPay).
  3. If your app also restricts login/embedded-wallet origins, make sure the domain you're testing on is in the allowed list too (Configuration → Domains).

If you skip this, the plugin still installs and renders correctly — clicking "Buy USDC" will just show a toast explaining exactly this, instead of failing silently.

Install

npm install @pacrypto55/privy-onramp
# or
pnpm add @pacrypto55/privy-onramp
# or
yarn add @pacrypto55/privy-onramp

Peer dependencies: react, react-dom, @privy-io/react-auth, @orderly.network/plugin-core, @orderly.network/ui, and @pacrypto55/wallet-menu (all installed automatically alongside it).

Usage

import { registerPrivyOnrampPlugin } from "@pacrypto55/privy-onramp";

<OrderlyAppProvider
  plugins={[registerPrivyOnrampPlugin() /* , ...your other plugins */]}
  // ...
>
  {/* your app */}
</OrderlyAppProvider>;

That's it — no manual wiring needed. The "Privy Wallet" button appears in the top nav bar the first time any plugin that depends on it (this one, or @pacrypto55/privy-2fa) is registered.

With custom options

registerPrivyOnrampPlugin({
  label: "Buy USDC",              // row label
  fundWalletConfig: {              // passed straight through to Privy's fundWallet()
    asset: "USDC",
    amount: "10",
  },
})

API

registerPrivyOnrampPlugin(options?)

| Property | Type | Default | Description | |---|---|---|---| | label | string | "Buy USDC" | Row label shown in the Privy Wallet dropdown. | | fundWalletConfig | FundWalletConfig (from @privy-io/react-auth) | { asset: "USDC", amount: "10" } | Forwarded as-is to Privy's fundWallet(). |

Development

npm install
npm run dev         # tsup --watch
npm run build
npm run typecheck

License

MIT