Refit
NuGetv15.2.0Type-safe REST API clients for .NET, generated from annotated interfaces with build-time source generation, direct request construction, System.Text.Json defaults, and support for trimming and AOT.
Adopt with care
Refit is usable, with caveats. Pulls in 72 transitive packages (at least — some of the tree is still being crawled).
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 22 days ago. 26 releases in the last 2 years.
- DWeight: grade D, Poor — a real concern.
Pulls in 72 transitive packages (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding Refit to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing Refit, not just its own. Check this before a legal review, not after.
Compatibility
- .NET
- No constraint declared
Refit vs the alternatives
Packages solving a similar problem in the nuget ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| Refitthis page | 0 | 0 | MIT | 22 days ago |
| Newtonsoft.Json | 0 | 2 | MIT | 1 day ago |
| Microsoft.AspNetCore.Mvc.Formatters.Json | 0 | 2 | — | 1 day ago |
Dependencies
Declared by Refit v15.2.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (5)
Relationship graph
Dependencies (left) and dependents (right) of Refit.
Release history
22 releases in the last two years, typically about 2 days apart.
| Version | Published | License |
|---|---|---|
| 15.2.0latest | 22 days ago | MIT |
| 15.1.0 | 26 days ago | MIT |
| 15.0.0 | 1 month ago | MIT |
| 15.0.0-beta.1 | 1 month ago | MIT |
| 14.0.1 | 1 month ago | MIT |
| 14.0.0 | 1 month ago | MIT |
| 14.0.0-beta.5 | 1 month ago | MIT |
| 14.0.0-beta.4 | 1 month ago | MIT |
| 14.0.0-beta.3 | 1 month ago | MIT |
| 14.0.0-beta.2 | 1 month ago | MIT |
| 14.0.0-beta.1 | 1 month ago | MIT |
| 13.1.0 | 2 months ago | MIT |
| 13.0.0 | 2 months ago | MIT |
| 12.1.0 | 2 months ago | MIT |
| 12.0.0 | 2 months ago | MIT |
Overview
Refit is an NuGet package that type-safe REST API clients for .NET, generated from annotated interfaces with build-time source generation, direct request construction, System.Text.Json defaults, and support for trimming and AOT. The latest version is 15.2.0, released under the MIT license.
Who should use it
Teams working in the NuGet ecosystem who need type-safe REST API clients for .NET, generated from annotated interfaces with build-time source generation, direct request construction, System.Text.Json defaults, and support for trimming and AOT and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your NuGet stack.
Pros
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use Refit?
Refit is usable, with caveats. Pulls in 72 transitive packages (at least — some of the tree is still being crawled).
How do I install Refit?
Run `dotnet add package Refit` to add Refit to your NuGet project.
How many dependencies does Refit have?
Refit declares 5 direct dependencies and pulls in 72 packages in total once its runtime tree is resolved.
What license is Refit released under?
Refit is distributed under the MIT license.
Is Refit still maintained?
The most recent release of Refit (v15.2.0) was published 22 days ago.