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

statementkit

v0.2.0

Published

Privacy-first bank statement parsing SDK. Parse CSV, OFX, QFX, QIF, MT940, CAMT.052/053/054, and scanned PDFs. 30+ banks, 68 OCR languages, 70+ currencies. 100% offline.

Readme

StatementKit

Privacy-first bank statement parsing SDK. Parse CSV, OFX, QFX, QIF, MT940, CAMT.052/053/054, and scanned PDFs.

  • 30+ banks across 8 regions (NA, EU, UK, AU, Asia)
  • 68 OCR languages via Tesseract.js
  • 70+ currency symbols with locale-aware parsing
  • 11 file formats with content-based auto-detection
  • 100% offline — no API keys, no network calls for core parsing
  • AI optional — bring your own key (BYOK) for smart enrichment

Install

npm install statementkit

For PDF OCR support (optional):

npm install statementkit pdfjs-dist tesseract.js

Quick Start

import { detectFromContent, parseOFXFile, exportTransactions } from "statementkit";

// Auto-detect format
const detection = detectFromContent(fileContent);
console.log(detection.format, detection.confidence);

// Parse OFX/QFX
const result = await parseOFXFile(content, "my-account");
console.log(`Found ${result.transactions.length} transactions`);

// Export to CSV
const csv = exportTransactions(result.transactions, "csv");

CLI

# Parse a statement
npx statementkit parse statement.csv --bank td --output json

# Detect file format
npx statementkit detect mystery-file.dat

# List supported banks
npx statementkit banks --region NA

# Convert between formats
npx statementkit export statement.ofx --format csv --out-file output.csv

# Generate bank config template
npx statementkit config template --key my_bank > config.json

# Validate a config
npx statementkit config validate config.json

# Auto-suggest config from CSV
npx statementkit config suggest sample.csv

Supported Formats

| Format | Extension | Description | | -------- | --------- | ----------------------------------- | | CSV | .csv | Universal, with 30+ bank configs | | OFX | .ofx | Open Financial Exchange 1.x/2.x | | QFX | .qfx | Quicken Financial Exchange | | QBO | .qbo | QuickBooks format | | QIF | .qif | Quicken Interchange Format | | MT940 | .sta | SWIFT bank statement | | MT942 | .sta | SWIFT intraday report | | CAMT.052 | .xml | ISO 20022 intraday report | | CAMT.053 | .xml | ISO 20022 end-of-day statement | | CAMT.054 | .xml | ISO 20022 debit/credit notification | | PDF | .pdf | Scanned statements via OCR |

Custom Bank Configs

import { registerBank } from "statementkit";

registerBank("myBank", {
  name: "My Bank",
  dateColumn: "Datum",
  descriptionColumn: "Omschrijving",
  amountColumn: "Bedrag",
  dateFormat: "dd-MM-yyyy",
  hasHeader: true,
  region: "EU",
  decimalSeparator: ",",
});

Or load from JSON:

import { loadBankConfigJSON } from "statementkit";

const json = fs.readFileSync("bank-configs.json", "utf-8");
const result = loadBankConfigJSON(json);
console.log(`Registered: ${result.registered.join(", ")}`);

AI Enrichment (BYOK)

import { setAIProvider, type AIProvider } from "statementkit";

const myProvider: AIProvider = {
  async chatCompletion(prompt, options) {
    const response = await openai.chat.completions.create({
      model: options?.model ?? "gpt-4o-mini",
      messages: [{ role: "user", content: prompt }],
    });
    return { success: true, data: response.choices[0].message.content ?? "" };
  },
};

setAIProvider(myProvider);

License

MIT