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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@neonwatty/autocomplete-cli

v1.4.0

Published

CLI tool to query autocomplete suggestions from Google, YouTube, Bing, Amazon, and DuckDuckGo

Readme

autocomplete-cli

Query autocomplete suggestions from Google, YouTube, Bing, Amazon, and DuckDuckGo.

Install

npm install -g @neonwatty/autocomplete-cli

Usage

autocomplete <source> <query> [options]

Sources

| Source | Command | Description | |--------|---------|-------------| | Google | autocomplete google "query" | Google search suggestions | | YouTube | autocomplete youtube "query" | YouTube search suggestions | | Bing | autocomplete bing "query" | Bing search suggestions | | Amazon | autocomplete amazon "query" | Amazon product suggestions | | DuckDuckGo | autocomplete ddg "query" | DuckDuckGo suggestions |

Options

| Flag | Description | |------|-------------| | -l, --lang <code> | Language code (e.g., en, de, es) | | -c, --country <code> | Country code (e.g., us, uk, de) | | -d, --delay <ms> | Delay between API calls in ms (default: 100) | | -e, --expand | Expand with alphabet suffixes (a-z) | | -q, --questions | Expand with question words | | -p, --prefix <list> | Custom prefixes (comma-separated) | | -f, --format <type> | Output format: text, json, csv |

Examples

# Google suggestions
autocomplete google "best programming language"

# YouTube suggestions
autocomplete youtube "how to learn python"

# Amazon product suggestions
autocomplete amazon "mechanical keyboard"

# Bing with language
autocomplete bing "wetter" --lang de

# DuckDuckGo (short alias)
autocomplete ddg "privacy browser"

# JSON output for scripting
autocomplete google "typescript" --format json

# CSV for spreadsheets
autocomplete amazon "desk" --format csv > keywords.csv

# Alphabet expansion (27 queries, ~270 results)
autocomplete google "coffee" --expand

# Question word expansion (what, how, why, etc.)
autocomplete youtube "python" --questions

# Custom prefixes
autocomplete google "programming" --prefix "best,learn,how to"

# Combined expansion with JSON output
autocomplete google "seo" --expand --questions --format json

Using with Claude Code / AI Agents

After installing globally, you can instruct Claude Code or other AI agents to use this tool for keyword research:

Example prompts:

Use the autocomplete CLI to find Google search suggestions for "best laptop 2025"
Run autocomplete to get Amazon product keyword ideas for "standing desk"
Use the autocomplete tool to compare suggestions across Google, YouTube, and Amazon for "productivity apps"

In CLAUDE.md or system prompts:

## Available Tools

- `autocomplete` - CLI for keyword research. Usage:
  - `autocomplete google "query"` - Google suggestions
  - `autocomplete youtube "query"` - YouTube suggestions
  - `autocomplete amazon "query"` - Amazon product suggestions
  - `autocomplete bing "query"` - Bing suggestions
  - `autocomplete ddg "query"` - DuckDuckGo suggestions

Development

npm install          # Install dependencies
npm run build        # Compile TypeScript
npm test             # Run tests (108 tests)
npm run lint         # Lint code
npm run typecheck    # Type check

License

MIT