Swell

Swell:API 开发工具,使开发人员能够测试通过流技术服务的端点,包括服务器发送事件(SSE)、WebSockets、HTTP2、GraphQL 和 gRPC。「Swell: API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL, and gRPC.」

License: MIT
Build Status
GitHub package.json version
contributions welcome
Tweet

Swell is a API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL and gRPC.

Getting Started

Visit www.getswell.io to download the latest release.

Swell is currently available for OS X, Linux and Windows.

Highlights

Swell is a one-stop shop for sending and monitoring your API requests

  • Send and monitor streams over HTTP2 / HTTP1 (including SSEs) and WebSockets
  • Create GraphQL queries, introspections, mutations, and subscriptions
  • Make API requests based on a range of provided options that conform to the specifications defined in an OpenAPI document.
  • Verify STUN and TURN server connectivity for WebRTC applications by generating an SDP
  • Provides full streaming testing support for gRPC
  • View response timing information and history in an interactive chart for each request
  • Save workspaces of multiple requests for later access
  • Import and export workspaces for sharing
  • Compose test suites in JavaScript with Chai-style TDD/BDD assertion syntax
  • Execute a collection of requests in succession and receive clear visual feedback of each test's status
  • Schedule requests on to be sent on a regular time interval to support endpoint functional validation tests

Supported Technologies

  • HTTP2: Swell supports full HTTP2 multiplexing of requests and responses. HTTP requests to the same host will be sent over the same connection. Swell will attempt to initiate an HTTP2 connection for all HTTPS requests by default, but will revert to HTTP1.1 for legacy servers. Multiple concurrent streams are allowed for each connection.

  • Server-Sent Events (SSE): Initiated by a simple toggle box, Swell displays SSE events one by one as they come in. Similar to HTTP2 streams, multiple open connection streams are allowed for SSE.

  • WebSocket (WS): Swell enables connecting directly to WebSocket servers with an HTTP handshake. Developers can directly send messages to the connected WS server. Messages are displayed in chatbox format, clearly indicating outgoing and incoming messages.

  • GraphQL: Swell includes full support for all three root types of GraphQL - queries, mutations, and subscriptions as well as Introspection - with and without variables. Smart code editor allows for easy query creation.

  • gRPC: Swell includes full support for all four streaming types of gRPC - unary, client stream, server stream, bidirectional stream.

  • OpenAPI: Swell supports the enumeration and execution of REST and RPC API requests as defined in a user-provided OpenAPI document.

  • WebRTC: Swell enables testing STUN and TURN ICE server connectivity for WebRTC applications.

    Developers enter ICE server details as an array of JavaScript objects (example code block below). An RTCPeerConnection is instantiated and an SDP is generated.

    [
      {
        urls: 'turn:111.222.333.444:54321',
        username: 'myAwesomeUsername',
        credential: 'mySecretPassword',  // or token
        credentialType: 'password'
      },
      {
        urls: 'stun:555.777.888.999:43210',
      },
    ]
    
  • Webhooks: Swell includes user-defined HTTP callback connection testing designed to test other server's connection to the web and ability to send data. The test insures that when an event occurs, the source site makes an HTTP request to the URL configured for the webhook.

Additional Features

  • Send Request Directly to Endpoint: You are able to immedeately send a request to an endpoint OR stage a request in your workspace for multi-level testing.
  • Scripting in Swell: Swell allows you to write assertion tests to aid in the test-driven development cycle of backend API services.
  • Workspaces: Swell allows you to save workspaces for easier testing of multiple requests.
  • Import/Export Workspaces: Swell allows you to import and export workspaces, making it easy to share collections with your team.
  • Preview: You can now view a rendered preview of certain API responses (HTML)
  • Collection Runner: You can also stage requests in the workspace and automate the process of sending off each one. No need to manually press send on each one, instead each request will fire off in the order of staging.
  • Schedule Tests: You can also automate sending requests to occur on a periodic basis.
  • Dark Mode: Swell allows you to toggle between light and dark mode when viewing the application.

Built With

  • Electron
  • React
  • Redux
  • Apollo Client
  • Websockets
  • gRPC-js
  • VM2
  • Chart.js
  • Bulma
  • IndexedDB
  • Chai
  • Mocha

Authors

License

This project is licensed under the MIT License

主要指标

概览
名称与所有者open-source-labs/Swell
主编程语言JavaScript
编程语言JavaScript (语言数: 6)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2018-11-13 01:01:39
推送于2025-02-14 19:29:21
最后一次提交2025-02-14 11:38:25
发布数25
最新版本名称v1.19.0 (发布于 )
第一版名称v0.1.1 (发布于 )
用户参与
星数1k
关注者数18
派生数147
提交数4.5k
已启用问题?
问题数79
打开的问题数8
拉请求数207
打开的拉请求数0
关闭的拉请求数74
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?