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

african-bank-codes

v1.0.0

Published

African bank codes, SWIFT/BIC codes and USSD shortcodes — Nigeria, Ghana, Kenya, South Africa, Egypt, Morocco, Zambia, Tanzania — plus a licensed-institution directory for the 14 WAEMU/CEMAC countries. By Mansa API.

Readme

African Bank Codes

Open datasets of African banking infrastructure, maintained by Mansa API — the African financial data API.

What's in here

| File | Contents | Coverage | |---|---|---| | data/banks.json | Bank codes (NIBSS & local), SWIFT/BIC codes, USSD shortcodes, mobile-money flags | 77 institutions — Nigeria, Ghana, Kenya, South Africa, Egypt, Morocco, Zambia, Tanzania | | data/mobile-networks.json | Mobile network prefixes, USSD codes, mobile-money operators | 27 networks across 8 countries | | data/registry-directory.json | Directory of every licensed credit institution in the WAEMU & CEMAC monetary zones (names + countries), verified against central-bank registers | 216 institutions — 14 francophone countries |

Example

const { banks } = require("./data/banks.json");

const gtbank = banks.find(b => b.code === "058");
// { name: "Guaranty Trust Bank (GTBank)", code: "058",
//   swift_code: "GTBINGLA", ussd: "*737#", country: "NG", ... }

The full registry (22 countries, 293 institutions)

The registry-verified records for the 14 WAEMU/CEMAC countries — BCEAO licence numbers, official sources, SWIFT codes, change-monitoring for bank M&A — are served by the Mansa API:

curl "https://mansaapi.com/api/v1/identity/banks?country=SN" \
  -H "Authorization: Bearer YOUR_API_KEY"
  • Free tier: the 8 countries in data/banks.json, plus currencies, mobile networks, holidays and location data. Get a key →
  • Paid tiers: the full pan-African registry, sourced from the BCEAO official register and six national CEMAC registers. Pricing →

Data quality rules

  1. No invented data. A null SWIFT or USSD field means no official source publishes one — several fintech banks (e.g. Kuda) genuinely have no USSD code, whatever the listicles say.
  2. Provenance. Registry records are verified against official sources — the BCEAO's licensed-institutions register, national treasury lists (DGTCFM Cameroon, CNEF Congo), and banking-association rolls.
  3. Corrections welcome. Open an issue with a source link.

Browse without code

Every institution has a page: banks by country · USSD codes · currencies · mobile networks · public holidays

License

Data: CC BY 4.0 — free to use with attribution to Mansa API (mansaapi.com).