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

@sno-ai/search

v0.1.1

Published

AI-powered search from your terminal - Fast, intelligent answers with citations

Readme

Sno Search CLI

AI-powered search from your terminal

Fast, intelligent search powered by Sno's AI engine. Get instant answers with citations, research topics, and explore knowledge—all from the command line.

npm version License: MIT

Features

  • 🚀 Fast AI-powered search - Get answers in seconds
  • 📚 Cited sources - Every answer includes references
  • 🔄 Streaming responses - See results as they're generated
  • 🎨 Clean output - Formatted markdown responses
  • 🔐 Secure API authentication - Project-level API keys
  • Lightweight - Minimal dependencies

Installation

npm

npm install -g @sno-ai/search

pnpm

pnpm add -g @sno-ai/search

Yarn

yarn global add @sno-ai/search

Setup

1. Get Your API Key

  1. Visit https://sno.ai/settings/api
  2. Create a new project (if you don't have one)
  3. Generate a Nexus API key for your project
  4. Copy the generated key (starts with sno-)

2. Set Environment Variable

Linux/macOS:

export SNO_API_KEY='your-api-key-here'

Windows (PowerShell):

$env:SNO_API_KEY='your-api-key-here'

Windows (CMD):

set SNO_API_KEY=your-api-key-here

Permanent Setup (recommended):

Add to your shell profile (~/.bashrc, ~/.zshrc, or ~/.profile):

export SNO_API_KEY='your-api-key-here'

Quick Start

# Ask a question
sno-search "What is TypeScript?"

# Multi-word queries (quotes optional)
sno-search How does React work

# Get help
sno-search --help

# Check version
sno-search --version

Usage Examples

General Knowledge

sno-search "Explain quantum computing"

Technical Questions

sno-search "What are the differences between REST and GraphQL?"

Current Events

sno-search "Latest developments in AI"

Research

sno-search "Compare Next.js, Remix, and Astro frameworks"

How-To Queries

sno-search "How to deploy a Next.js app to Vercel"

Example Output

$ sno-search "What is Rust?"

## What is Rust?

Rust is a low-level statically-typed multi-paradigm programming language
focusing on safety and performance[1][2]. Developed by Mozilla and now
maintained by the Rust Foundation, it's designed for building fast,
reliable, and memory-safe systems[3][4].

### Key Features

- **Memory Safety**: No null pointer dereferences or data races[1]
- **Zero-cost Abstractions**: High-level features with no runtime overhead[2]
- **Concurrent Programming**: Built-in support for safe concurrency[3]
- **Rich Type System**: Prevents many bugs at compile time[4]

Rust is used by companies like Discord, Dropbox, and Microsoft for
performance-critical applications[5].

[1] https://rust-lang.org/
[2] https://doc.rust-lang.org/
[3] https://en.wikipedia.org/wiki/Rust_(programming_language)
...

Powered by Sno

Configuration

Custom API URL (for development)

# Use a different API endpoint
export SNO_API_URL=http://localhost:3000/api/v1/nexus/chat
sno-search "test query"

Requirements

  • Node.js: 18.0.0 or higher
  • Internet: Active connection required

Development

Clone & Setup

git clone https://github.com/sno-ai/sno-ai.git
cd sno-ai/tools/sno-search-cli
pnpm install

Build

pnpm build

Test Locally

# Link for local testing
npm link

# Run
sno-search "test query"

# Unlink when done
npm unlink -g @sno-ai/search

Test with Custom API

# Build and test against local dev server
pnpm build
SNO_API_URL=http://localhost:3000/api/v1/nexus/chat node dist/index.js "test"

Troubleshooting

"SNO_API_KEY environment variable is required"

You need to set your API key before using the CLI:

# Get your key from https://sno.ai/settings/api
export SNO_API_KEY='sno-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Make it permanent by adding to your shell profile (~/.bashrc, ~/.zshrc).

"Unauthorized - Invalid or missing API key"

Error 401: Your API key is invalid, revoked, or expired.

Solutions:

  • Check that SNO_API_KEY is set correctly: echo $SNO_API_KEY
  • Verify the key format starts with sno-
  • Generate a new API key at https://sno.ai/settings/api
  • Make sure you're using a Nexus API key (not Coretex or Source key)

"Command not found: sno-search"

Make sure the package is installed globally and npm's global bin directory is in your PATH:

# Check installation
npm list -g @sno-ai/search

# Find npm global bin path
npm bin -g

# Add to PATH if needed (add to ~/.bashrc or ~/.zshrc)
export PATH="$(npm bin -g):$PATH"

Connection Errors

Error: Unable to connect to Sno API. Check your internet connection.

Solutions:

  • Verify internet connection
  • Check if sno.ai is accessible
  • Try again in a few moments

Empty Responses

If you get no output, ensure your query is not empty:

# ❌ Won't work
sno-search ""

# ✅ Works
sno-search "your question here"

API

Command Line

sno-search [options] <query>

Options:

  • --help, -h - Show help message
  • --version, -v - Show version number

Arguments:

  • <query> - Your search query (quotes optional for multi-word queries)

Environment Variables

  • SNO_API_URL - Override default API endpoint (default: https://sno.ai/api/v1/nexus/chat)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT © Sno AI Corporation

Support

Related


Powered by Sno - AI-powered search and knowledge management