r/golang
12h ago
u/Krockxz
Gostman: one Go request engine behind a desktop app, a CLI and a web proxy
newbie
I'm the author. Gostman is a free, open source API client for REST, GraphQL, gRPC and WebSocket. I'm sharing how it's put together, since most of it is Go.
One engine. All request logic lives in engine/: variable substitution, auth, body encoding, redirects, the cookie jar, OAuth 2, proxy and certificate handling. It uses the standard library plus x/net/publicsuffix. The Wails v2 desktop app, the CLI and the Vercel function behind the web version all call it, so the same request is built and sent the same way in each.
The CLI. gostman run runs a collection from a folder or an export, writes JUnit output, and exits non-zero when a test fails, so it works in CI. Pre-request and post-response scripts run on goja, using a bundled JS file shared with the app. goja is pinned to a commit that still builds on Go 1.24.
MCP server. gostman mcp lets a coding agent send saved requests.…