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 🙏

© 2025 – Pkg Stats / Ryan Hefner

payment-kit

v1.22.32

Published

The decentralized Stripe for the Blocklet platform.

Readme

Payment Kit

The decentralized Stripe for the Blocklet platform.

Contribution

Development

  1. Clone the repository
  2. Run make build
  3. Run cd blocklets/core && blocklet dev

Troubleshooting

Error: "pre-start error component xxx is not running or unreachable"

  • Create a .env.local file in the project root
    • Add BLOCKLET_DEV_APP_DID="did:abt:your payment kit server did"
    • Add BLOCKLET_DEV_MOUNT_POINT="/example"
  • Copy .env.local to the /core directory
    • Edit BLOCKLET_DEV_MOUNT_POINT="/"

Error: "Insufficient funds to pay for transaction cost from xxx, expected 1.0020909, got 0"

  • Copy the BLOCKLET_DEV_APP_DID
  • Transfer 2 TBA from your DID Wallet to the copied address

Configure Stripe

Before using Stripe as a payment method, you need to configure the webhook secret:

  1. Set the STRIPE_WEBHOOK_SECRET environment variable in your Blocklet settings
    • Add the environment variable STRIPE_WEBHOOK_SECRET with your Stripe webhook signing secret
    • You can find this in your Stripe Dashboard > Developers > Webhooks > Signing Secret

Debug Stripe

  1. Install and log in following the instructions at: https://stripe.com/docs/stripe-cli
  2. Start your local Payment Kit server and note its port
  3. Run stripe listen --forward-to http://127.0.0.1:8188/api/integrations/stripe/webhook --log-level=debug --latest
  4. Copy the webhook signing secret from the CLI output and set it as STRIPE_WEBHOOK_SECRET environment variable

Test Stripe

Invoices for subscriptions are not finalized automatically. You can use the Stripe Postman collection to finalize them and then confirm the payment.

Easter Eggs

Non-public environment variables used in the code that can change the behavior of Payment Kit:

  • PAYMENT_CHANGE_LOCKED_PRICE: Allows changing locked price (must be set to "1" to enable)
  • PAYMENT_RELOAD_SUBSCRIPTION_JOBS: Reloads subscription jobs on start (must be set to "1" to enable)
  • PAYMENT_BILLING_THRESHOLD: Global default billing threshold (must be a number)
  • PAYMENT_MIN_STAKE_AMOUNT: Global minimum stake amount limit (must be a number)
  • PAYMENT_DAYS_UNTIL_DUE: Global default days until due (must be a number)
  • PAYMENT_DAYS_UNTIL_CANCEL: Global default days until cancellation (must be a number)