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/wallet-menu

v1.1.2

Published

Shared 'Privy Wallet' menu host for Orderly DEXes. Adds one dropdown next to the account widget that other Privy-feature plugins (on-ramp, 2FA, ...) register themselves into, so installing any combination of them still shows exactly one button.

Readme

@pacrypto55/wallet-menu

Shared host for the "Privy Wallet" dropdown button used by @pacrypto55/privy-onramp and @pacrypto55/privy-2fa on Orderly Network DEXes.

You normally don't need to install this directly — both feature plugins depend on it and register it automatically. It exists as a separate package so the button renders exactly once no matter which combination of feature plugins is installed, instead of each one shipping its own competing button.

Why this exists

Orderly's plugin system lets any number of plugins target the same UI slot, each wrapping the previous one (an "onion" chain). If privy-onramp and privy-2fa each rendered their own top-level button, installing both would show two. Instead, they each add a row into this package's single dropdown:

  • This package renders the "Privy Wallet" button and an empty dropdown.
  • Each feature plugin (privy-onramp, privy-2fa) injects one row into that dropdown via registerWalletMenuItem().
  • The button only appears once a wallet is connected, and only if at least it's registered — installing zero feature plugins means nothing renders at all.

Both feature plugins call this package's registerWalletMenuPlugin() internally as part of their own registration, so installing just one of them is enough. If more than one thing ends up registering the host (e.g. you install both privy-onramp and privy-2fa, or you also register it explicitly yourself), only the first-mounted button instance actually renders — the rest self-suppress, so you never see duplicates.

Install

You only need this directly if you're building your own feature plugin that should add a row to the same menu.

npm install @pacrypto55/wallet-menu

Peer dependencies: react, react-dom, @privy-io/react-auth, @orderly.network/plugin-core, @orderly.network/ui, @orderly.network/ui-scaffold.

Usage

As a DEX operator

Nothing to do — just install @pacrypto55/privy-onramp and/or @pacrypto55/privy-2fa and register them. This package comes along automatically.

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

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

As a feature-plugin author

import { registerWalletMenuItem, registerWalletMenuPlugin } from "@pacrypto55/wallet-menu";
import type { PluginRegistrationFn } from "@orderly.network/plugin-core";

function MyRow({ closeMenu }: { closeMenu: () => void }) {
  return <DropdownMenuItem onSelect={() => { closeMenu(); /* ... */ }}>My feature</DropdownMenuItem>;
}

export function registerMyPlugin(): PluginRegistrationFn {
  return (SDK) => {
    registerWalletMenuPlugin()(SDK); // defensive: ensures the host button exists
    SDK.registerPlugin({
      id: "my-plugin",
      name: "My Plugin",
      interceptors: [registerWalletMenuItem(MyRow)],
    });
  };
}

API

registerWalletMenuPlugin(options?)

| Property | Type | Default | Description | |---|---|---|---| | label | string | "Privy Wallet" | Text on the trigger button. | | width | number | 220 | Dropdown panel width in px. |

registerWalletMenuItem(Item)

Registers a WalletMenuItemProps -> ReactNode component as a row in the dropdown. WalletMenuItemProps is { closeMenu: () => void }.

Development

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

License

MIT