Skip to content
Skillv1.0.0

hoppscotch

Test and debug APIs with Hoppscotch. Use when a user asks to test API endpoints, debug REST/GraphQL/WebSocket APIs, create API collections, or find a Postman alternative that's open-source.

by terminalskills(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from terminalskills/skills (skills/hoppscotch/SKILL.md). Install upstream with npx skills add terminalskills/skills --skill hoppscotch. Copyright stays with the author (Apache-2.0).

Hoppscotch

Overview

Hoppscotch is an open-source API development platform — a lightweight, fast alternative to Postman. It supports REST, GraphQL, WebSocket, SSE, Socket.IO, and MQTT. Available as a web app (hoppscotch.io), desktop app, or self-hosted instance.

Instructions

Step 1: Self-Host with Docker

# docker-compose.yml — Self-hosted Hoppscotch
services:
  hoppscotch:
    image: hoppscotch/hoppscotch:latest
    ports:
      - "3000:3000"     # main app
      - "3100:3100"     # admin dashboard
      - "3170:3170"     # backend API
    env_file: .env
    depends_on:
      - postgres

  postgres:
    image: postgres:16
    environment:
      POSTGRES_DB: hoppscotch
      POSTGRES_USER: hoppscotch
      POSTGRES_PASSWORD: ${DB_PASSWORD}
    volumes:
      - pgdata:/var/lib/postgresql/data

volumes:
  pgdata:

Step 2: API Collections with CLI

# Install CLI
npm install -g @hoppscotch/cli

# Run collection from file
hopp test -e environment.json collection.json

# Run from Hoppscotch instance
hopp test --server https://hoppscotch.mycompany.com --token $TOKEN collection-id

Step 3: Pre-request Scripts

// Pre-request script — runs before each request
const token = pw.env.get("AUTH_TOKEN")
const expiry = pw.env.get("TOKEN_EXPIRY")

if (!token || Date.now() > Number(expiry)) {
  const res = await pw.api.post("https://api.example.com/auth/token", {
    body: JSON.stringify({
      client_id: pw.env.get("CLIENT_ID"),
      client_secret: pw.env.get("CLIENT_SECRET"),
    }),
  })
  const data = JSON.parse(res.body)
  pw.env.set("AUTH_TOKEN", data.access_token)
  pw.env.set("TOKEN_EXPIRY", String(Date.now() + data.expires_in * 1000))
}

Guidelines

  • Use collections to organize endpoints by feature or service.
  • Environment variables keep secrets out of shared collections.
  • Self-host for teams — everyone shares collections and environments.
  • CLI enables API testing in CI/CD pipelines.
  • Hoppscotch is faster than Postman for quick API testing — no account required on hoppscotch.io.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/terminalskills-skills-hoppscotch/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

terminalskills-skills-hoppscotch.ocm.jsonjson
{
  "ocm": "1",
  "id": "terminalskills-skills-hoppscotch",
  "kind": "skill",
  "name": "hoppscotch",
  "description": "Test and debug APIs with Hoppscotch. Use when a user asks to test API endpoints, debug REST/GraphQL/WebSocket APIs, create API collections, or find a Postman alternative that's open-source.",
  "publisher": "terminalskills",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "hoppscotch",
      "api-testing",
      "postman",
      "rest",
      "graphql",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Test and debug APIs with Hoppscotch. Use when a user asks to test API endpoints, debug REST/GraphQL/WebSocket APIs, create API collections, or find a Postman alternative that's open-source."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/terminalskills/skills",
      "path": "skills/hoppscotch/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/terminalskills/skills/blob/HEAD/skills/hoppscotch/SKILL.md",
      "key": "terminalskills/skills/skills/hoppscotch/SKILL.md"
    },
    "compatibility": "Web, Desktop, Self-hosted",
    "license": "Apache-2.0"
  },
  "instructions": "# Hoppscotch\n\n## Overview\n\nHoppscotch is an open-source API development platform — a lightweight, fast alternative to Postman. It supports REST, GraphQL, WebSocket, SSE, Socket.IO, and MQTT. Available as a web app (hoppscotch.io), desktop app, or self-hosted instance.\n\n## Instructions\n\n### Step 1: Self-Host with Docker\n\n```yaml\n# docker-compose.yml — Self-hosted Hoppscotch\nservices:\n  hoppscotch:\n    image: hoppscotch/hoppscotch:latest\n    ports:\n      - \"3000:3000\"     # main app\n      - \"3100:3100\"     # admin dashboard\n      - \"3170:3170\"     # backend API\n    env_file: .env\n    depends_on:",
  "cost": {
    "context_tokens": 519
  }
}

Fetch it by URL: GET /api/v1/registry/terminalskills-skills-hoppscotch/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.