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

@kood/naver-api-cli

v0.1.0

Published

Naver API HUB command-line client

Readme

@kood/naver-api-cli

A Node.js ESM CLI for the Naver API HUB. Requires Node.js 20 or newer.

Install and run

Build the workspace package, then run naver-api --help. The package exposes the naver-api binary.

Command grammar

naver-api [--json] config set [--stdin]
naver-api [--json] config show
naver-api [--json] config path
naver-api [--json] config validate
naver-api [--json] config delete
naver-api [--json] trends --input <file|->
naver-api [--json] shopping-insight categories --input <file|->
naver-api [--json] shopping-insight keywords --input <file|->
naver-api [--json] search <type> <query> [--display <count>] [--start <index>] [--sort <sort>] [--filter <filter>] [--format json]

--input accepts a YAML or JSON object. Use - to read that request object from standard input. Trend request objects use startDate, endDate, timeUnit, and the API-specific group field (keywordGroups, category, or keyword). See the API HUB schema for the accepted device, age, gender, and group values.

Credentials and local configuration

Credentials use API HUB names exactly:

apiKeyId: your-api-key-id
apiKey: your-api-key

Never place credentials in command arguments. config set reads each value from a hidden TTY prompt. For non-interactive use, send the YAML above through standard input:

naver-api config set --stdin < credentials.yaml

Do not commit credentials.yaml, shell history containing its contents, or any redirected command output. config path prints the exact local config location (~/.hypercore/naver-api/config.yml). The parent and credential directory must be non-symlink protected directories. config show only displays masked values. Credential values and upstream response bodies are never included in errors. config validate checks only the local configuration shape and does not make a network request.

API HUB registry policy

The CLI calls only current API HUB operations registered by the package adapters: Search Trend, Shopping Insight category trends, Shopping Insight keyword trends, and exactly these Naver search types. Retired shop, book, and doc are excluded. It does not synthesize arbitrary paths, discover endpoints, or accept a URL override. Every Search request sends format=json; --format only accepts json.

| Type | --display / --start | --sort | --filter | Unsupported options | | ------------- | ----------------------- | ---------------------- | --------------------------------- | -------------------------------------------- | | blog | 1–100 / 1–1000 | sim, date | — | --filter | | news | 1–100 / 1–1000 | sim, date | — | --filter | | cafearticle | 1–100 / 1–1000 | sim, date | — | --filter | | kin | 1–100 / 1–1000 | sim, date, point | — | --filter | | local | 1–5 / 1 only | random, comment | — | --filter | | encyc | 1–100 / 1–1000 | — | — | --sort, --filter | | webkr | 1–100 / 1–1000 | — | — | --sort, --filter | | image | 1–100 / 1–1000 | sim, date | all, large, medium, small | none | | adult | — | — | — | --display, --start, --sort, --filter | | errata | — | — | — | --display, --start, --sort, --filter |

Output

Human output uses tables for search results and period/ratio tables plus labeled ASCII charts for trends. Ratios are normalized relative indexes: the maximum is 100 within the returned comparison group and is not search volume.

--json writes exactly one document to stdout on success:

{ "ok": true, "command": "search", "data": {} }

Failures write only to stderr. With --json, they use one document and no stdout:

{
  "ok": false,
  "command": "search",
  "error": { "kind": "usage", "code": "NAVER_API_INPUT_ERROR", "message": "Invalid API request." }
}

Exit codes are stable: 2 usage, 3 config, 4 auth, 5 rate limit, 6 upstream, and 7 network or timeout. Requests have a 15-second deadline.