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

acb-api-client

v0.1.0

Published

Unofficial ACB (Asia Commercial Bank) API client for Node.js

Readme

acb-api-client

🇺🇸 English | 🇻🇳 Tiếng Việt

Unofficial Node.js client for ACB (Asia Commercial Bank) API. Fetch account balances and transaction history.

Features

  • 🔐 Authenticate with ACB using username and password
  • 💰 Fetch account balances
  • 📊 Retrieve transaction history
  • 🚀 Express server example included
  • 📦 Works with npm, pnpm, and bun

Installation

# npm
npm install acb-api-client

# pnpm
pnpm add acb-api-client

# bun
bun add acb-api-client

Quick Start

As a library

import { ACBClient } from 'acb-api-client';

const client = new ACBClient({
  username: 'your_username',
  password: 'your_password',
  debug: false,
});

// Get balances
const { balances } = await client.getBalances();
console.log(balances);

// Get transactions
const accountNumber = balances[0].accountNumber;
const transactions = await client.getTransactions(accountNumber, 5);
console.log(transactions);

Run demo server

  1. Clone this repo:

    git clone https://github.com/m4kky/acb-api-node.git
    cd acb-api-node
  2. Copy .env.example to .env and fill in your ACB credentials:

    cp .env.example .env
    # Edit .env with your credentials
  3. Install dependencies and start:

    npm install
    npm start

Server runs on http://localhost:3000

API Endpoints

  • GET / - Health check
  • GET /api/balances - Get all account balances
  • GET /api/transactions - Get transactions for first account
  • GET /api/transactions/:accountNumber - Get transactions for specific account

Query parameters:

  • rows - Number of transactions to fetch (default: 5)

Environment Variables

ACB_USERNAME=your_username
ACB_PASSWORD=your_password
PORT=3000
DEBUG=false

Example Response

Balances

{
  "balances": [
    {
      "accountNumber": "19527581",
      "accountDescription": "TKTT FIRST KHTN (CN) VND",
      "ownerName": "VU XUAN PHONG",
      "currency": "VND",
      "balance": 10028.0,
      "totalBalance": 10028.0,
      "status": 1
    }
  ]
}

Transactions

{
  "accountNumber": "19527581",
  "transactions": [
    {
      "amount": 10000.0,
      "type": "IN",
      "description": "VU XUAN PHONG chuyen tien...",
      "currency": "VND",
      "postingDate": 1774803600000
    }
  ]
}

Package Manager Support

This package works with all major Node.js package managers:

# npm
npm install acb-api-client

# pnpm
pnpm add acb-api-client

# bun
bun add acb-api-client

Demo Repository

For a ready-to-run demo server, check out:

Just clone, configure .env, and run!

Author

Makky (@m4kky)

Credits

Inspired by community work on unofficial ACB integrations, including:

Disclaimer

This is an unofficial client and is not affiliated with ACB. APIs may change without notice. Use at your own risk.

License

ISC