ProductFree to use, no paid plans

The whole API platform, from first request to production

Swastik Codes is one place to design, send, test, mock, document, monitor and share APIs, for REST, GraphQL, gRPC, WebSocket, Socket.IO, SSE, MQTT and MCP. Use it in the browser, on your desktop, from the terminal, in VS Code, or inside your own server.

Get started freeSign inOpen the appRead the complete guide

  • 8protocols
  • 26features
  • 5ways to use it
  • 0paid plans
A REST request in the Swastik Codes web app with its JSON response

One account, five places

Five ways to use Swastik Codes

The same collections, environments and tests everywhere. Start in the browser and add the others when you need them.

  • Web app

    Runs in your browser, nothing to install.

    • All eight protocols in one app
    • A free account (GitHub or email) to send
    • Reaches localhost through swc bridge

    Open the app

  • Desktop app

    Windows, macOS and Linux; reaches localhost.

    • Requests run on your computer: localhost, LAN and VPN hosts
    • Windows, macOS (Apple silicon and Intel) and Linux
    • Works without an account; sign in to sync

    Download

  • Command line (swc)

    Scan code, run tests in CI, mock locally.

    • swc init turns your routes into a collection
    • swc run in CI, with JUnit and HTML reports
    • swc mock, swc compare, swc security and more
    npm install -g @swastik-codes/cli

    Every command

  • VS Code extension

    Requests and tests next to your code.

    • Collections and environments in the sidebar
    • Collections run in the Test Explorer
    • Project Sync keeps a collection in step with your code
    code --install-extension swastik-codes.swastik-codes

    About the extension

  • Docs for your server

    pip and npm: docs served by your own app.

    • FastAPI, Flask, Django, Express, NestJS, Fastify
    • Documentation plus a request collection
    • 22 KB for the browser, no dependencies
    pip install swastik-codes

    How it works

New · pip and npm

Docs for your server: like FastAPI's /docs, for any framework

Install swastik-codes or @swastik-codes/docs, add one line, and your own API serves full documentation at /swc/docs and a request collection at /swc/collection, both built from the OpenAPI document it already has.

FastAPI, Flask, Django
pip install swastik-codes

from swastik_codes import mount
mount(app)
Express, NestJS, Fastify, Hono
npm install @swastik-codes/docs

app.use(swastikCodes({ spec }))
  • Documentation with code samples in cURL, JavaScript, Python, Go and PHP
  • A collection page: params, auth, headers, JSON, form and file bodies, then Send
  • Edit the title, introduction, servers, sections and names in one swastik-codes.json
  • 22 KB for the browser (Swagger UI is about 427 KB) and no dependencies on your server
Documentation a FastAPI app serves at /swc/docs: the Place an order request with its body fields, a cURL sample and an example response

Design to production

The whole API lifecycle in one place

Each stage uses what the last one made: the definition becomes a collection, the collection gets tests, the tests become monitors, and the same requests become mocks and documentation.

  1. Design

    Write or import an OpenAPI, Swagger or AsyncAPI definition, lint it, tag versions and generate a collection that stays in sync with it.

  2. Send and debug

    Build requests for any protocol with params, headers, every body type and 12 auth schemes, read the response with a timing breakdown, and turn it into code.

  3. Organise

    Keep requests in collections and folders, switch between environments, and keep tokens in current values or an encrypted vault.

  4. Test

    Write pre-request and test scripts with swc.* (Postman scripts run as they are), run whole collections with data files, and find flaky, untested or insecure endpoints.

  5. Automate

    Build a collection from your code, keep it in sync on every push, run it in CI, and chain requests into flows triggered by webhooks.

  6. Mock

    Turn saved examples into a hosted mock API with request matching, delays and templates, or run the same mock on your computer.

  7. Document

    Publish a collection as searchable documentation with code samples, or let your FastAPI, Express or NestJS app serve its own docs.

  8. Load and monitor

    Push saved requests with virtual users and live percentiles, then schedule the collection and get alerts by email, Slack, Teams or webhook.

  9. Share

    Work in team workspaces with roles, comments, version history, forks and pull requests, and publish APIs on the marketplace.

26 features

Every feature

Each one has its own page with how it works, examples and answers to common questions.

Compare the five

Which one should I use?

Most people use two or three: the web app every day, the desktop app or swc bridge for local APIs, and the CLI in CI.

CapabilityWeb appDesktop appCommand lineVS Code extensionDocs for your server
InstallNothingInstallerOne command or npmFrom the Marketplacepip or npm package
AccountFree account to sendOptional, to syncOptional, for workspacesOptional, adds your collectionsNot needed
Reaches localhostWith swc bridge Yes Yes YesIts own server
Runs collections Collection runner Collection runner swc run Test ExplorerNo
Best forEveryday work and teamsLocal and private APIsCI and automationWorking next to your codeYour API's readers

Five minutes

Get started in three steps

  1. Create a free accountSign up with GitHub or email at swastik.codes/signup. No credit card.
  2. Bring your requestsImport Postman, OpenAPI, Insomnia, HAR or a cURL command, or connect a GitHub repository.
  3. Send, test and shareSend a request, add a test, run the collection and invite your team.

Follow the complete guide

Frequently asked questions

What is Swastik Codes?

Swastik Codes (SWC) is an API platform: an API client for REST, GraphQL, gRPC, WebSocket, Socket.IO, SSE, MQTT and MCP, with tests, a collection runner, load tests, mock servers, monitors, API design, published documentation and team collaboration. It runs in the browser, as a desktop app, as the swc command line, in VS Code, and as docs packages your own server can serve.

Is it free?

Yes. Swastik Codes is free to use today, including teams and shared workspaces, and there are no paid plans. The web app needs a free account (GitHub or email) to send requests; the desktop app, the CLI and the docs packages also work without one.

Which one should I start with?

Start with the web app: nothing to install, and everything you save syncs to the desktop app and VS Code later. Add the desktop app or swc bridge when you need localhost or a private network, the swc CLI for CI, and the pip or npm docs package when your own API should serve documentation.

Can my own API serve Swastik Codes documentation?

Yes. pip install swastik-codes (FastAPI, Flask, Django) or npm install @swastik-codes/docs (Express, NestJS, Fastify, Hono, 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, and a swastik-codes.json file edits the text without code changes.

Can I move from Postman?

Yes. Import Postman collections (v2.0, v2.1 and v3), environments, globals and data dumps. Scripts written against the pm.* API run unchanged, because pm and swc are the same object in the sandbox.

Where is my data kept?

Local workspaces stay in your browser or on your computer. Cloud workspaces sync through your account so teammates and your other devices see them. Current values of variables never leave your device, and secrets can live in an encrypted vault.

More answers in the FAQ

Free to start · no install

Start with the request you are debugging today

Create a free account, then import a collection, paste a cURL command or point it at a GraphQL endpoint.

Get started free Sign inOpen the app

  1. Learn step by stepShort lessons for every feature.
  2. See what is newThe changelog, newest first.
  3. Ask us anythingThrough the contact page.