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

@wasel-finance/payment-browser

v1.0.0

Published

Browser SDK for Wasel Payment System (drop-in pay button)

Downloads

33

Readme

@wasel-finance/payment-browser

Drop-in browser SDK for Wasel Payment System. Renders a styled "Pay" button on any page — no backend required.

دليل عربي مفصّل في payment-pro/docs/gateway/09-sdk-browser.ar.md

CDN usage

<div id="pay-button"></div>

<script src="https://cdn.wasel.example.com/v1/wasel.min.js"></script>
<script>
  Wasel.init({
    publishableKey: 'pk_live_xxxxxxxx',
    baseUrl: 'https://api.wasel.example.com'
  });

  Wasel.mount('#pay-button', {
    paymentId: 'abc-123',   // create this on your server via the Node SDK
    popup: false            // true → opens checkout in a popup
  });
</script>

How it works

  1. Your backend creates a payment using the Node SDK and receives { payment_id, payment_url }.
  2. You pass payment_id to the Browser SDK in the user's page.
  3. The SDK fetches public payment info (amount, currency, status) and renders the button.
  4. Clicking the button redirects (or opens a popup) to the hosted checkout page where the user approves via wallet.

API

Wasel.init(options)

  • publishableKey (required) — your pk_* key (never use secret keys in the browser).
  • baseUrl — API base URL.
  • checkoutBaseUrl — override the URL where the hosted checkout lives.

Wasel.mount(selector, options)

  • selector — CSS selector or DOM element.
  • options.paymentId (required).
  • options.popup — open checkout in a popup window.

Wasel.redirect(paymentId, options)

  • Sends the user directly to the hosted checkout without rendering a button.

Bundle size

~4 KB minified (no dependencies, no React).

License

MIT