
Resty
A Go library for making HTTP, REST, and SSE requests with less boilerplate.
- Stars
- 11.8k
- Forks
- 829
- Licence
- MIT
- Language
- Go
- Last update
- 18 days ago
- Type
- Library
What it is
Resty is a Go library that helps a program send web requests to other services, such as calling a REST API or receiving server-sent events. It wraps Go's standard HTTP tools in a simpler interface. The README describes it as a simple client and points to resty.dev for documentation.
- Send GET or POST requests to a REST API from a Go service
- Consume a stream of server-sent events from a Go program
- Build an API client package for a third-party web service
Great for
- Go developers who call HTTP or REST APIs from their own code
- Teams that want a simpler client than the standard library's HTTP calls
- Projects that need server-sent events (SSE) on the client side
Not ideal for
- Non-programmers, since it is a code library rather than a ready-made app
- Projects not written in Go, since it only works with Go
- Projects that must target Go versions older than 1.23, as the README states go1.23 and above is required
How to get it
- 1
Install with a package manager
You'll need: Go 1.23 or newer
Install the v3 module
go get resty.dev/v3 - 2
Run it
- Install Go 1.23 or newer.
- Run go get resty.dev/v3 in your Go module.
- Import resty.dev/v3 in your code and create a client.
- Read the examples at https://resty.dev to make your first request.
- 3
Get the most out of it
- Read the documentation at resty.dev for request and response options
- Use the godoc reference at pkg.go.dev for the full API
- Check GitHub Discussions for real-world usage examples
Downloads
Strengths
- Simple interface over Go's HTTP client, per the README description
- Has a documented site at resty.dev and godoc references
- MIT licensed and has a CI and code coverage setup visible in the README
Trade-offs
- The README is short and defers most usage details to external documentation
- Requires a recent Go version (1.23 or newer)
- Only the library is described here; there are no binaries to download
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| resty (this) | 11.8k | Library | intermediate | 18 days ago | Go developers who call HTTP or REST APIs from their own code |
| chi | 23k | Library | intermediate | 19 days ago | Go developers building REST API services |
| awesome-go | 192k | Curated list | beginner | 4 days ago | Developers looking for a Go library for a specific task |
| gin | 89.5k | Library | intermediate | 27 days ago | Go developers building REST APIs |
| go-zero | 33.4k | Library | intermediate | 5 days ago | Go developers building REST APIs or microservices |
| kit | 27.4k | Library | advanced | 2.3 years ago | Go developers building service-oriented or microservice backends |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.