Skills2026年4月3日·1 分钟阅读

Hoppscotch — Open-Source API Development Platform

Test APIs with a beautiful UI. REST, GraphQL, WebSocket, SSE, and gRPC. Self-hostable Postman alternative. 78K+ GitHub stars.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 29/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Stage only
信任
信任等级:Established
入口
hoppscotch.md
安全暂存命令
npx -y tokrepo@latest install 1a83c479-0009-482b-9b11-bb41fb93d5be --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Hoppscotch tests REST, GraphQL, WebSocket, and gRPC APIs in the browser.
§01

What it is

Hoppscotch is an open-source API development platform that provides a fast, beautiful interface for testing REST, GraphQL, WebSocket, SSE, and gRPC APIs. It runs in the browser, requires no installation, and can be self-hosted for teams. Features include environment variables, collections, history, and team collaboration.

It targets developers who need a lightweight, privacy-respecting alternative to Postman for API testing and development.

§02

How it saves time or tokens

Hoppscotch loads instantly in the browser without installing a desktop application. The clean interface lets you quickly test API endpoints, inspect responses, and organize requests into collections. For AI API development, you can test your model endpoints, verify response formats, and share collections with team members. The WebSocket and SSE support is particularly useful for testing streaming AI response endpoints.

§03

How to use

  1. Use instantly at hoppscotch.io -- no account needed.
  1. Self-host for your team:
git clone https://github.com/hoppscotch/hoppscotch.git
cd hoppscotch
docker compose up -d
  1. Test an API:
  • Select request method (GET, POST, PUT, etc.)
  • Enter URL
  • Add headers and body
  • Click Send
  • Inspect the response
§04

Example

# Test an AI API endpoint using Hoppscotch:
# 1. Set method to POST
# 2. URL: https://api.openai.com/v1/chat/completions
# 3. Headers:
#    Authorization: Bearer sk-your-key
#    Content-Type: application/json
# 4. Body (JSON):
{
  "model": "gpt-4o",
  "messages": [
    {"role": "user", "content": "Hello, world"}
  ],
  "stream": false
}
# 5. Click Send and inspect the response

# For streaming responses, use the SSE client:
# Connect to your streaming endpoint and watch tokens arrive
§05

Related on TokRepo

§06

Common pitfalls

  • Browser-based API testing is subject to CORS restrictions. Some APIs may not respond to requests from a browser. Use the Hoppscotch browser extension or self-hosted proxy to bypass CORS.
  • Self-hosting requires PostgreSQL and email configuration for team features. The public instance at hoppscotch.io works without setup for individual use.
  • Large response bodies can slow down the response viewer. For APIs returning megabytes of data, consider limiting response size or using a CLI tool instead.

常见问题

How does Hoppscotch compare to Postman?+

Hoppscotch is open-source, browser-based, and lighter weight than Postman. It loads instantly without a desktop app installation. Postman has more features (mock servers, automated testing, documentation) but is heavier and has moved toward a paid model. Hoppscotch focuses on fast, simple API testing.

Can I test WebSocket and GraphQL APIs?+

Yes. Hoppscotch includes dedicated clients for WebSocket, SSE (Server-Sent Events), GraphQL, and gRPC alongside the standard REST client. Each protocol has its own interface optimized for that communication pattern.

Does Hoppscotch support team collaboration?+

Yes. The self-hosted version supports teams with shared collections, environment variables, and workspace management. Team members can collaborate on API collections and share configurations.

Can I use environment variables?+

Yes. Hoppscotch supports environment variables that you can reference in URLs, headers, and request bodies using double curly braces. You can define multiple environments (dev, staging, production) and switch between them.

Is Hoppscotch free?+

Yes. Hoppscotch is open-source under the MIT license. The public instance at hoppscotch.io is free. Self-hosting is also free with no feature limitations. There is no paid tier for the open-source version.

引用来源 (3)
🙏

来源与感谢

Created by Hoppscotch. Licensed under MIT.

hoppscotch — ⭐ 78,700+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产