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

ethio-receipt-parser

v1.1.8

Published

A TypeScript-based Ethiopian payment receipt parser for BOA, CBE, Telebirr, and other providers.

Readme

ethio-receipt-parser

A modular TypeScript parser for Ethiopian banking and payment receipts.

ethio-receipt-parser helps developers extract structured transaction data from Ethiopian payment providers such as:

  • Bank of Abyssinia (BOA)
  • Commercial Bank of Ethiopia (CBE)
  • Telebirr
  • Awash Bank

Built for automation, fintech integrations, dashboards, bots, transaction verification systems, and internal tooling.


Features

  • Unified receipt parsing API
  • Parse BOA receipt links
  • Parse CBE receipt pages/PDFs
  • Parse Telebirr receipts
  • Parse Awash Bank receipts
  • Clean TypeScript architecture
  • Promise-based API
  • Modular provider system
  • Easily extendable
  • Built for real-world integrations

Installation

Using pnpm:

pnpm add ethio-receipt-parser

Using npm:

npm install ethio-receipt-parser

Using yarn:

yarn add ethio-receipt-parser

Quick Start

import {
  handleBoaReceipt,
  handleCbeReceipt,
  handleTelebirrReceipt,
  handleAwashReceipt,
} from "ethio-receipt-parser";

const run = async () => {
  const boa = await handleBoaReceipt(
    "https://cs.bankofabyssinia.com/slip/?trx=XXXX",
  );

  const cbe = await handleCbeReceipt("https://apps.cbe.com.et:100/?id=XXXX");

  const telebirr = await handleTelebirrReceipt(
    "https://transactioninfo.ethiotelecom.et/receipt/XXXX",
  );

  const awash = await handleAwashReceipt(
    "https://awashbank.com/receipt?id=XXXX",
  );

  console.log(boa);
  console.log(cbe);
  console.log(telebirr);
  console.log(awash);
};

run();

Example Output

{
  "provider": "BOA",
  "payer": "ABEL TESFAYE DEMEKE",
  "account": "2******91",
  "creditedPartyName": "SELAMAWIT KASSA BERHANE",
  "bankAccountNumber": "7*****38",
  "amount": 54320,
  "date": "18/03/25 10:42",
  "reference": "FT259871KLMQ43210",
  "status": "SUCCESS"
}

Supported Providers

| Provider | Status | | -------- | --------------------------- | | BOA | Stable | | Telebirr | Stable | | CBE | Working (Under Maintenance) | | Awash | Stable |


Important Note About CBE

The CBE parser is currently working, but it is still under maintenance for a more permanent and reliable solution.

At the moment, CBE parsing depends on request-specific values such as:

  • x-app-id
  • client keys
  • internal request headers
  • validation tokens

These values are currently hardcoded internally.

As the developer, I do not consider this a reliable long-term approach because CBE may change these values at any time.

If the CBE parser suddenly stops working, the first thing to inspect is:

  • changed x-app-id
  • expired client keys
  • modified request headers
  • updated request validation rules

Most CBE-related issues will likely originate from those changes.

A better dynamic extraction system is currently being researched.


API

BOA

handleBoaReceipt(url: string)

Example

const result = await handleBoaReceipt(receiptUrl);

CBE

handleCbeReceipt(url: string)

Example

const result = await handleCbeReceipt(receiptUrl);

Telebirr

handleTelebirrReceipt(url: string)

Example

const result = await handleTelebirrReceipt(receiptUrl);


Awash

handleAwashReceipt(url: string)

Example

const result = await handleAwashReceipt(receiptUrl);

Project Structure

src
├── core
│   └── http
│       └── axios.client.ts
├── services
│   ├── boa
│   ├── cbe
│   ├── telebirr
│   └── awash
├── shared
│   ├── payment.parser.ts
│   ├── types.ts
│   └── utils.ts
└── index.ts

Architecture

Each provider follows the same structure:

provider/
├── provider.client.ts
├── provider.parser.ts
├── provider.service.ts
└── index.ts

Responsibilities

| File | Purpose | | --------- | --------------------- | | client | Handles HTTP requests | | parser | Extracts receipt data | | service | Main business logic | | index | Exports module APIs |


Development

Clone Repository

git clone <repo-url>

Install Dependencies

pnpm install

Run Development Mode

pnpm dev

Build

pnpm build

Test

pnpm test

Use Cases

  • Telegram bots
  • Payment verification systems
  • Fintech apps
  • Internal dashboards
  • Accounting automation
  • Transaction extraction pipelines
  • Mobile app backends

Roadmap

  • Better CBE dynamic request handling
  • Awash Bank support
  • Dashen Bank support
  • OCR support for screenshots/images
  • PDF receipt parsing improvements
  • Automatic provider detection
  • Webhook-ready integrations

Contributing

Contributions are welcome.

Especially useful contributions include:

  • additional bank support
  • parser stability improvements
  • token extraction research
  • test receipt samples
  • TypeScript improvements
  • better error handling

Disclaimer

This package is not affiliated with any Ethiopian bank or payment provider.

Banks may update their APIs, security systems, HTML structure, or validation methods at any time, which may temporarily affect parser stability.

Use responsibly.


License

MIT