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

@bakissation/satim

v2.0.0

Published

Production-grade TypeScript SDK for the SATIM (SATIM-IPAY) payment gateway in Algeria — CIB & Edahabia card payments. Type-safe, secure, built on @bakissation/dinar for amounts.

Readme

@bakissation/satim

A production-grade TypeScript SDK for the SATIM (SATIM-IPAY) payment gateway — accept CIB and Edahabia card payments in Algeria with full type safety, a shared Dinar money type, and a security-first design.

npm CI license

  • 💳 Full order lifecycle — register a payment, check its status, and refund — behind one typed client.
  • 🔒 Secure by default — credentials never logged, TLS always enforced, POST by default, idempotency keys.
  • 🧩 Type-safe & dinar-backed — strict types for every request/response; native fetch; ESM + CommonJS.
  • 🛠️ Production-ready — typed errors, amount precision via @bakissation/dinar (also accepts number/string/bigint), pluggable fetch + middleware hooks, logger adapters.

📖 Read the case study → — why this SDK exists, and how it turns SATIM integration from hours of hand-rolled HTTP into minutes.

Install

npm install @bakissation/satim

Requires Node.js ≥ 18. One runtime dependency: @bakissation/dinar (the shared DZD money type), installed automatically.

Quick start

import { createSatimClient, fromEnv, interpretOrderStatus } from '@bakissation/satim';

const client = createSatimClient(fromEnv()); // reads SATIM_* env vars

// 1) register → redirect the customer to the payment page
const order = await client.register({
  orderNumber: 'ORD001',
  amount: 5000,                 // 5000 DZD
  returnUrl: 'https://yoursite.com/payment/success',
  failUrl: 'https://yoursite.com/payment/fail',
  udf1: 'INV001',
});
if (order.isSuccessful()) console.log('Redirect to:', order.formUrl);

// 2) after the customer returns, verify status server-side
const status = await client.getOrderStatus(order.orderId!);
console.log(status.isPaid() ? 'Paid!' : interpretOrderStatus(status.orderStatus));

// 3) refund a completed transaction
await client.refund(order.orderId!, 5000);

Configure with SATIM_USERNAME, SATIM_PASSWORD, SATIM_TERMINAL_ID, SATIM_API_URL (or pass config explicitly). Full setup → docs/getting-started.

Documentation

Full docs live in docs/:

| | | |---|---| | Overview & concepts | What SATIM-IPAY is, CIB & Edahabia, 3DSecure, the merchant journey, glossary | | Getting started | Install, configuration, environments, first payment | | API reference | register · getOrderStatus · confirm · refund · amounts · errors · types | | Order status | Status codes + interpretOrderStatus() | | SATIM gateway reference | The raw REST API: endpoints, params, responses, error codes, environments, test cards | | Certification & requirements | Go-live process, merchant page (IHM) requirements, certification checklist |

Security

Credentials are never logged, TLS is always enforced, and POST is the default. Always verify payments server-side. Found a vulnerability? See SECURITY.md — please don't open a public issue.

Contributing

Issues and PRs welcome — read CONTRIBUTING.md and the Code of Conduct. Releases are automated from Conventional Commits via semantic-release; don't bump the version or edit the changelog by hand.

Credits

Built and maintained by Abdelbaki Berkatiberkati.xyz · @bakissation. 📖 Read the case study →

License

MIT