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

@cornect/cli

v0.1.0

Published

Command-line interface for the Cornect public API — search companies, manage exports, check credits.

Downloads

25

Readme

Cornect CLI

Command-line interface for the Cornect public API — search companies, manage exports, and check credits from your terminal or scripts. A third interface alongside the REST API and the MCP server, sharing the same auth + endpoints.

Install

npm install -g @cornect/cli   # then: cornect <command>
# or, without installing:
npx @cornect/cli <command>

Until it's published to npm, run from source: cd cli && npm install && npm run build && npm link (then cornect is on your PATH), or invoke node /path/to/cli/dist/index.js <command>.

Authenticate

Get a token at https://app.cornect.io → Account → API tokens (read scope covers search/lookup/credits; read_write adds export creation).

cornect login                 # prompts for the token, validates it, stores it
cornect login --token cornect_xxx
cornect logout                # removes the stored token

The token is saved to ~/.cornect/config.json (chmod 600). For CI/scripts, set CORNECT_API_TOKEN instead — it overrides the stored token:

CORNECT_API_TOKEN=cornect_xxx cornect credits

Base URL defaults to https://api.cornect.io/api/v1; override with CORNECT_API_BASE.

Global flags

--json (raw JSON, for scripting) · --csv (CSV where supported) · --quiet (suppress decoration) · --debug (full error detail). Colors auto-disable when output isn't a TTY (clean pipes).

Commands

cornect search

cornect search --query fintech --country "Germany" --industry "Software" --limit 10
cornect search --country "United States" --exclude-industry "Staffing and Recruiting" \
               --exclude-keyword consulting
cornect search --query saas --json | jq '.items[].domain'
cornect search --country "Germany" --csv > german-companies.csv

Country/industry filters use full NAMES, not ISO codes"Germany", "United States", "United Kingdom" (not "DE"/"US"). ISO codes match nothing. To target a city, also pass --country (city names repeat across countries — Berlin, Germany vs Berlin, Connecticut).

cornect company get <id>

cornect company get predictleads:acme.com
cornect company get predictleads:acme.com --json

cornect export

cornect export create --name "German SaaS" --country "Germany" --industry "Software"
cornect export status <export-id>
cornect export download <export-id> --output leads.csv

export create charges 1 credit per newly-exported company and needs a read_write token (a read token gets 403 INSUFFICIENT_SCOPE).

cornect credits

cornect credits            # balance + recent transactions
cornect credits --json

Errors

Structured API errors print cleanly and exit non-zero — 401 → "Run: cornect login", 402 → top-up link, 403 INSUFFICIENT_SCOPE → "needs a read_write token", 429 → rate-limited. Stack traces only with --debug.

Develop

npm install
npm run build      # tsc → dist/
npm test           # vitest
npm run dev -- search --query fintech   # run from source via tsx