The API platform for every protocol, in your browser
Swastik Codes (SWC) sends, tests, mocks, monitors and documents REST, GraphQL, gRPC, WebSocket, Socket.IO, SSE, MQTT and MCP APIs. Your Postman collections and pm.* scripts open as they are, and the desktop app is an 11 MB download.
A POST request that returned 201 Created in 84 ms, with its timing breakdown, body and three passing tests.The request builder
GitHub Actions / api-testsPassed
# .github/workflows/api.yml$ swc run shop.json -e staging.json --reporter junit
✓ POST /v1/orders 201 84 ms✓ GET /v1/orders/{id} 200 31 ms✓ POST /v1/orders/{id}/pay 200 112 ms✓ GET /v1/products?q=shoe 200 27 ms … 20 more requests✓ 48 passed 0 failed 2.1 sreport written to junit.xml
Exit code 0Also GitLab CI, Jenkins, Azure
swc runs a collection against staging in CI: 48 tests pass in 2.1 seconds and a JUnit report is written.Run tests in CI
Mock server / Shop APILive
GET/api/mock/m_3f9c/v1/orders/42
x-mock-response-code404
404 Not Found3 msexample matched
{
"error": "order_not_found",
"message": "No order with id 42"
}
200 Order founddefault
404 Order not foundpicked by header
409 Already paid
Last 100 calls loggedDelay 0 ms
A hosted mock answers from saved examples; a request header picks the 404 example so a UI can test its error state.Mock servers
WebSocket / Order eventsConnected
WSSapi.acme.example/liveSend
↑{"subscribe":"orders"}
↓{"ok":true,"channel":"orders"}
↓{"event":"order.created","id":"ord_7781"}
↓{"event":"order.paid","id":"ord_7781"}
↓{"event":"order.shipped","id":"ord_7781"}
↑ping
6 messagesAlso Socket.IO, SSE, MQTT, gRPC
A WebSocket session subscribes to order events and logs every frame with a timestamp.WebSocket client
localhost:8000 / swc/docsFastAPI
$ pip install swastik-codes
from swastik_codes import mount
mount(app) # /swc/docs and /swc/collection
Start here
POSTIssue a token
Orders
POSTPlace an order
GETGet an order
POSTCancel an order
Place an order
POST /orders
lines array required
email string required
coupon string
About 29 KB for the browserAlso Express, NestJS, Django
pip install swastik-codes and one line in FastAPI serve documentation and a request collection at /swc/docs.Docs for your server
swastik.codes/app
Send a request with an environment, read the response and see every test pass.
swastik.codes/app
Run a whole collection with its tests; results, status codes and timings arrive as they finish.
swastik.codes/app
Connect to a WebSocket server and send messages; every frame is logged with its size and time.
swastik.codes/app
Send the same requests to Production and Staging and see exactly which fields differ.
swastik.codes/app
Find missing security headers, open CORS and endpoints that answer without credentials.
swastik.codes/app
Paste a cURL command, or bring Postman, Insomnia, OpenAPI and HAR files, and keep working.
swastik.codes/app
Publish a collection as searchable API docs with code samples in the language each reader picks.
swastik.codes/marketplace
Find a public API in the marketplace, star it and fork it into your workspace in two clicks.
A native Rust engine instead of a bundled copy of Chromium. We ran Swastik Codes 0.1.0, Postman 12.33.4, Bruno 4.3.0, Insomnia 13.3.1 and Hoppscotch 26.9.0 on the same Linux machine, one at a time.
The web app needs 382 KB to open; hoppscotch.io transfers 6.6 MB.
Connect GitHub and get a collection from your code
Pick a repository and a branch. Swastik Codes reads the API routes in the code, with their methods, paths, parameters and request bodies and which ones need a login, and builds a collection you can send and test right away. Every push to that branch updates it, and the names, examples and tests you add are kept.
Connect GitHubPublic and private repositories, including your organisations.
Pick a repository and branchEvery branch is listed, the default first, with search.
Send and testRoutes arrive as requests with parameters and example bodies.
Stay in syncEach push rescans the branch, and published docs follow.
FastAPI
Django
Flask
Express
NestJS
Next.js
Spring
Laravel
Go
Rails
ASP.NET
The code is read on our server and deleted right after; nothing in it is run.
Find, integrate and test APIs from Claude and ChatGPT
Connect your AI assistant to Swastik Codes with one URL. It can search thousands of public APIs from their own descriptions, write the integration in your language with working code, and send real test requests, so its answers come from live data instead of memory.
Read the full API docsBase URL, the exact auth header, the keys you need and every endpoint's request and response, written for agents.
Get the integration stepsKeys, environment variables, install and the first requests, in 30 languages.
Test it liveHTTP, GraphQL, WebSocket, Socket.IO, SSE, MQTT, gRPC and MCP sessions.
Claude
ChatGPT
Claude Code
Cursor
VS Code
https://swastik.codes/mcp
Sign in with OAuth or an API key, approve what the assistant may do, and disconnect it any time. Test requests only reach public addresses, and their contents are not stored.
Integrate Razorpay into this project and test it with my test keys.
get_api_docsRazorpay · 23 endpoints
get_integration_guideNode.js
send_http_requestPOST /v1/orders
200 OK in 214 ms · order created
Orders are created on your server with keys from RAZORPAY_KEY_ID and RAZORPAY_KEY_SECRET, and payments are only fulfilled after the signature check…
From the first request to production checks
The request you are debugging, the tests that guard it, the run in CI and the checks before a release, all in the same collection.
01Debug
Send a request and know why it failed
A request builder that keeps up with real APIs: variables from environments, twelve auth schemes, timings for every phase and scripts that run before and after each request.
Postman-compatible pm.* scripts, chai assertions and JSON Schema checks
OAuth 2.0 with PKCE, AWS Signature v4, Digest, NTLM and more
Code for 30 targets, from cURL and fetch to Go, Java and Rust
Run folders and collections with iterations, CSV or JSON data and delays, then export JSON, JUnit or HTML reports. The same run works in your pipeline with the swc CLI.
Drag to reorder, pick requests, stop on the first failure
Data-driven runs from CSV and JSON files
Run in GitHub Actions, GitLab or Jenkins with one generated file
Streaming APIs are first-class, not an afterthought
WebSocket, Socket.IO, Server-Sent Events, MQTT, GraphQL subscriptions, gRPC streams and MCP servers, with saved messages and a searchable log of every frame.
Socket.IO v2 to v4 with events, listeners and acks
Run a collection against two environments and get every difference: status, headers and each JSON field. Repeat runs to find flaky tests, and stop breaking changes in review.
Staging against production, with ids and timestamps ignored
Security checks read every response for missing headers, CORS that trusts any website and leaky errors, then re-send requests without credentials to find endpoints that do not check them.
Labelled with the OWASP API Security Top 10
Fuzz inputs with wrong types, empty and boundary values
An access matrix that sends every request as every role
The collection your team tests every day becomes public API documentation: every request with its parameters, bodies and saved examples, your Markdown pages and a search box.
Code samples in cURL, JavaScript, Python, Go, Java and more
Secret values are never published
A Run in Swastik Codes button and a Postman v2.1 download
The API marketplace lists collections from organizations and developers. Visitors search by name or tag, star what they need and fork a copy into their own workspace, without your secrets.
Publish as yourself or as your company
Verified badge for organizations that prove their domain
Import Postman collections and environments and keep working. Scripts written against Postman's documented pm.* API run unchanged, and export back to Postman v2.1 or OpenAPI 3 is always one click away.
swc is one small executable for macOS, Linux and Windows. Turn a project's routes into a collection, run collections and security checks in CI, compare environments, and let the web app reach localhost.
macOS and Linux
curl -fsSL https://swastik.codes/install.sh | sh
Windows PowerShell
irm https://swastik.codes/install.ps1 | iex
npm (any platform)
npm install -g @swastik-codes/cli
The script picks the build for your computer, checks it against our published SHA-256 sums and puts swc on your PATH. Run it again to update. The npm package installs the same tool, and fits CI pipelines that already use Node.js.
# link this project's code to a collection
$ swc init
✓ 24 requests from fastapi (24); 38 files in 61 ms
✓ saved "Shop API"
# run its tests here or in CI
$ swc run shop.json -e staging.json
✓ 48 passed 0 failed 2.1 s
# staging against production, field by field
$ swc compare shop.json -e staging.json --against prod.json
# after the code changes
$ swc sync
# localhost for the web app, requests for your AI assistant
$ swc bridge
$ swc mcp
Desktop app for Windows, macOS and Linux
Call localhost and private networks from your own machine
The desktop app runs every request in a native engine on your computer, so it reaches your dev server, Docker containers, LAN devices and VPN-only hosts, with no CORS limits and no relay in between. Signing in syncs the same workspaces as the web app.
Every protocol, including local STDIO MCP servers
Collection runs and load tests use your own CPU and network
Windows installer, one .dmg for Apple silicon and Intel Macs, and .deb, .rpm and AppImage for Linux
Send requests and run tests without leaving your editor
Your collections and environments sit in the VS Code sidebar. Send a request next to the code that serves it, run a collection in the Test Explorer, and keep the collection in step with your routes as the code changes.
Params, headers, body, auth and scripts in one tab; paste a cURL command to start
Collections run as tests, with security, compare and load labs on the right-click menu
Your API key stays in the system keychain, and requests run in a small native process that stops when idle
Docs and a request collection, served by your FastAPI, Express or NestJS app
Like FastAPI's /docs, for any framework. Install one package, add one line, and your server shows full documentation and a collection readers can send requests from. Python apps use the OpenAPI document they already have; Node.js apps don't need one, because the package reads your routes.
Python: FastAPI, Flask, Django
pip install swastik-codes
from swastik_codes import mount
# adds /swc/docs and /swc/collection
mount(app)
Node.js: Express, NestJS, Fastify, Hono
npm install @swastik-codes/docs
app.use(swastikCodes()) # before your routes
About 29 KB for the browser, against about 427 KB for Swagger UI; no dependencies on your server
Code samples in five languages, and Send with params, auth, headers and form-data, raw or binary bodies
Edit the title, introduction, servers, sections and names in one JSON file, no redeploy
Every idea is read by the people who build Swastik Codes. You can follow yours from Received to Shipped, and when it ships we put your name next to it.
01You share the problem in a minute, from here or the app.
02We review it and answer on your idea.
03We build it and email you at every step.
04You are credited on the ideas page, if you want.
SWC is short for Swastik Codes, the web-based API client and API platform on this site. The same three letters name its command-line tool (swc) and the swc.* object in test scripts. It is a different project from the SWC JavaScript compiler.
Is Swastik Codes free?
Yes. Swastik Codes is free to use today, and there are no paid plans. The web app needs a free account (GitHub or email), which lets you send requests, use the protocol clients, sync workspaces and work with a team. The desktop app and CLI also work without one.
Can I import my Postman collections?
Yes. Swastik Codes imports Postman collections (v2.0, v2.1 and v3), environments, globals and data dumps, plus Insomnia exports, OpenAPI 3 and Swagger 2, cURL commands, HAR files, RAML and WSDL. Pre-request and test scripts written against the documented pm.* API run in its sandbox unchanged, and can be converted to its own swc.* name on import.
Do I need to install anything?
No. Swastik Codes runs in a modern browser at swastik.codes/app. If you want requests to leave from your own computer, a desktop app for Windows, macOS and Linux is available at swastik.codes/download.
Can I use Swastik Codes from Claude or ChatGPT?
Yes. Add https://swastik.codes/mcp as a custom connector in Claude or ChatGPT, or as an MCP server in Claude Code, Cursor or VS Code, and sign in. Your assistant can then search thousands of public APIs, read their endpoints and authentication, write integration code in 30 languages and send live test requests over HTTP, GraphQL, WebSocket, MQTT and more.
Can it reach APIs on localhost or my private network?
Yes. Run swc bridge on your computer and switch on Local bridge in the app: requests from the browser then run on your machine and reach localhost, your LAN and VPN hosts, with no extension or CORS settings. The desktop app for Windows, macOS and Linux does the same for every protocol.
Is it lighter than Postman?
In our side-by-side test the Swastik Codes desktop app used 434 MB of memory a minute after launch, against 585 MB for Postman, and its Windows installer is 11 MB against 204 MB. The web app loads 382 KB to start. The benchmarks page has the method and the other apps we measured.
Can I sign up with GitHub?
Yes. Continue with GitHub works on the web and in the desktop app. Signing in reads only your profile and verified email address, never your repositories, and you can add a password later. Repository access is a separate step that you only take if you connect GitHub to build collections from your code.
Can it build a collection from my GitHub repository?
Yes. Connect GitHub, pick a repository (public or private) and a branch, and Swastik Codes reads the API routes in the code and builds a collection you can send and test. Every push to that branch updates the collection, and the names, examples and tests you added are kept. The code is read on our server and deleted right after; nothing in it is run.
How do I install the swc CLI?
On macOS or Linux run curl -fsSL https://swastik.codes/install.sh | sh, and on Windows run irm https://swastik.codes/install.ps1 | iex in PowerShell. The script downloads the right build, checks it against our published SHA-256 sums and puts swc on your PATH. Run it again to update. With Node.js, npm install -g @swastik-codes/cli installs the same tool.
Is there a VS Code extension?
Yes. The Swastik Codes extension puts your collections and environments in the VS Code sidebar, sends requests from the editor and runs collections as tests in the Test Explorer. Install it from the Visual Studio Marketplace: open the Extensions view, search for Swastik Codes and click Install, or run code --install-extension swastik-codes.swastik-codes. It runs on Windows, macOS and Linux.
Can my FastAPI or Express app serve Swastik Codes docs, like Swagger UI?
Yes. pip install swastik-codes for FastAPI, Flask and Django, or npm install @swastik-codes/docs for Express, NestJS, Fastify, Hono and Koa, then add one line. Your server then shows documentation at /swc/docs and a request collection at /swc/collection, built from its OpenAPI document, or in Node.js from its routes. The page is about 29 KB, and a swastik-codes.json file lets you change the title, introduction, servers and grouping without touching code.
Which protocols are supported?
HTTP and REST, GraphQL (including subscriptions), gRPC (unary and streaming, from .proto files or server reflection), WebSocket, Socket.IO v2 to v4, Server-Sent Events, MQTT 3.1.1 and 5, and the Model Context Protocol (MCP) over Streamable HTTP or HTTP+SSE.