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

@bananapus/nana-sdk-connect

v0.5.6

Published

Sign in to a Juicebox app with a passkey account from Juicebox Center or an external wallet

Downloads

1,925

Readme

@bananapus/nana-sdk-connect

Two ways into a Juicebox app: a passkey account powered by Juicebox Center, or an external wallet.

  • @bananapus/nana-sdk-connect/core: createConnectController(options) (headless, no React or wagmi), passkeyOption({ wallet, connected }), and for the app's /center/callback page deliverCenterCallback(url, { window }) then completeCenterCallback(wallet, url). The passkey account opens Center in a popup and the page stays; the callback page hands its URL back to the page, which finishes the exchange and runs connected. A blocked popup falls back to a full-page redirect, where the callback page completes the exchange itself. With passkeyOption({ frame: true }) Center opens in a frame the modal shows instead (JBConnectModal renders it, sized by the page inside); the callback page hands its URL up to the framing page through the same deliverCenterCallback. Center serves the sign-in framed only for apps its operator admits to frame (WALLET_FRAMEABLE_APP_ORIGINS), and the page inside offers "Open as a page" when it cannot continue there. The modal answers the frame's size reports with its own resolved theme (the --jb-connect-* custom properties and its font), so the Center page inside takes the app's colours, font and corners. The frame delegates passkey prompts and creation to Center's origin by name (it has no src, so the browser could not take the origin from one), so a new user can sign up inside it.
  • @bananapus/nana-sdk-connect/wagmi: centerAccountConnector({ wallet, read }), a read-only Base connector for the passkey account.
  • @bananapus/nana-sdk-connect/react: <JBConnectModal open controller onClose />, themed with --jb-connect-* custom properties (--jb-connect-pad is the dialog's inset, which the Center frame bleeds through); the primary button names the platform prompt (Touch ID, Face ID, Windows Hello) unless passkeyLabel overrides it.

The passkey account signs nothing in the app. Payments go through Center's review flow.