go-japi
Japi is a fast & simple HTTP API library that automatically marshals JSON payloads and uses RFC7807 for problem details (by jarrettv)
flamego
A fantastic modular Go web framework with a slim core but limitless extensibility (by flamego)
go-japi | flamego | |
---|---|---|
4 | 1 | |
17 | 554 | |
- | 0.9% | |
1.8 | 5.8 | |
almost 2 years ago | about 1 month ago | |
Go | Go | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-japi
Posts with mentions or reviews of go-japi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-04.
-
What's the reason behind the design decision to not return a response value from handlers?
Check out https://github.com/jarrettv/go-japi if you are building a JSON HTTP API. Also `go-don` is faster and supports other encoding formats.
-
Is it possible to write a well-typed controller/handler in Go?
go-japi and go-don are two small libraries that will do what you want.
-
Connect, a better gRPC
The generic request and response wrappers seem interesting but they do tend to make the handler signature very verbose with little upside. For example: `type Handle[T any, O any] func(ctx context.Context, request T) (O, error)` would be really sweet. See go-japi for example.
-
japi is a JSON HTTP API go library with generics
Japi is a fork and simplification of another library. The upstream library go-don adopted fasthttp and our use case needed to stay on standard net/http.
flamego
Posts with mentions or reviews of flamego.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-30.
-
Is it possible to write a well-typed controller/handler in Go?
Flamego and it's predecessor Macaron also allow a lot of flexibility in the handler definition.
What are some alternatives?
When comparing go-japi and flamego you can also consider the following projects:
Macaron - Package macaron is a high productive and modular web framework in Go.
there - ⚡️ Robust Web Framework to build Go Services
grpc-gateway - gRPC to JSON proxy generator following the gRPC HTTP spec
connect-go - Moved to https://github.com/connectrpc/connect-go
restruct - RESTruct is a rest router written in Go to automatically create routes based on your structs.
goa - 🌟 Goa: Elevate Go API development! 🚀 Streamlined design, automatic code generation, and seamless HTTP/gRPC support. ✨
go-respond - A Go package for handling common HTTP JSON responses.
gRPC - The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
chi - lightweight, idiomatic and composable router for building Go HTTP services