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

@sugukuru/gmo-aozora-sdk

v0.5.0

Published

Production-grade TypeScript SDK for GMO Aozora Net Bank's Open API — OAuth PKCE, typed corporation APIs, retry, rate limiting

Readme

@sugukuru/gmo-aozora-sdk

Production-grade TypeScript SDK for GMO Aozora Net Bank's Open API.

The first TypeScript-first SDK for GMO Aozora — with Zod v4 validation, OAuth PKCE S256, retry, rate limiting, and domain-specific helpers for payroll automation.

Install

npm install @sugukuru/gmo-aozora-sdk

Quick Start

import { GmoAozoraClient, InMemoryTokenStorage, PRIVATE_SCOPES } from '@sugukuru/gmo-aozora-sdk';

const storage = new InMemoryTokenStorage(); // Use KMS-backed TokenStorage in production
const client = new GmoAozoraClient({
  clientId: process.env.GMO_CLIENT_ID!,
  clientSecret: process.env.GMO_CLIENT_SECRET!,
  redirectUri: 'http://localhost:8080/callback',
  environment: 'sunabar', // 'sunabar' | 'staging' | 'production'
  tokenStorage: storage,
  defaultScopes: [PRIVATE_SCOPES.ACCOUNT, PRIVATE_SCOPES.TRANSFER, PRIVATE_SCOPES.OFFLINE_ACCESS],
});

// 1. Get OAuth authorization URL (PKCE S256)
const { url, session } = client.buildAuthorizationUrl();
console.log('Open this URL:', url);

// 2. Exchange authorization code for tokens
const userClient = client.useUser('user-1');
await userClient.exchangeCode({ code: 'CODE_FROM_REDIRECT', state: session.state, session });

// 3. Call corporation APIs
const accountId = '123456789012';
const balance = await userClient.corporation.balances.get(accountId);
console.log('Balance:', balance?.bookBalance);

// 4. Iterate transactions (auto-paginated)
for await (const tx of userClient.corporation.transactions.iterate({
  accountId,
  dateFrom: '2026-05-01',
  dateTo: '2026-05-31',
})) {
  console.log(tx.transactionDate, tx.amount);
}

// 5. Bulk payroll transfer with polling
const bulk = await userClient.corporation.bulkTransfers.create({
  accountId,
  transferDesignatedDate: '2026-05-25',
  totalCount: '1',
  totalAmount: '250000',
  bulkTransfers: [{
    itemId: '1',
    transferAmount: '250000',
    beneficiaryBankCode: '0310',
    beneficiaryBranchCode: '001',
    accountTypeCode: '1',
    accountNumber: '1234567',
    beneficiaryName: 'TANAKA TARO',
  }],
});
const result = await userClient.corporation.bulkTransfers.pollResult(
  { accountId, applyNo: bulk.applyNo },
  { intervalMs: 60_000, timeoutMs: 7_200_000 },
);

Why not the official SDK?

| Feature | Official Node SDK | This SDK | |---|---|---| | TypeScript types | ❌ JavaScript only | ✅ Strict TypeScript 5.x | | Zod validation | ❌ None | ✅ All inputs/outputs | | Retry on 5xx | ❌ None | ✅ Built-in with backoff | | Rate limiting | ❌ None | ✅ Token bucket | | pollResult helper | ❌ Manual polling | ✅ bulkTransfers.pollResult() | | Zengin file generation | ❌ None | ✅ @sugukuru/zengin-format | | Webhook verification | ❌ None | ✅ @sugukuru/gmo-aozora-webhook | | Node.js version | >=10 | >=20 (built-in fetch) |

Packages

This monorepo ships 3 independent packages:

| Package | Description | |---|---| | @sugukuru/gmo-aozora-sdk | OAuth + corporation API client | | @sugukuru/zengin-format | Zengin file generation (any JP bank) | | @sugukuru/gmo-aozora-webhook | Webhook HMAC-SHA256 verification |

Documentation

License

Apache-2.0 — Sugukuru Co., Ltd.