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

search1api-cli

v1.2.1

Published

CLI tool for Search1API - web search, news, crawl, sitemap, reasoning and trending

Readme

search1api-cli

Command-line interface for Search1API — web search, news, crawl, sitemap, reasoning, and trending from your terminal.

Installation

Quick install (no Node.js required)

curl -fsSL https://cli.search1api.com/install.sh | bash

This downloads a standalone binary and installs it as s1.

Via npm

npm install -g search1api-cli

This installs two commands: search1api and s1 (shorthand).

Updating

s1 update

s1 update updates you in place using whichever method you installed with:

  • Binary install — downloads the latest release for your platform and replaces the running binary (uses sudo automatically if needed).
  • npm install — prints the npm install -g search1api-cli command to run.

s1 also checks for new versions in the background and shows a notice when one is available.

Setup

Sign in with your browser and let the CLI save your API key automatically:

s1 login

Manual fallback:

s1 config set-key <your-api-key>

Or use an environment variable:

export SEARCH1API_KEY=<your-api-key>

Commands

search

Search the web across 13 search engines.

s1 search "Claude AI"
s1 search "rust async" -n 5 -s google
s1 search "machine learning" --include arxiv.org github.com
s1 search "breaking news" -t day
s1 search "web framework" -c 3    # crawl top 3 results for full content

| Option | Description | Default | |--------|-------------|---------| | -n, --max-results <number> | Number of results (1-50) | 10 | | -s, --service <service> | Search engine | google | | -c, --crawl <number> | Crawl N results for full content | 0 | | --include <sites...> | Only include these sites | | | --exclude <sites...> | Exclude these sites | | | -t, --time <range> | Time range: day, month, year | | | --json | Output raw JSON | |

Available search services: google, bing, duckduckgo, yahoo, x, reddit, github, youtube, arxiv, wechat, bilibili, imdb, wikipedia

news

Search for news articles.

s1 news "AI regulation"
s1 news "tech layoffs" -s hackernews -t day

| Option | Description | Default | |--------|-------------|---------| | -n, --max-results <number> | Number of results (1-50) | 10 | | -s, --service <service> | News service | bing | | -c, --crawl <number> | Crawl N results for full content | 0 | | --include <sites...> | Only include these sites | | | --exclude <sites...> | Exclude these sites | | | -t, --time <range> | Time range: day, month, year | | | --json | Output raw JSON | |

Available news services: google, bing, duckduckgo, yahoo, hackernews

crawl

Extract content from a URL.

s1 crawl https://example.com/article

sitemap

Get related links from a website.

s1 sitemap https://example.com

reasoning

Deep thinking and reasoning powered by DeepSeek R1.

s1 reasoning "Explain the fundamentals of quantum computing"
s1 reason "Compare REST vs GraphQL"    # 'reason' is a shorthand alias

trending

Get trending topics from popular platforms.

s1 trending github
s1 trending hackernews -n 20

Available services: github, hackernews

balance

Check your remaining API credits.

s1 balance

login

Authorize in your browser and save your API key automatically.

s1 login
s1 login --no-browser

config

Manage CLI configuration.

s1 config set-key <key>   # Save API key manually
s1 config show            # Show current config

update

Update s1 to the latest version. See Updating.

s1 update
s1 update --force   # reinstall even if already on the latest version

Claude Code Skill

This repo also includes a Claude Code skill that lets Claude automatically use s1 commands when you ask it to search the web, read URLs, check news, etc.

Install the skill:

npx skills add fatwang2/search1api-cli

Once installed, you can ask Claude things like:

  • "search for the latest AI news"
  • "what does this link say? https://example.com"
  • "what's trending on GitHub?"
  • "research quantum computing thoroughly"

Claude will automatically use the appropriate s1 command and summarize the results.

JSON Output

All commands support --json flag to output raw JSON, useful for piping and scripting:

s1 search "test" --json | jq '.results[0].title'
s1 balance --json

License

MIT