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

agent-hoppscotch

v1.0.24

Published

CLI for AI agents to interact with Hoppscotch API - manage teams, collections, requests, and environments

Readme

agent-hoppscotch

CLI for AI agents to interact with Hoppscotch GraphQL API. Manage teams, collections, requests, and environments from the command line.

AI Coding Assistants

Add the skill to your AI coding assistant for richer context:

npx skills add OmkarBhede/agent-hoppscotch

This works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Goose, OpenCode, and Windsurf.

Installation

# Global installation
npm install -g agent-hoppscotch

# Or use with npx
npx agent-hoppscotch --help

Quick Start

# Setup (one-time)
agent-hoppscotch auth set-endpoint "http://your-hoppscotch-instance/graphql"
agent-hoppscotch auth set-cookie "<cookie_from_browser>"

# Set defaults (optional)
agent-hoppscotch auth set-default --team <teamId> --collection <collectionId>

# Start using
agent-hoppscotch team list
agent-hoppscotch collection list --team <id>
agent-hoppscotch request create --title "My API" --method POST --url "{{BASE_URL}}/api/users"

Commands

Authentication

agent-hoppscotch auth set-cookie "<cookie>"     # Store session cookie
agent-hoppscotch auth set-endpoint "<url>"      # Store GraphQL endpoint
agent-hoppscotch auth set-default --team <id>   # Set default team
agent-hoppscotch auth status                    # Show configuration
agent-hoppscotch auth clear                     # Remove credentials

Teams

agent-hoppscotch team list                      # List all teams
agent-hoppscotch team find "<term>"             # Search by name
agent-hoppscotch team get <teamId>              # Get details

Collections

agent-hoppscotch collection list --team <id>    # List root collections
agent-hoppscotch collection list --parent <id>  # List child collections
agent-hoppscotch collection find "<term>" --team <id>
agent-hoppscotch collection get <id>
agent-hoppscotch collection create --team <id> --title "Auth APIs"
agent-hoppscotch collection create --parent <id> --title "Login"
agent-hoppscotch collection delete <id>
agent-hoppscotch collection export --team <id>

Requests

agent-hoppscotch request list --collection <id>
agent-hoppscotch request find "<term>" --team <id>
agent-hoppscotch request get <id>

# Create request
agent-hoppscotch request create \
  --collection <id> --team <id> \
  --title "Create User" \
  --method POST \
  --url "{{BASE_URL}}/api/users" \
  --headers '[{"key":"Content-Type","value":"application/json","active":true}]' \
  --body '{"name":"John","email":"[email protected]"}' \
  --auth-type bearer \
  --auth-token "{{API_TOKEN}}"

# Update request
agent-hoppscotch request update <id> --title "New Title" --method PUT

# Delete/Move
agent-hoppscotch request delete <id>
agent-hoppscotch request move <id> --to <collectionId>

Environments

agent-hoppscotch env list --team <id>
agent-hoppscotch env get <id> --team <id>
agent-hoppscotch env create --team <id> --name "Development" \
  --variables '[{"key":"BASE_URL","value":"http://localhost:8080"}]'
agent-hoppscotch env update <id> --team <id> --variables '<json>'
agent-hoppscotch env delete <id>

Global Flags

| Flag | Description | |------|-------------| | --json | Output as JSON (for parsing) | | --verbose | Show raw GraphQL queries/responses | | --cookie <str> | Override stored cookie | | --endpoint <url> | Override stored endpoint |

Configuration

Credentials are stored in ~/.hoppscotch/:

  • auth.json - Cookie and endpoint
  • defaults.json - Default team/collection IDs

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | General error | | 2 | Authentication error | | 3 | Not found | | 4 | Validation error |

Getting Your Cookie

  1. Log into your Hoppscotch instance in your browser
  2. Open DevTools (F12) → Application → Cookies
  3. Copy the cookie string containing connect.sid, access_token, and refresh_token

Example cookie format:

connect.sid=s%3ATu1_ApriD6v5EvbUe64j8SYWU8XDm31k.5KTQZL28tskTc3mJV3hn4CnMhS1HZBq9VAah4YorJLE; access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwOi8vaG9wcHNjb3RjaC5sb2NhbDozMDAwIiwic3ViIjoiY21reXp0bnRyMDAwMDB0bzFkMTQ1OWJsMSIsImF1ZCI6WyJodHRwOi8vaG9wcHNjb3RjaC5sb2NhbDozMDAwIl0sImlhdCI6MTc2OTY2NDk2NSwiZXhwIjoxNzc4MzA0OTY1fQ.az2nOwCCgIBDrgISIPYRgF4rhvrJevKlGvpz_yPvAlQ; refresh_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwOi8vaG9wcHNjb3RjaC5sb2NhbDozMDAwIiwic3ViIjoiY21reXp0bnRyMDAwMDB0bzFkMTQ1OWJsMSIsImF1ZCI6WyJodHRwOi8vaG9wcHNjb3RjaC5sb2NhbDozMDAwIl0sImlhdCI6MTc2OTY2NDk2NSwiZXhwIjoxODMwMTQ0OTY1fQ.XXv3mtI1zwYUGaNHo7T6bNt3D5UJUmnmTJAl3uyZ1MA

Use with AI Agents

This CLI is designed for AI coding assistants like Claude Code. Instead of loading verbose GraphQL documentation, agents can use simple CLI commands:

# Before: ~2,500 tokens to load GraphQL docs
# After: ~100 tokens per command

agent-hoppscotch request create --title "Login" --method POST --url "{{BASE_URL}}/auth/login"

License

MIT