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

@clikvn/kb

v0.1.0

Published

CLI for clik-kb — manage collections, folders, files, chunks, search and RAG from the command line

Readme

clik-kb CLI

Command-line tool for clik-kb — manage collections, folders, files, chunks, search, and RAG from the terminal or from AI coding agents (Claude Code, Codex).

Installation

npm install -g clik-kb

Or run without installing:

npx clik-kb --help

Setup

Create a .env file or export environment variables:

CLIK_KB_API_KEY=ck_...           # generate in Settings → API Keys
CLIK_KB_WORKSPACE=<workspace-id> # find in workspace URL or Settings
CLIK_KB_URL=http://localhost:3001 # default; change for production

You can also pass auth inline per-command:

clik-kb --api-key ck_... --workspace <id> collections list

Quick start

# List collections
clik-kb collections list --pretty

# Ingest a markdown file
clik-kb files ingest --collection <id> --name "API Spec" --file ./openapi.md

# Search
clik-kb search --collection <id> --query "how to configure auth"

# Ask a question (RAG)
clik-kb ask --query "What are the system requirements?" --collection <id>

Commands

| Group | Commands | |---|---| | collections | list, create, delete | | folders | list, create, rename, move, delete | | files | list, get, ingest, rename, move, delete, upsert, upsert-folder, re-embed, purge-vectors | | chunks | list, create, update, delete | | search | semantic / hybrid search | | ask | RAG query with LLM answer + citations |

Run clik-kb <group> --help for options on any group, or clik-kb <group> <command> --help for a specific command.

Full command reference: COMMANDS.md

For AI agents (Claude Code / Codex)

This CLI is designed to be called directly by AI coding agents. All output is JSON to stdout by default — pipe-friendly for jq and shell scripts. Add --pretty for readable output.

Example agent workflow

# Discover what collections exist
clik-kb collections list | jq '.[].name'

# Find a collection ID
COL=$(clik-kb collections list | jq -r '.[] | select(.name=="Product Docs") | .id')

# List files in it
clik-kb files list --collection $COL --pretty

# Ingest a new document
clik-kb files ingest --collection $COL --name "Release Notes" --file ./release.md

# Embed it
FILE_ID=$(clik-kb files list --collection $COL | jq -r '.[] | select(.name=="Release Notes") | .id')
clik-kb files upsert --collection $COL --id $FILE_ID

# Search it
clik-kb search --collection $COL --query "breaking changes in v2"

MCP alternative

For tighter agent integration, use the MCP server instead — it exposes the same operations as native tool calls with no shell overhead:

Endpoint: http://localhost:3001/mcp
Auth:     X-API-Key: ck_...

Output format

  • stdout: JSON response from the API
  • stderr: errors and warnings
  • exit code 0: success; exit code 1: error
# Extract IDs with jq
clik-kb files list --collection <id> | jq '[.[].id]'

# Filter by status
clik-kb files list --collection <id> | jq '[.[] | select(.status=="CHUNKED")]'

License

MIT