Skip to content

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
Step-by-step guide: how to use RestyInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Go 1.23 or newer

    Install the v3 module

    go get resty.dev/v3
  2. 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. 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

ProjectStarsTypeLevelUpdatedBest for
resty (this)11.8kLibraryintermediate18 days agoGo developers who call HTTP or REST APIs from their own code
chi23kLibraryintermediate19 days agoGo developers building REST API services
awesome-go192kCurated listbeginner4 days agoDevelopers looking for a Go library for a specific task
gin89.5kLibraryintermediate27 days agoGo developers building REST APIs
go-zero33.4kLibraryintermediate5 days agoGo developers building REST APIs or microservices
kit27.4kLibraryadvanced2.3 years agoGo 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.