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

@syxs/tavily-cli

v1.0.0

Published

Unofficial Tavily command-line interface by SYXS. Search, extract, crawl, map, and research directly from your terminal.

Readme

Tavily CLI

Unofficial command-line interface for Tavily, built by SYXS. Search, extract, crawl, map, and run research directly from your terminal.

This is not an official Tavily package. It is maintained by SYXS.

Installation

Option 1: Local install (without npm publish)

git clone https://github.com/Lag0/tavily-cli.git
cd tavily-cli
pnpm install
pnpm run build
pnpm link --global

Then verify:

tavily --help

To remove the global local link later:

pnpm unlink --global @syxs/tavily-cli

Option 2: npm (if published)

npm install -g @syxs/tavily-cli

Or run the one-shot setup flow:

TAVILY_API_KEY=tvly-your-key npx -y @syxs/tavily-cli@latest init --all --yes

Quick Start

# Authenticate

export TAVILY_API_KEY=tvly-your-key
tavily login

# Check status

tavily status

# Search

tavily search "latest AI agent frameworks" --max-results 5

# Extract

tavily extract https://docs.tavily.com -o .tavily/docs.md

# Crawl

tavily crawl https://docs.tavily.com --max-depth 2 --limit 30

# Map

tavily map https://docs.tavily.com --max-depth 2

# Research

tavily research "Analyze current trends in retrieval-augmented generation" --model pro

# Diagnose local readiness

tavily doctor
tavily doctor --json --pretty

Commands

  • search <query>: web search
  • extract [urls...]: content extraction
  • crawl <url>: site crawling
  • map <url>: URL mapping
  • research <input>: start research job
  • research-status <request-id>: fetch research status/result
  • login: save credentials from interactive input or TAVILY_API_KEY
  • logout: clear saved credentials
  • status: auth/version summary
  • doctor: local diagnostics with optional safe auto-remediation (--fix, --fix-check, --fix-dry-run)
  • init: install + auth + skills
  • setup <skills|mcp>: install skill or MCP integration
  • env: write TAVILY_API_KEY to .env

Doctor Diagnostics

Use tavily doctor to validate local readiness before running Tavily workflows:

tavily doctor

Machine-readable diagnostics:

tavily doctor --json --pretty
tavily doctor --output .tavily/doctor.json

Safe remediation flow:

tavily doctor --fix-dry-run --json --pretty
tavily doctor --fix
tavily doctor --fix --fix-check auth.credentials_file

Exit behavior for automation/CI:

  • Exit 0: no required diagnostic failures
  • Exit 1: one or more required checks failed

Setup Skills and MCP

Install Tavily skill:

tavily setup skills

Install Tavily remote MCP:

tavily setup mcp

Equivalent direct commands:

npx [email protected] add https://github.com/lag0/tavily-cli/tree/main
npx [email protected] "npx -y [email protected] https://mcp.tavily.com/mcp" --name tavily

Environment Variables

  • TAVILY_API_KEY
  • TAVILY_API_URL (optional, default: https://api.tavily.com)

Development

pnpm install
pnpm run type-check
pnpm run build
pnpm run test
pnpm run smoke

Release preflight gate chain:

pnpm run type-check && pnpm run test && pnpm run build && pnpm run smoke

Migration and Release Docs