Skip to content

About

Zero-cloud local-first CSV statement, multi-platform payout & N-to-1 voucher reconciler -> Beancount, QuickBooks & Excel CSV

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LedgerClean CLI (账清) — Zero-Cloud CSV, Payout & Beancount Reconciler

CI Node.js >= 20 Zero Cloud License: MIT

LedgerClean (账清) is a deterministic, zero-dependency, 100% offline multi-platform statement & electronic voucher reconciler for indie hackers, e-commerce sellers, bookkeepers, and Beancount / Plain-Text Accounting users.

Try the Interactive Browser Studio (No Install Required):


Why LedgerClean? (痛点解决)

  1. Auto-Decodes Messy Encodings & Preserves Long IDs (防 GBK 乱码 & 28位长单号防截断): Automatically detects GB18030 / GBK vs UTF-8-BOM CSV exports (Alipay, WeChat Pay, Stripe, Gumroad, bank statements) without corrupting 28-digit transaction IDs into 2.02611E+27.
  2. Exact Integer Micro-Unit Math (零浮点误差精确分位核对): Every amount, platform fee, cross-period partial refund, and multi-currency conversion is computed in integer micro-units (BigInt) — zero IEEE-754 cent drift.
  3. Subset-Sum N : 1 Combined Voucher Matching (多笔零散支出自动凑单核对): Automatically matches N individual ride-hail/procurement charges against a single consolidated monthly PDF/XML voucher.
  4. 5 Ready-to-Use Accounting Exports:
    • reconciled_ledger.csv (UTF-8-BOM Excel / WPS ready)
    • anomalies_checklist.csv (missing vouchers, duplicate reimbursement alerts, entity/header mismatches)
    • ledger.beancount (strictly zero-sum balanced double-entry Beancount journal)
    • quickbooks_import.csv (QuickBooks / Xero import format)
    • audit_report.html (printable financial summary & audit report)

30-Second Quickstart

Requires Node.js >= 20 (zero npm runtime dependencies; 0 bytes uploaded anywhere):

git clone https://github.com/2848823170/ledgerclean-cli.git
cd ledgerclean-cli

# Run reconciliation on the 12 bundled multi-platform sample files
npm run demo

# Inspect a single GB18030 / UTF-8 CSV or XML/PDF voucher
node ./bin/ledgerclean.mjs inspect ./samples/alipay_2026_11_gbk.csv

# Run the automated test suite
npm test

Sample output:

========================================================================
 LedgerClean CLI v1.0.0 (Community Edition) — Reconciliation Complete
========================================================================
 Ingested Files      : 12 (21 unique tx, 6 valid vouchers)
 Realized Net Income : ¥3,241.68  (Gross: ¥3,525.24 | Fees: ¥188.50 | Refunds: ¥95.06)
 Realized Net Spend  : ¥1,904.74  (Refunds Netted: ¥130.00)
 Net Profit/Surplus  : ¥1,336.94  (Transfers Excluded: ¥8,748.32)
 Voucher Match Rate  : 88.9% (8/9 expenses matched)
 Compliance Alerts   : 2 total (0 critical/error)
========================================================================

Community CLI vs. LedgerClean Pro Studio

Capability ledgerclean-cli (Community) LedgerClean Pro (账清专业版)
Zero-Cloud Local Execution (0 network calls) Yes Yes (Strict CSP Offline)
Auto GBK/UTF-8 CSV + PDF/XML/UBL Parsing Yes Yes
Beancount / Excel CSV / QuickBooks / HTML Export Yes Yes
Transactions per Run Up to 50 tx Unlimited (--license + GUI)
Drag-and-Drop Visual Reconciliation Studio (index.html) Web Trial (50 tx) Full Single-File Offline Studio
Interactive Manual Match / Unlink / Filter Table — Included
Pricing Free (MIT) One-Time Buyout (¥9.9 CN / $9 Global)

👉 Get LedgerClean Pro (Instant Offline Package + Ed25519 License Key):


License

MIT License — see LICENSE.

About

Zero-cloud local-first CSV statement, multi-platform payout & N-to-1 voucher reconciler -> Beancount, QuickBooks & Excel CSV

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages