chai - a library for type safe http handlers via generics with automatic swagger generation

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • swag

    Automatically generate RESTful API documentation with Swagger 2.0 for Go.

  • chai uses swaggo/swag and spec for the generation of the swaggo spec. Both of those only work with swagger 2.0 at the moment. What should be possible is to generate swagger 2.0 and then convert it to swagger 3.0, but I guess it won't be possible to use all of the swagger 3.0 features this way.

  • chai

    chai - type safe http handlers with automatic swagger generation (by go-chai)

  • chai is an extension for a few popular http routers (chi, gorilla/mux) that adds support for type safe http handlers via Go 1.18's generics. This allows it to also generate a swagger spec by automatically detecting the request/response types, http methods, route paths and path params.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • chi

    lightweight, idiomatic and composable router for building Go HTTP services

  • chai is an extension for a few popular http routers (chi, gorilla/mux) that adds support for type safe http handlers via Go 1.18's generics. This allows it to also generate a swagger spec by automatically detecting the request/response types, http methods, route paths and path params.

  • mux

    Discontinued A powerful HTTP router and URL matcher for building Go web servers with 🦍

  • chai is an extension for a few popular http routers (chi, gorilla/mux) that adds support for type safe http handlers via Go 1.18's generics. This allows it to also generate a swagger spec by automatically detecting the request/response types, http methods, route paths and path params.

  • ogen

    OpenAPI v3 code generator for go

  • There is ogen for OpenAPI v3 code generation.

  • spec

    openapi specification object model (by go-openapi)

  • chai uses swaggo/swag and spec for the generation of the swaggo spec. Both of those only work with swagger 2.0 at the moment. What should be possible is to generate swagger 2.0 and then convert it to swagger 3.0, but I guess it won't be possible to use all of the swagger 3.0 features this way.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts