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

@chipi-stack/chipi-react

v14.8.0

Published

React hooks and components for Chipi SDK

Downloads

1,069

Readme

@chipi-stack/chipi-react

React hooks for Chipi Pay. Provides wallet creation, transfers, SKU purchases, and session management.

Install

npm install @chipi-stack/chipi-react @chipi-stack/backend @chipi-stack/types

Quick Start

import { ChipiProvider, useChipiWallet, useTransfer } from "@chipi-stack/chipi-react";
import type { ChainToken } from "@chipi-stack/types";

function App() {
  return (
    <ChipiProvider config={{ apiPublicKey: "your-key" }}>
      <Wallet />
    </ChipiProvider>
  );
}

function Wallet() {
  const { wallet } = useChipiWallet({
    externalUserId: "user-123",
    getBearerToken: async () => "your-bearer-token",
  });
  const { transfer, isLoading } = useTransfer();

  if (!wallet) return <p>Loading wallet...</p>;

  return (
    <button
      onClick={() =>
        transfer({
          params: {
            wallet,
            token: "USDC" as ChainToken,
            recipient: "0x...",
            amount: 10,
            encryptKey: "user-pin",
          },
          bearerToken: "your-bearer-token",
        })
      }
    >
      {isLoading ? "Sending..." : "Send 10 USDC"}
    </button>
  );
}

What you can ship

  • Crypto checkout components — drop-in payment UIs for e-commerce and SaaS
  • In-app token transfer UIs — send and receive USDC with a few lines of React
  • Connect-with-passkey flows — biometric wallet login without seed phrases
  • DeFi dashboards and loyalty/rewards redemption interfaces — display balances, history, and reward claims
  • Multisig treasury governance — propose/approve/execute any contract action with N-of-M approvals (see /multisig below)

Have an idea? Tell us what you want to build

Multisig governance (@chipi-stack/chipi-react/multisig)

Tree-shakeable subpath for SHHH multisig: propose any contract action (or a vote), collect N-of-M approvals, execute. Experimental — the API may change.

Describe your actions once as typed templates, then drive them with hooks. The hooks are auth- and chain-agnostic: you pass a MultisigTransport (your coordination backend) and a MultisigSigner (per-owner OE signer), and own the UI.

import {
  defineActions, voteTemplate, u256, toFelt,
  useProposeAction, useTreasuryProposals,
  type MultisigTransport, type MultisigSigner,
} from "@chipi-stack/chipi-react/multisig";

// 1. Register your action templates (vote ships built-in).
const ACTIONS = defineActions([
  voteTemplate({ governanceContract: "0x…" }),
  {
    key: "stake",
    label: "Stake",
    fields: [{ name: "amount", label: "Amount", type: "amount", decimals: 18 }],
    toCalls: (v) => [{ to: "0x…", entrypoint: "stake", calldata: u256(v.amount) }],
    title: (v) => `Stake ${v.amount}`,
  },
]);

// 2. Propose → approve → execute (you supply transport + signer).
function Governance({ walletAddress, transport, signer }: {
  walletAddress: string; transport: MultisigTransport; signer: MultisigSigner;
}) {
  const propose = useProposeAction({
    walletAddress, transport, signer,
    getRequiredApprovals: async () => 2, // read your wallet's threshold
  });
  const { proposals, approve, execute } = useTreasuryProposals({ walletAddress, transport, signer });
  // render your own UI on top of these
}

The pure pieces — defineActions, voteTemplate, the toFelt/u256/amountToBase encoders, and the OE core (buildActionProposal/signActionApproval/assembleActionExecuteCalldata) — have no React or network dependency, so templates and calldata are unit-testable in isolation.

Documentation

Full docs at docs.chipipay.com

License

MIT