Swell is an API development tool that enables developers to test HTTP2, GraphQL endpoints, as well as ones served over streaming technologies including Server-Sent Events (SSE), WebSockets, gRPC, WebRTC, and OpenAPI.
Visit www.getswell.io to download the latest release.
Swell is available for OSX, Linux, and Windows.
Swell is a one-stop shop for sending and monitoring your API requests:
- Send and monitor streams over HTTP/2 (including SSEs) and WebSockets
- Create GraphQL queries, introspections, mutations, and subscriptions
- Stress testing HTTP/2 and GraphQL endpoints
- Create your own HTTP/2 mock server
- Store workspaces of multiple requests for later use
- Import and export workspaces locally
- Compose test suites in JavaScript with Chai-style TDD/BDD assertion syntax
We highly encourage you to check out the DEV-README.md
in the docs
folder. We've included a comprehensive guide on the latest updates, which areas would benefit from future iterations, as well as details of core components.
-
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, with the ability to revert to HTTP1.1 for legacy servers. Multiple concurrent streams are allowed for each connection.
-
GraphQL: Swell includes full support for all three root types of GraphQL - queries, mutations, and subscriptions – as well as Introspection. Variables are also supported, making creating queries easy.
-
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.
-
WebSockets (WS): Swell enables connecting directly to WebSocket servers with an HTTP handshake, with developers able to send messages to the connected WS server directly. All outgoing and incoming messages are displayed in real time.
-
gRPC: Swell includes full support for all four streaming types of gRPC - unary, client stream, server stream, bidirectional stream.
-
tRPC: Swell includes full support for all methods of TypeScript Remote Procedure Calls including batch call support for queries and mutations as well as subscription
Calls are currently being made using by using http get and post request using TRPC's http RPC specification (See RPC docs). TLDR- inputs for query procedures will be turn into uri-encoded json string and send as query param while inputs for mutate procedures will be store inside of the body.
Batch requests can be made by adding multiple procedures before sending out the request, all query procedures will get batch together into one singular get request and all mutate procedures will get batch together into one singular put request, if there are mixture of query and mutate procedures call in one request, the app will send out both a post and get request concurrently and combine the response into one response.
Nested endpoint must follow the general format parentEndpoint.childEndpoint.grandchildEndpoint. For example:
client.user.update.mutate({ userId: '1', name: 'Luke' });
A request to the above endpoint must have the mutate option selected from the drop down menu, must have an endpoint of .user.update and a input body of {"userId": "1","name": "Luke"}
See tRPC docs for more information on sending tRPC requests or setting up a tRPC server.
-
Stress testing for HTTP/2 and GraphQL: Test your server backend with Swell's stress testing feature to ensure your server can manage expected and unexpected loads accordingly
-
Send Requests Directly to an Endpoint: You are able to immediately send a request to an endpoint OR stage a request in your workspace for multi-level testing.
-
Scripting in Swell: If you favor test-driven development, Swell allows you to write assertion tests to aid defining and testing backend API services.
-
Workspaces: Swell allows you to save workspaces for easier testing of multiple requests.
-
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.
-
File Upload/Dark Mode: If you click on the body drop down menu, you can select binary, which allows you to upload a file that can be sent along with any request to test backend file upload routes. Additionally, you can toggle dark mode via the button in the top right-hand corner.
-
Mock Server: Swell allows you to create your own HTTP/2 mock server to facilitate front-end development without depending on a fully built backend server.
-
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.
-
WebRTC: Swell makes it easy to test WebRTC applications for both video and text channels. Currently Swell supports manual entry of SDPs.
-
OpenAPI: Swell supports the enumeration and execution of REST and RPC API requests as defined in a user-provided OpenAPI document.
- Electron
- React
- React Router
- Material UI
- Redux
- Apollo Client
- Websockets
- gRPC-js
- tRPC
- VM2
- Chart.js
- Bulma
- IndexedDB
- Chai
- Mocha
- Playwright
- Karol Krzywon - kkrzywon
- Howard Sun - howardCodeGit
- Carter Sarkela - CarterSarkela
- Adeeb Bayat - adeebbayat
- Michael Underbrink - MUnderbrink90
- Aaron Cruz - AArCruz
- Katya Villano - k-villano
- Brooke Sauro - bhsauro
- Jeff Levin - levinjn01
- Alec Derritt - Blast61
- Kevin Li - myttins
- Tommy Huynh - tthcodes
- Nitesh Manem - NManem
- Chad DeGange - cdegange
- Timmy Zhu - timzhu15
- Christina Walton - CElizOwens
- Akeem Smith - AkeemESmith
- William Murphy - olsoninoslo
- Chris Suzukida - csuzukida
- Fred Kim - Fredkim21
- Jason Huang - jjhuang3
- Nattie Chan - nattiechan
- Jack Sonoda - jackksono
- Jaden Nguyen - jaden-nguyen
- Taner Malmedal - tannermalmedal
- Mihran Baytaryan - mihran-baytaryan
- David Beame - KingzandBean
- Grace Kim - gracekiim
- Alex Sanhueza - alexsanhueza
- Wyatt Bell - wcbell51
- John Madrigal - johnmadrigal
- Michael Miller - mjmiguel
- Hideaki Aomori - h15200
- Matt Gin - chinsonhoag
- Nick Healy - nickhealy
- Grace Spletzer - gspletzer
- Stephanie Wood - stephwood
- Anthony Terruso - discrete projects
- Brandon Marrero - brandon6190
- Jason Ou - jasonou1994
- Kyle Combs - texpatnyc
- Kwadwo Asamoah - addoasa
- Abby Chao - abbychao
- Amanda Flink - aflinky
- Kajol Thapa - kajolthapa
- Billy Tran - btctrl
- Paul Rhee - prheee
- Sam Parsons - sam-parsons
- Nancy Dao - nancyddao
- Evan Grobar - egrobar
- Dan Stein - danst3in
- Amruth Uppaluri - amuuth
- Yoon Choi - cyoonique
- Nathaniel Adams - nathanielBadams
- Robin Yoong - robinyoong
- Gary Slootskiy - garyslootskiy
- Sam Haar - samhaar
- Edward Cho - edwardcho1231
- Miguel Gonzalez - MigGonzalez
- Jason Liggayu - jasonligg
- Warren Tait - whtait
- Nathan Fleming - njfleming
- Konrad Kopko - konradkop
- Andrea Li - Andrea-gli
- Paul Ramirez - pauleramirez
- TJ Wetmore - TWetmore
- Colin Gibson - cgefx
- Ted Craig - tedcraig
- Anthony Wong - awong428
- John Jongsun Suh - MajorLift
- Christopher Pan - ChristopherJPan
- Adrian Uesugui - auesugui
- Jennifer Wu - jsh-wu
- Jacob Viesselman - JacobViesselman
- Michael Prince - MichaelGPrince
- Genevieve Annable - gigifeeds
- Jay Wall - hanswand
- Sam Pyo - samhpyo
- Drew Pomatti - thedrewery
- Kurtis Waterbury - kurto8
- Yale Yng-Wong - ywy-w
- Evelin Goldin - evelingoldin
- Alexander Adams - alex-e-adams
- Ethan Sclarsky - esclarsky
- Travis Lovis - tlovis
- HyeJin Kim - hyejinkim
- Alexa Nunes - A13xaNunes
- Michael Smith - Parkreiner
This project is licensed under the MIT License