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

@ibanforge/sdk

v1.3.0

Published

Official TypeScript SDK for the IBANforge API — IBAN validation, BIC/SWIFT lookup, Swiss BC-Nummer, SEPA/VoP and compliance risk scoring, with API-key auth, typed errors and x402 support.

Downloads

326

Readme

@ibanforge/sdk

Official TypeScript/JavaScript SDK for the IBANforge API — IBAN validation, BIC/SWIFT lookup, Swiss BC-Nummer clearing, SEPA + VoP reachability and compliance risk scoring. Zero runtime dependencies (uses native fetch).

Install

npm install @ibanforge/sdk

Quick start

import { IBANforge } from '@ibanforge/sdk';

// Free format check — no API key needed
const fmt = await new IBANforge().formatIban('CH9300762011623852957');
console.log(fmt.valid); // true

// Authenticated calls (required for paid endpoints, unless you pay per-call via x402)
const client = new IBANforge({ apiKey: 'ifk_...' });

const r = await client.validateIban('CH9300762011623852957');
console.log(r.valid);            // true
console.log(r.bic?.code);        // 'UBSWCHZH'
console.log(r.bic?.bank_name);   // 'UBS Switzerland AG'
console.log(r.sepa?.member);     // true
console.log(r.clearing?.iid);    // '00762' (Swiss BC-Nummer, CH/LI only)

Get a free key in one line

const key = await IBANforge.generateApiKey('[email protected]'); // 200 req/month
const client = new IBANforge({ apiKey: key.api_key });

All methods

await client.formatIban(iban);          // FREE — mod-97 + structure only
await client.validateIban(iban);        // full enrichment
await client.validateBatch([...ibans]); // up to 100, $0.002/IBAN
await client.lookupBic('UBSWCHZH80A');  // BIC → bank, country, LEI
await client.lookupChClearing('762');   // Swiss BC-Nummer / IID (only API with this)
await client.checkCompliance(iban);     // sanctions + FATF + SEPA + VoP + risk score
await client.usage();                   // current month quota for your key
await client.health();

Compliance result shape

const c = await client.checkCompliance('GB29NWBK60161331926819');
console.log(c.compliance.risk_score);  // 0–100
console.log(c.compliance.risk_level);  // 'low' | 'medium' | 'elevated' | 'high' | 'critical'
console.log(c.compliance.sanctions.matched_lists); // e.g. ['OFAC']

Sanctions screening is at the bank (BIC8) level — it does not screen the beneficiary name and is not a regulated AML/CFT product.

Typed errors

Every failure throws a typed subclass of IBANforgeError, so an agent can branch on it:

import { IBANforge, PaymentRequiredError, AuthError, RateLimitError } from '@ibanforge/sdk';

try {
  await new IBANforge().validateIban('CH9300762011623852957'); // no key → 402
} catch (err) {
  if (err instanceof PaymentRequiredError) {
    // err.accepts carries the x402 challenge — pay and retry, no dead-end
    console.log(err.accepts);
  } else if (err instanceof AuthError) {
    // bad/expired key
  } else if (err instanceof RateLimitError) {
    // back off
  }
}

Config

new IBANforge({
  apiKey: 'ifk_...',                  // optional
  baseUrl: 'https://api.ibanforge.com', // optional override
  timeoutMs: 30_000,                   // optional, default 30s
});

Full documentation

ibanforge.com/docs

License

MIT