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

@jetienne/perplexity_cli

v1.0.4

Published

CLI for searching the web using Perplexity AI

Readme

perplexity_cli

CLI for searching the web and running deep research queries using Perplexity AI.

Requirements

Install

Published on npm as @jetienne/perplexity_cli. Run it on demand:

export PERPLEXITY_API_KEY=pplx-your-key-here
npx @jetienne/perplexity_cli search -q "TypeScript generics"

Develop from source

git clone https://github.com/jeromeetienne/perplexity_cli
cd perplexity_cli
npm install
export PERPLEXITY_API_KEY=pplx-your-key-here

Commands

search

Search the web and return a list of results (title, URL, snippet).

# Basic search
npx tsx src/cli.ts search -q "TypeScript generics"

# Multi-query batch (up to 5 queries in one request)
npx tsx src/cli.ts search -q "TypeScript generics" -q "TypeScript decorators"

# Regional results
npx tsx src/cli.ts search -q "weather forecast" --country FR

# Domain allowlist
npx tsx src/cli.ts search -q "machine learning" --domain arxiv.org

# Domain blocklist (prefix with -)
npx tsx src/cli.ts search -q "machine learning" --domain -example.com

# Language filter
npx tsx src/cli.ts search -q "intelligence artificielle" --language fr

# Limit number of results
npx tsx src/cli.ts search -q "rust programming" --max-results 5

Options:

| Flag | Description | Default | |-----------------------|---------------------------------------------------------|----------| | -q, --query <query> | Search query — repeatable up to 5 times | required | | --domain <domain> | Domain filter — repeatable, prefix - to block | — | | --country <code> | ISO 3166-1 alpha-2 country code (e.g. US, FR, JP) | — | | --language <code> | ISO 639-1 language code — repeatable up to 10 | — | | --max-results <n> | Number of results (1–20) | 10 |

deep-search

Run a comprehensive research query and get a full text answer.

# Deep research, plain text output (default preset)
npx tsx src/cli.ts deep-search -q "explain transformer neural networks"

# Deep research with markdown output
npx tsx src/cli.ts deep-search -q "explain transformer neural networks" -m

# Quick factual lookup
npx tsx src/cli.ts deep-search -q "capital of France" -p fast-search

# Maximum depth research
npx tsx src/cli.ts deep-search -q "impact of quantum computing on cryptography" -p advanced-deep-research -m

Options:

| Flag | Description | Default | |-------------------------|------------------------------------------------------|-----------------| | -q, --query <query> | Search query | required | | -m, --markdown | Output as raw markdown (default: plain text) | false | | -p, --preset <preset> | Research preset (see below) | deep-research |

Presets:

| Preset | Model | Use case | |--------------------------|-----------------------|------------------------------------------------| | fast-search | sonar | Quick factual lookups | | pro-search | sonar-pro | Reliably researched standard queries | | deep-research | sonar-deep-research | In-depth analysis requiring extensive research | | advanced-deep-research | sonar-reasoning-pro | Maximum depth research with extensive sources |

install

Copy the perplexity skill into an agent folder.

npx tsx src/cli.ts install --skill

This copies skills/perplexity/ into <cwd>/skills/perplexity/, making it available to skillmd_runner agent folders.

Development

npm run build      # compile TypeScript → dist/
npm run typecheck  # type-check without emitting
npm test           # run tests

Output

  • search and deep-search write results to stdout.
  • Errors are written to stderr and the process exits with code 1.