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

@febro28/paylazor

v1.0.2

Published

Paylazor checkout widget (LazorKit-integrated)

Readme

paylazor

Embeddable “Pay with Solana (USDC)” checkout widget, integrated with LazorKit passkeys and paymaster. Visit Paylazor GitHub to see the source code.

Install Paylazor

pnpm add @febro28/paylazor

Install Required Dependencies

pnpm add @lazorkit/wallet @solana/web3.js @coral-xyz/anchor @solana/spl-token

Configuration

The widget does not read your .env directly; your app should load env vars and pass them via the config prop.

Required config

  • usdcMint (string)
  • merchantAddress (string)
  • usdcDecimals (number)
  • clusterSimulation ('devnet' | 'mainnet')

Optional config (has safe defaults)

  • rpcUrl (defaults to https://api.devnet.solana.com)
  • portalUrl (defaults to https://portal.lazor.sh)
  • paymasterUrl (defaults to https://kora.devnet.lazorkit.com)
  • errorFaqUrl (optional public FAQ link shown on errors)

For Vite apps, set:

VITE_SOLANA_RPC_URL=https://api.devnet.solana.com
VITE_LAZORKIT_PORTAL_URL=https://portal.lazor.sh
VITE_LAZORKIT_PAYMASTER_URL=https://kora.devnet.lazorkit.com
VITE_USDC_MINT=USDCoctVLVnvTXBEuP9s8hntucdJokbo17RwHuNXemT
VITE_MERCHANT_ADDRESS=YOUR_MERCHANT_PUBLIC_KEY
VITE_USDC_DECIMALS=6
VITE_CLUSTER_SIMULATION=devnet

Usage

import { PaylazorCheckout } from '@febro28/paylazor';

export function Checkout() {
  return (
    <PaylazorCheckout
      amount="1.50"
      config={{
        rpcUrl: import.meta.env.VITE_SOLANA_RPC_URL,
        portalUrl: import.meta.env.VITE_LAZORKIT_PORTAL_URL,
        paymasterUrl: import.meta.env.VITE_LAZORKIT_PAYMASTER_URL,
        usdcMint: import.meta.env.VITE_USDC_MINT,
        merchantAddress: import.meta.env.VITE_MERCHANT_ADDRESS,
        usdcDecimals: Number(import.meta.env.VITE_USDC_DECIMALS),
        clusterSimulation: import.meta.env.VITE_CLUSTER_SIMULATION,
        errorFaqUrl: 'https://github.com/<org>/<repo>#faq',
      }}
      autoCreateAtas="both"
      onSuccess={({ signature }) => console.log('Paid:', signature)}
    />
  );
}

Vite setup (passkeys + Solana polyfills)

Passkeys require HTTPS. The simplest setup for Vite dev is vite-plugin-mkcert.

If you see errors like Buffer is not defined or “Module "buffer" has been externalized”, ensure your vite.config.ts includes:

define: { global: 'globalThis' },
resolve: { alias: { buffer: 'buffer/' } },
optimizeDeps: { include: ['buffer'] },
server: { https: {}, host: true },

Notes

  • autoCreateAtas defaults to both so the widget can work out-of-the-box even when USDC token accounts don’t exist yet.
  • If you don’t want the paymaster to pay rent for ATA creation, set autoCreateAtas="none" and ensure both sender/recipient USDC token accounts already exist.
  • If you set config.errorFaqUrl, the widget will show a “See GitHub for error FAQ” link when errors occur.

Security notes (recommended)

  • Don’t trust the browser: compute amount and recipient server-side and verify on-chain before fulfillment (see README_PAYLAZOR_INSTALL.md.
  • If you self-host apps/portal, set VITE_PORTAL_ALLOWED_ORIGINS on the portal deployment so only your site can open it.