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

reconcile-kit

v1.0.1

Published

Zero-dependency bank reconciliation: match bank statement entries with invoices or bills, with confidence scores and reasons. Reads Pakistani/South Asian bank statements (Dr/Cr, lakh amounts, DD/MM dates). Library, CLI and browser-ready.

Readme

🧾 reconcile-kit

Match your bank statement with your invoices, automatically. Free, zero-dependency bank reconciliation for Node.js, the browser and the command line. Every match comes with a confidence level and the reasons behind it.

Reconciling by hand means scrolling a bank statement line by line, searching for each amount in a spreadsheet and ticking it off. reconcile-kit does the first pass in a second and shows you only what needs a human look.

Tests npm Dependencies License

📖 Full guide · 🧮 Free online tool (upload two files, nothing leaves your browser)


What it does

Give it two files:

  1. A bank statement, exported from your bank's internet banking as CSV
  2. Your invoices or bills, exported from Excel, QuickBooks, Tally or any accounting app

It returns:

  • ✅ Matches, each with a confidence (high / medium / low), a score and the reasons: same amount, invoice number in the narration, customer name in the narration, days between invoice and payment
  • 🔗 One payment for several invoices: one transfer of Rs 1,00,000 clearing invoices of 80,000 and 20,000
  • 🧩 Several payments for one invoice: instalments
  • ⚠️ Look-alikes flagged: two invoices with the same amount and nothing else to tell them apart are marked low and "please check"
  • ❌ What's left: bank entries with no invoice (bills, salaries, charges, unknown deposits) and invoices still unpaid
  • 📄 A report you can open in Excel
$ npx reconcile-kit statement.csv invoices.csv --out report.csv

Bank entries: 12   Invoices: 10
Matched: 7 (high 2, medium 4, low 1) worth Rs 4,74,750
Not matched: 4 bank entries (Rs 1,23,599), 2 invoices (Rs 37,000)

  HIGH   2026-11-04 IBFT FROM AHMED TEXT INV-1001             → INV-1001
  HIGH   2026-11-12 IBFT 1005 DAWOOD                          → INV-1005
  MEDIUM 2026-11-06 CASH DEPOSIT BILAL TRADERS                → INV-1002
  MEDIUM 2026-11-10 RAAST P2P CRESCENT GARMENTS               → INV-1003 + INV-1004
  MEDIUM 2026-11-14 INWARD REMITTANCE NOOR FAB + 2026-11-20 … → INV-1006
  MEDIUM 2026-11-18 FT AHMED TEXTILES                         → INV-1007
  LOW    2026-11-20 CHQ DEPOSIT                               → INV-1009

  Bank entries not matched:
    2026-11-07  K-ELECTRIC BILL PAYMENT                       -18,450
    2026-11-15  SALARY TRANSFER NOV                           -95,000
    2026-11-25  IBFT FROM 03001234567                           9,999
    2026-11-30  BANK CHARGES / FED                               -150

  Invoices not matched:
    INV-1008     Faisal & Sons                      25,000
    INV-1010     Hassan Brothers                    12,000

Try it yourself with the files in examples/.

Reads real bank statements

Bank exports are messy. reconcile-kit handles:

  • Title rows above the table (bank name, account title, period): it finds the header row by itself
  • Column names used by Pakistani and other banks: Date / Txn Date / Value Date, Narration / Particulars / Description / Remarks, Debit / Withdrawal / Dr, Credit / Deposit / Cr, Cheque No / Reference / Instrument No, or a single signed Amount column
  • Amounts like 1,50,000.00, Rs. 1,000, PKR 500, (2,500), 2,500-, 500 Dr
  • Dates like 05/11/2026, 05-Nov-2026, 5 November 2026, 2026-11-05 and Excel serial numbers. Day-first by default; use --us-dates for MM/DD.
  • CSV files with commas, semicolons or tabs, quoted fields and a UTF-8 BOM

For Excel (.xlsx) files, save them as CSV first, or use the online tool, which opens .xlsx directly.

Install

npm install reconcile-kit

Or run without installing:

npx reconcile-kit statement.csv invoices.csv --out report.csv

Command line

npx reconcile-kit <bank-statement.csv> <invoices.csv> [options]

  -o, --out <file>        Save the full report as CSV (opens in Excel)
  -t, --tolerance <n>     Allowed amount difference, e.g. 1 for rounding (default 0)
      --days-after <n>    Payment can be up to n days after the invoice date (default 60)
      --days-before <n>   Payment can be up to n days before the invoice date (default 7)
      --direction <d>     in = money received, out = money paid, both (default)
      --us-dates          Read 03/04/2026 as March 4 (default: 3 April)
      --json              Print the full result as JSON

Library

import { readFileSync, writeFileSync } from 'node:fs';
import { reconcileFiles, toReportCSV } from 'reconcile-kit';

const result = reconcileFiles(
  readFileSync('statement.csv', 'utf8'),
  readFileSync('invoices.csv', 'utf8'),
  { tolerance: 1, direction: 'in' },
);

console.log(result.summary);
for (const m of result.matches) {
  console.log(m.confidence, m.bank.map((b) => b.description), '→', m.records.map((r) => r.number), m.reasons);
}
writeFileSync('report.csv', toReportCSV(result));

reconcileFiles accepts CSV text, an array of rows (for example from SheetJS), or an array of objects. You can also run each step yourself:

import { readStatement, readRecords, reconcile } from 'reconcile-kit';

const { transactions } = readStatement(csvText);        // or { columns: { date: 0, description: 2, debit: 4, credit: 5 } }
const { records } = readRecords(rowsFromYourDatabase);  // needs Amount + Invoice No / Customer / Date
const result = reconcile(transactions, records, { daysAfter: 30 });

It has no dependencies and works the same in the browser, Node.js, Deno and Bun.

How matches are scored

| Signal | Points | |---|---| | Same amount (required; or within tolerance) | 50 (45 if not exact) | | Invoice number found in the narration or reference | +35 (+20 for just its digits) | | Customer/party name found in the narration | up to +15 | | Payment date close to the invoice date | up to +10 |

High is 80 or more, medium 60 to 79, low below 60. A match is never made on dates alone: the amount must agree. Pairs that are far apart in time are only matched if the invoice number appears in the narration.

Options

| Option | Default | Meaning | |---|---|---| | tolerance | 0 | Allowed difference in amount (rounding, small bank charges) | | daysBefore | 7 | Payment can come this many days before the invoice date (advances) | | daysAfter | 60 | Payment can come this many days after the invoice date | | direction | 'both' | 'in' for receivables (credits), 'out' for payables (debits) | | maxGroup | 4 | Max invoices one payment can clear, or payments one invoice can have | | groups | true | Look for one-to-many and many-to-one matches | | dayFirst | true | Read 05/11/2026 as 5 November |

Privacy

Everything runs on your own computer or in your own browser. No file is uploaded anywhere.

Roadmap

  • [ ] Partial payments (invoice paid less than the full amount)
  • [ ] Learn from your corrections (remember that "AHMED TEXT" is Ahmed Textiles)
  • [ ] Built-in Excel (.xlsx) reading in the CLI
  • [ ] Ready-made column presets for popular banks and wallets

License

MIT. Made by ZexCart. More free tools: zexcart.site/dev-tools.

If it saves you time at month-end, please ⭐ star the repo.