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

@ph-dev-utils/banks

v0.1.0

Published

Philippine bank & e-money registry — SWIFT/BIC codes + InstaPay/PESONet participation flags for universal/commercial, thrift, rural & digital banks and e-wallets (GCash, Maya, etc.). Sourced from BSP/PCHC/BancNet/PDIC.

Readme

@ph-dev-utils/banks

npm version License: MIT

Philippine bank & e-money registry for JavaScript/TypeScript — SWIFT/BIC codes plus InstaPay / PESONet participation flags for universal & commercial banks (incl. foreign branches), thrift & rural banks, digital banks, and e-wallets (GCash, Maya, GrabPay, ShopeePay…). Part of the @ph-dev-utils family.

Bundled dataset is browser-safe (compiled in, no network, no fs).

npm install @ph-dev-utils/banks

Quick start

import { listBanks, findBank, findBySwift, validateBIC } from '@ph-dev-utils/banks';

findBank('BDO');                 // { name: 'BDO Unibank, Inc.', shortName: 'BDO', swift: 'BNORPHMM', ... }
findBank('metrobank')?.swift;    // 'MBTCPHMM'
findBySwift('UBPHPHMMXXX');      // UnionBank (11-char input matches the 8-char head-office BIC)

listBanks({ type: 'ewallet' });          // GCash, Maya, GrabPay, ShopeePay, …
listBanks({ instapay: true }).length;    // InstaPay participants
listBanks({ type: 'universal_commercial', foreign: false }); // domestic U/KBs

validateBIC('BNORPHMM');         // true   (ISO 9362 format check)
validateBIC('CITIPHMXV');        // false  (9 chars — malformed)

API

| Function | Returns | | --- | --- | | listBanks(filter?) | Bank[] — filter by type / instapay / pesonet / foreign / hasSwift | | findBank(query) | Bank \| null — match by SWIFT, exact/partial name, or short name | | findBySwift(code) | Bank \| null — by head-office BIC (8- or 11-char input) | | validateBIC(code) | boolean — ISO 9362 format (8 or 11 chars), case-insensitive | | parseBIC(code) | { institution, country, location, branch } \| null | | PARTICIPATION_AS_OF | string — the BSP lists' as-of date (YYYY-MM-DD) | | META | provenance + disclaimer for the bundled data |

Bank

interface Bank {
  name: string;
  shortName: string | null;          // 'BDO', 'GCash', …
  type: 'universal_commercial' | 'thrift' | 'rural' | 'digital' | 'ewallet';
  foreign: boolean;                  // foreign-bank Manila branch
  swift: string | null;              // head-office BIC, or null if not sourced
  swiftConfidence: 'verified' | 'single-source' | null;
  instapay: boolean;
  instapayReceiverOnly: boolean;     // can receive but not originate InstaPay
  pesonet: boolean;
}

swiftConfidence is verified when 2+ independent public SWIFT directories agree, single-source when only one does (format-valid but not cross-checked), and null when no SWIFT is sourced.

Data & disclaimer

  • InstaPay / PESONet flags come from the BSP-published ACH participant lists (BancNet & Philippine Clearing House Corporation) and reflect the PARTICIPATION_AS_OF date — participation changes over time.
  • Registry (names/types) follows the PDIC Directory of Insured Universal & Commercial Banks plus the BSP rails lists.
  • SWIFT/BIC codes are head-office codes compiled from public directories. Always confirm the exact code with the bank or recipient before initiating a wire transfer.

Not affiliated with BSP, PDIC, PCHC, BancNet, or SWIFT.

License

MIT.