reactiveui/refit
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface. observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 6
- age_days: 4790
- days_rel: 15
- days_push: 8
- n_releases_24m: 20
Adoption not part of the score
9561 stars · 787 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Refit is a type-safe REST client library for .NET that turns REST APIs into live C# interfaces, generating HttpClient-based implementations automatically. Inspired by Square's Retrofit, it supports JSON/XML serialization, HttpClientFactory integration, and declarative client testing.
Use cases
- call a REST API from C# with type-safe interfaces
- avoid writing boilerplate HttpClient code in .NET
- integrate API clients with HttpClientFactory and dependency injection
- consume JSON or XML web services in Xamarin or .NET MAUI apps
- unit test generated API clients with stubbed responses
When to choose
- you want Retrofit-style declarative REST clients in .NET
- you prefer interface-based API definitions over manual HttpClient calls
- you need a mature, widely used HTTP client library for .NET Core, Xamarin, or modern .NET
When to avoid
- you need fine-grained manual control over every HTTP request
- your project is not on the .NET platform
- you need GraphQL or gRPC rather than REST
Facets
library · maturity active
http-client serialization api-framework web-development apis developer-tools cross-platform dotnet cross-platform rest-client retrofit-inspired type-safe httpclientfactory xamarin source-generation c-sharp mobile
2 sources
- readme: https://github.com/reactiveui/refit · fetched 2026-08-28 · c0c89e9a85eb
- homepage: https://reactiveui.github.io/refit/ · fetched 2026-08-29 · 331aa44aa58a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| reactiveui/refit | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="reactiveui/refit")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem