Ready, steady, goa: our API setup
incident.io defines its HTTP API in Goa's design-first DSL, which generates net/http transport handlers, validation code, typed Go service interfaces, OpenAPI 3.0 specs and Go clients. This replaces hand-written Gin handlers with manual parsing, auth and serialization. On top of Goa, a `make generate-api` pipeline pretty-prints and merges the OpenAPI output and filters it into internal, mobile and public variants. Those variants feed specialised clients: typed TypeScript for the React frontend, lean mobile clients and Go test clients. A single DSL change then flows through to server code, docs and compile-time-checked frontend types.
Related posts
- Building a great developer experience at a startup
incident.io mediumAdeptincident.io treats developer experience as leverage for sustaining engineering pace without accruing technical or product debt. Their practices include hot reloading, CI kept under roughly 3 minutes, PR reviews within an hour or two, Slack block-kit previews, and a Go `toolbox` CLI for running code locally or in production. Strong typing across Go and TypeScript is reinforced by a type-safe DB library, goa-generated OpenAPI clients and an exhaustive-enum `assertUnreachable` pattern. Reusable building blocks such as engine conditions, actors and `useMutation` hooks sit alongside debugging aids: per-engineer real GCP dev environments, tracing, Sentry sourcemaps and structured logs linked to traces.
- Building Workflows, Part 1 — Core concepts and the Workflow Builder
incident.io mediumAdeptincident.io's Workflows feature ("when X happens, if Y, do Z") is built as a small, statically typed programming language in Go. Resources act as the type system, steps are functions over resources, triggers build a scope of named references, and the Workflow Builder UI serves as the IDE. Each resource, step and trigger lives in its own file, implements a narrow interface and registers itself. Reflection-backed operation methods on filterable resources let the backend type-check conditions and drive dynamic form generation in the frontend through an HTTP API.
- DevEx matters for coding agents, too
incident.io mediumAdeptincident.io cut its typical lint-plus-compile feedback loop from over 90 seconds to under 10, arguing that fast toolchains matter even more when AI coding agents generate code faster than slow tools can validate it. The gains came from replacing ESLint and Prettier with Biome (40s to under 1s), adopting the preview Go-based TypeScript compiler tsgo while keeping tsc on CI as a safety net, and switching tasks from Node/Yarn to Bun. The team also replaced the Java OpenAPI Generator with a ~700-line Bun/TypeScript generator, built with Claude Code to match the old output exactly, which cut generation from 45s to 0.21s. An upstream Goa PR added parallel file writing and cut its generation time from 52s to 10s.
- Auto-generating MCP Servers from OpenAPI Schemas: Yay or Nay?
Neon easyNovice
Auto-generating an MCP server as a 1:1 mapping of an OpenAPI spec works poorly. LLMs struggle to pick among hundreds of similar tools (GitHub's API has over 600 operations), handle complex JSON payloads and optional parameters badly, and resource-centric REST endpoints don't match the task-level workflows agents perform. The recommended hybrid is to use codegen as a starting point, aggressively prune the generated tools, and rewrite descriptions to explain when and why to use each one. Then add higher-level tools that wrap multi-step workflows, while staying cautious about statefulness. Neon built its open-source MCP server this way on top of its TypeScript SDK, including a workflow for running and testing database migrations.
- Deploying a Simple Go/Gin Application on Heroku
Heroku Engineering mediumAdeptA Go/Gin REST API deploys to Heroku with three files beyond the source: go.mod/go.sum (cleaned with go mod tidy) and a one-line Procfile. The walkthrough covers installing Go 1.24, initializing a module, adding Gin, testing endpoints locally with curl, creating the app with the Heroku CLI, and pushing via the git remote so the Go buildpack compiles the binary. If the service is unreachable after deploy, point the Procfile at the built binary (./bin/go-gin) instead of `go run main.go`, then verify with `heroku logs --tail`.