# Gostman: an API client where desktop, CLI and web proxy share one Go request engine

**URL:** <https://forum.golangbridge.org/t/gostman-an-api-client-where-desktop-cli-and-web-proxy-share-one-go-request-engine/42806>\
**Category:** Releases\
**Created:** [November 12, 2026, 6:07pm UTC](https://forum.golangbridge.org/t/gostman-an-api-client-where-desktop-cli-and-web-proxy-share-one-go-request-engine/42806 "2026-11-12T18:07:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunalgoesbyken](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/kunalgoesbyken/32/18045_2.png) [@kunalgoesbyken](https://forum.golangbridge.org/u/kunalgoesbyken)\
**Post date:** [November 12, 2026, 6:07pm UTC](https://forum.golangbridge.org/t/gostman-an-api-client-where-desktop-cli-and-web-proxy-share-one-go-request-engine/42806/1 "2026-11-12T18:07:27Z")

</div>

I’ve been building an API client in Go since April 2025, mostly because every one I liked wanted me to sign in. It’s called Gostman: a Wails desktop app, a CLI, and a web version at [Gostman — Free, Open Source API Client and Postman Alternative](http://gostman.com/web). MIT licensed.

The part I think this forum would care about is how it’s put together. For a while I had three copies of the request logic (a JS one in the frontend, one in the desktop app’s Go code, one in the Vercel proxy), and they drifted exactly how you’d expect. `string(bodyBytes)` was quietly corrupting binary responses, JSON numbers above 2^53 were changing value because they went through float64, and cookies set on a redirect hop got dropped because there was no jar.

Now there’s one `engine` package with a single entry point:

```go
func Send(ctx context.Context, req Request, policy Policy) (Response, error)

```

Each front end passes its own `Policy` (timeouts, body limits, whether private networks are allowed). The public proxy turns on `BlockPrivate`, which swaps in a dialer that resolves the host, rejects it if any IP is private or reserved, then dials the IP it actually checked, so a DNS rebind can’t slip in between the check and the connect.

A few other Go bits:

- the CLI runs pre-request/test scripts in goja, with a watchdog that times out the VM and samples heap via `runtime/metrics` every 50ms, calling `vm.Interrupt` if a script blows past its allowance
- `gostman mcp` is a hand-written MCP server (stdio + Streamable HTTP on loopback) so a coding agent can call your API through a collection. A redactor replaces secret values, including URL-encoded, JSON-escaped and base64 forms, with `{{label}}` markers before anything reaches the model
- gRPC works from server reflection or .proto files via protocompile, no protoc needed
- collections are plain YAML files you can commit

Repo: [GitHub - kunalgoesbyken/gostman: Free, open source API client for REST, GraphQL, gRPC and WebSocket. Desktop, web and CLI. No account. · GitHub](https://github.com/kunalgoesbyken/gostman)  
Longer write-up with diagrams: [https://medium.com/@kunal.rc/i-built-an-open-source-postman-alternative-in-go-no-account-one-engine-for-desktop-cli-and-web-42fe80e4d772](https://medium.com/@kunal.rc/i-built-an-open-source-postman-alternative-in-go-no-account-one-engine-for-desktop-cli-and-web-42fe80e4d772)

Would really like feedback on the engine/Policy split and the SSRF dialer in particular. If something there looks wrong to you, I’d rather hear it now.

---

<div class="post-metadata">

**Author:** ![FelixYoung](https://forum.golangbridge.org/letter_avatar_proxy/v4/letter/f/7cd45c/32.png) [@FelixYoung](https://forum.golangbridge.org/u/FelixYoung)\
**Post date:** [November 12, 2026, 7:23pm UTC](https://forum.golangbridge.org/t/gostman-an-api-client-where-desktop-cli-and-web-proxy-share-one-go-request-engine/42806/2 "2026-11-12T19:23:40Z")

</div>

I’d start by asking which layer is actually failing — the symptom and the cause rarely share a zip code.
