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

@bayarkit/testing

v0.3.3

Published

Fake Malaysian payment gateways and the bayarkit conformance suite, for testing without real money.

Readme

@bayarkit/testing

Fake payment gateways (Malaysian and global) and the bayarkit conformance suite: test checkout and callbacks without real money, in JavaScript or in any other language. Bahasa Melayu

npm install --save-dev @bayarkit/testing

Each fake answers like its gateway's API (in the shapes measured on the sandbox where one was measured) and signs callbacks exactly as the gateway does: startFakeToyyibPay, startFakeBayarcash, startFakeBillplz, startFakeChip, startFakeStripe, startFakeSenangPay, startFakeIPay88, startFakeFiuu, startFake2C2P, startFakeCurlec, startFakeHitPay, startFakeGkash, startFakeXendit, startFakeEghl, startFakePaddle, startFakePayPal. Every fake has markPaid(id), callbackFor(id) (a correctly signed callback) and tamper(callback).

  • gatewayConformance(name, setup) — the suite every adapter must pass (vitest, optional peer).
  • npx bayarkit-fake <gateway> — one fake as a server for PHP, Python or Go tests. It prints one JSON line (url, control) and serves a control API: POST /paid/<id>, GET /callback/<id>, GET /callback/<id>/tampered, and for PayPal POST /approve/<id> (the buyer approves, nothing captured yet). vitest is not needed for this.

Need help installing?

If you would rather not wire up a payment gateway yourself, Sasa Teguh, the studio that maintains bayarkit, can install it on your site or app and test it against the gateway sandbox before you go live.

Contact page · Email: [email protected] · WhatsApp: 017-762 9379

Bahasa Melayu

Gateway pembayaran palsu (Malaysia dan global) dan set ujian keakuran bayarkit: uji checkout dan callback tanpa wang sebenar, dalam JavaScript atau bahasa lain. Setiap fake menjawab seperti API gatewaynya dan menandatangani callback sama seperti gateway itu. npx bayarkit-fake <gateway> menjalankan satu fake sebagai pelayan dengan API kawalan (POST /paid/<id>, GET /callback/<id>, GET /callback/<id>/tampered, dan untuk PayPal POST /approve/<id>: pembeli meluluskan, belum ditangkap) untuk ujian PHP, Python atau Go.

Dokumentasi penuh: README.ms.md.

Perlukan bantuan memasang?

Jika anda tidak mahu menyambung gateway pembayaran sendiri, Sasa Teguh, studio yang menyelenggara bayarkit, boleh memasangnya di laman atau aplikasi anda dan mengujinya pada sandbox gateway sebelum anda mula menerima bayaran.

Halaman hubungi · E-mel: [email protected] · WhatsApp: 017-762 9379

MIT © Muhammad Aiman