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

@creofam/verifier

v0.1.3

Published

TypeScript SDK for the Verifier API

Readme

@creofam/verifier

Important: Dashen and CBE Birr (wallet) are currently experiencing issues. Working providers are Telebirr, CBE, and Bank of Abyssinia.

This SDK is built on top of my open-source Verifier API (GitHub): https://github.com/Vixen878/verifier-api

TypeScript SDK for Payment Verification API. It normalizes receipt verification across Ethiopian providers into one predictable shape for app developers.

Disclaimer: This project is not affiliated with the official providers and is a project made by Leul for developers who want to verify receipts from Ethiopian providers.

  • Docs: https://verify.leul.et/docs
  • Node: >= 18
  • License: MIT

Install

pnpm:

pnpm add @creofam/verifier

npm:

npm install @creofam/verifier

yarn:

yarn add @creofam/verifier

Overview

  • Verify by transaction reference (and for CBE/Abyssinia, also a suffix).
  • Get consistent, normalized results regardless of provider-specific JSON.
  • Response modes:
    • normalized (default)
    • raw
    • both (returns { normalized, raw })

Client Setup

  • baseUrl defaults to the official API (https://verifyapi.leulzenebe.pro).
  • Provide your API key via apiKey. from (https://verify.leul.et)
import { VerifierClient } from "@creofam/verifier";

const client = new VerifierClient({
  // baseUrl optional; defaults to official API base
  apiKey: process.env.VERIFIER_API_KEY,
  timeoutMs: 12000, // optional
});

Quick Start

Telebirr:

const tx = await client.verifyTelebirr({ reference: "CJU5RZ5NM3" });
if (tx.ok) {
  console.log(tx.data.status, tx.data.amount);
} else {
  console.log("Not verified:", tx.error);
}

CBE:

const tx = await client.verifyCBE({ reference: "FT25301XQ1W1", accountSuffix: "16825193" });
if (tx.ok) {
  console.log(tx.data.receiverAccount, tx.data.reason);
}

Abyssinia:

const tx = await client.verifyAbyssinia({ reference: "FT252195GT6N", suffix: "75434" });
console.log(tx.ok ? tx.data.reason : tx.error);

Response Modes

  • normalized (default): normalized verification result
  • raw: provider’s raw response (or envelope)
  • both: { normalized, raw }
// raw
const rawTelebirr = await client.verifyTelebirr({ reference: "CJU5RZ5NM3" }, { mode: "raw" });

// both
const bothCbe = await client.verifyCBE(
  { reference: "FT25301XQ1W1", accountSuffix: "16825193" },
  { mode: "both" },
);
console.log(bothCbe.normalized.ok, bothCbe.raw);

Minimal API

  • new VerifierClient(config)

    • baseUrl?: string — optional; defaults to official API base
    • apiKey?: string — sent as x-api-key
    • timeoutMs?: number — optional; aborts requests after N ms
    • userAgent?: string and headers?: Record<string, string> — optional
    • max429Retries?: number and retryDelayMs?: number — optional backoff tuning
  • Methods

    • verifyTelebirr({ reference }, opts?)
    • verifyCBE({ reference, accountSuffix }, opts?)
    • verifyCBEBirr({ reference }, opts?) — currently experiencing issues
    • verifyDashen({ reference }, opts?) — currently experiencing issues
    • verifyAbyssinia({ reference, suffix }, opts?)
  • Options

    • opts.mode?: "normalized" | "raw" | "both"

Normalized Shape (high-level)

When tx.ok === true, you’ll typically see:

  • provider: one of telebirr, cbe, cbebirr, dashen, abyssinia
  • data:
    • Common fields: reference, amount, currency, payerName, receiverName, txnDate
    • Provider-specific fields:
      • Telebirr: totalAmount, payerPhone, receiverAccount, statusText, status, serviceFee, serviceFeeVAT
      • CBE: payerAccount, receiverAccount, reason
      • Abyssinia: payerAccount, reason
  • raw: attached when using mode: "both"

When tx.ok === false, you’ll get:

  • provider: provider name
  • error: string describing the reason (e.g., mismatch)

Error Handling

import { VerifierClient, RateLimitError, VerifierError } from "@creofam/verifier";

try {
  const tx = await client.verifyTelebirr({ reference: "CJU5RZ5NM3" });
  if (!tx.ok) {
    console.error("Verification failed:", tx.error);
  }
} catch (err: any) {
  if (err instanceof RateLimitError) {
    console.error("Rate limited:", err.status, err.message);
  } else if (err instanceof VerifierError) {
    console.error("Verifier error:", err.status, err.message);
  } else if (err?.name === "AbortError") {
    console.error("Request timed out");
  } else {
    console.error("Unexpected error", err);
  }
}

JavaScript Examples

ESM:

import { VerifierClient } from "@creofam/verifier";

const client = new VerifierClient({
  // baseUrl: process.env.VERIFIER_BASE_URL, -- Optional
  apiKey: process.env.VERIFIER_API_KEY,
});

const res = await client.verifyTelebirr({ reference: "CJU5RZ5NM3" });
console.log(res.ok ? res.data.amount : res.error);

CJS:

const { VerifierClient } = require("@creofam/verifier");

const client = new VerifierClient({
  // baseUrl: process.env.VERIFIER_BASE_URL, -- Optional
  apiKey: process.env.VERIFIER_API_KEY,
});

(async () => {
  const tx = await client.verifyAbyssinia({ reference: "FT252195GT6N", suffix: "75434" });
  console.log(tx.ok ? tx.data.reason : tx.error);
})();