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

@ingestkorea/client-naver-commerce

v0.4.0

Published

INGESTKOREA SDK Naver Commerce Client for Node.js.

Readme

@ingestkorea/client-naver-commerce

npm (scoped) npm downloads license

Description

INGESTKOREA SDK - Naver Commerce Client for Node.js.

INGESTKOREA SDK - Naver Commerce Client는 네이버 커머스 API에서 필수적으로 사용되는 메서드 위주로 구현된 가벼운 라이브러리입니다.

SDK는 아래 작업들을 내부적으로 수행합니다.

  • OAuth Token 발급을 위한 전자서명
  • OAuth Token을 이용한 API 인증
  • HTTP 요청 실패시 재시도
  • Naver Commerce API 표준 에러 핸들링

SDK는 네이버 커머스 API Docs에서 제공하는 형식을 준수합니다.

네이버 커머스 API 이용을 위해서는 커머스 API 센터에서 개발업체 계정 생성 후 애플리케이션을 등록해야 합니다.

주의사항: 애플리케이션 등록 과정에서 API 호출에 사용할 고정 IP가 필요합니다.

Getting Started

Installing

npm install @ingestkorea/client-naver-commerce

Pre-requisites

SDK는 아래 사항들을 요구합니다.

  • TypeScript v5 이상
  • Node v22 이상
# save dev mode
npm install -D typescript
npm install -D @types/node

Support Methods

  • CreateAccessToken
  • GetAccountInfo
  • ListBrandsInfo
  • ListChangedOrderStatuses

Import

Naver Commerce SDK는 client, commands 두 개의 모듈로 구성되어 있습니다.

SDK 사용을 위해서는 NaverCommerceClient, 필요한 Command 단 두 개만 import 하면 됩니다. (예시를 위해 CreateAccessTokenCommand를 사용하겠습니다)

import { NaverCommerceClient, CreateAccessTokenCommand } from "@ingestkorea/client-naver-commerce";

Usage

요청을 보내기 위해서는

  • Client 초기화 / 설정 정보 필요(ex. credentials)
  • Command 초기화 / 파라미터 값들 필요
  • send 메서드 호출 / Command 객체 필요
import { NaverCommerceClient, GetAccountInfoCommand } from "@ingestkorea/client-naver-commerce";

// a client can be shared by different commands.
const client = new NaverCommerceClient({
  credentials: {
    appId: "APPLICATION_ID",
    appSecret: "APPLICATION_SECRET",
    accessToken: "ACCESS_TOKEN",
  },
});
const command = new GetAccountInfoCommand({});

const output = await client.send(command);

Acess Token

네이버 커머스 API는 모든 요청에 인증 토큰을 요구합니다.

토큰 발급에 필요한 전자서명은 SDK에서 내부적으로 수행하므로, SDK 사용자는 오직 커머스 API 센터에서 발급한 Applicaion ID, Applicaion Secret 값들을 Client에 선언 후, CreateAccessTokenCommand를 호출하시면 됩니다.

import { NaverCommerceClient, CreateAccessTokenCommand } from "@ingestkorea/client-naver-commerce";

const client = new NaverCommerceClient({
  credentials: {
    appId: "MY_APP_ID",
    appSecret: "MY_APP_SECRET",
  },
});

const output = await client.send(new CreateAccessTokenCommand({}));
{
  "$metadata": {
    "httpStatusCode": 200,
    "attempts": 1,
    "totalRetryDelay": 0,
    "traceId": "xxxxxxxxx"
  },
  "access_token": "5M8fqYeK6xxxxx",
  "expires_in": 10800,
  "token_type": "Bearer"
}

API 호출하기

발급받은 인증 토큰의 유효 시간은 3시간(10,800초)입니다.

한 번 초기화된 client는 다른 command 호출을 위해 공유할 수 있습니다.

import {
  NaverCommerceClient,
  GetAccountInfoCommand,
} from "@ingestkorea/client-naver-commerce";

...

// 발급받은 access_token을 client 인증 정보에 반영
client.config.credentials.accessToken = "MY_ACCESS_TOKEN";

const command = new GetAccountInfoCommand({});

// a client can be shared by different commands.
const output = await client.send(command);
{
  "$metadata": {
    "httpStatusCode": 200,
    "attempts": 1,
    "totalRetryDelay": 0,
    "traceId": "xxxxxxxx",
    "rateLimit": 3
  },
  "accountId": "ncp_xxxxxx",
  "accountUid": "ncp_xxxxxxzzzzzz",
  "grade": "xx"
}

Getting Help

기능 추가 요청, 버그 신고는 깃허브 이슈를 사용해주세요.

License

This SDK is distributed under the MIT License, see LICENSE for more information.