Hacker News new | past | comments | ask | show | jobs | submit login
Design driven API development with type-safety across the stack (lawrencejones.dev)
4 points by lawrjone 3 months ago | hide | past | favorite | 2 comments

Author here!

Having introduced Goa into a number of projects over the 18 months, I've wanted to shout about this toolchain for a while.

Goa allows you to design your APIs with a DSL, then generate an OpenAPI or Protobuf schema from the design. You can trust those specs match your API as Goa produces Go backend interfaces too, which makes it even more attractive to use tools like openapi-generator to produce clients.

If your API is used by a frontend, you can use TypeScript clients to get type-safe frontend forms against your API, turning typos into compiler errors.

This post can help you introduce Goa to your project, and explains why it's such a productivity boost.

We use Goa at incident.io. It's excellent — provides a real boost to our speed, and allows us to skip a lot of non-differentiated work.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact