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

@kynode/sdk

v0.1.0

Published

Official JavaScript/TypeScript SDK for Kynode Korean Business Verification API

Downloads

84

Readme

@kynode/sdk

Official JavaScript/TypeScript SDK for the Kynode Korean Business Verification API.

Verify Korean business registration numbers against NTS (National Tax Service) data with optional DART-verified English company names.

Requirements

  • Node.js 18+ (native fetch)

Installation

npm install @kynode/sdk
yarn add @kynode/sdk
pnpm add @kynode/sdk

Quick start

import { Kynode } from '@kynode/sdk';

const kynode = new Kynode({
  apiKey: process.env.KYNODE_API_KEY!,
});

const result = await kynode.verify({
  business_number: '8090903407',
  startDate: '20260513',
  ownerName: '강민구',
  company_name: '노드메트릭스',
  language: 'en',
});

console.log(result.isValid, result.businessInfo?.companyName);

Client options

| Option | Type | Default | Description | | --------- | -------- | -------------------------------------------- | ------------------------ | | apiKey | string | required | Your Kynode API key | | baseUrl | string | https://kynode-api.kynode.workers.dev | API base URL | | timeout | number | 30000 | Request timeout (ms) |

Single verification

const result = await kynode.verify({
  business_number: '1234567890',
  startDate: '20240101',
  ownerName: '홍길동',
  language: 'en', // optional: 'en' | 'ko' | 'both' | 'code' (default: 'en')
});

Calls POST /v1/verify with Bearer authentication.

Language options

| Value | Description | | ------ | ------------------------------------------------ | | en | English output with DART-verified names | | ko | Korean output (original NTS data) | | both | Korean and English in one response | | code | Minimal response with status codes only |

Batch verification

const batch = await kynode.batchVerify([
  { business_number: '1234567890', startDate: '20240101', ownerName: '홍길동' },
  { business_number: '9876543210', startDate: '20240101', ownerName: '김철수' },
]);

console.log(batch.total, batch.success, batch.failed);
for (const row of batch.results) {
  if (row.success) {
    console.log(row.business_number, row.data?.businessInfo?.companyName);
  } else {
    console.error(row.business_number, row.error);
  }
}
  • If every item shares the same startDate, ownerName, language, and company_name, the SDK calls POST /v1/batch/verify (Pro tier and above).
  • If fields differ per row (e.g. different ownerName), the SDK runs parallel single verify calls and returns a batch-shaped response.

Error handling

The SDK throws typed errors for failed HTTP responses:

import {
  Kynode,
  KynodeAuthError,
  KynodeQuotaError,
  KynodeValidationError,
  KynodeNotFoundError,
  KynodeError,
} from '@kynode/sdk';

try {
  await kynode.verify({ ... });
} catch (error) {
  if (error instanceof KynodeAuthError) {
    // 401 — invalid or missing API key
  } else if (error instanceof KynodeQuotaError) {
    // 429 — monthly quota exceeded
  } else if (error instanceof KynodeValidationError) {
    // 400 — invalid request
  } else if (error instanceof KynodeNotFoundError) {
    // 404 — endpoint or resource not found
  } else if (error instanceof KynodeError) {
    console.error(error.statusCode, error.code, error.message, error.details);
  }
}

| Class | HTTP status | Typical cause | | ----------------------- | ----------- | -------------------------------- | | KynodeAuthError | 401 | Invalid API key | | KynodeValidationError | 400 | Missing or invalid parameters | | KynodeNotFoundError | 404 | Unknown endpoint | | KynodeQuotaError | 429 | Monthly quota exceeded | | KynodeError | other | Server errors, timeouts, etc. |

Timeouts throw KynodeError with code: 'timeout' and status 408.

CommonJS

const { Kynode } = require('@kynode/sdk');

const kynode = new Kynode({ apiKey: 'sk_live_...' });

API reference

License

MIT