trevorwang/retrofit.dart
retrofit.dart is an dio client generator using source_gen and inspired by Chopper and Retrofit. observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 98
- 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-02. Adoption (stars, forks) is never an input.
- gap_med: 5.5
- age_days: 2707
- days_rel: 14
- days_push: 14
- n_releases_24m: 49
Adoption not part of the score
1184 stars · 290 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
retrofit.dart is a Dart code generator that creates type-safe HTTP API clients for the dio package using annotations and source_gen, inspired by Retrofit and Chopper. Developers define abstract REST API classes and build_runner generates the implementation code with JSON type conversion.
Use cases
- generate type-safe HTTP clients in Dart
- declarative REST API definitions with annotations
- auto-convert JSON responses to Dart objects
- reduce boilerplate in Flutter network layers
- define API endpoints as abstract classes
- integrate dio with code generation via build_runner
When to choose
- you're building a Flutter or Dart app that consumes REST APIs
- you want Retrofit-style declarative API clients in Dart
- you want automatic JSON serialization wired into your HTTP layer
- you want to eliminate repetitive dio client code
When to avoid
- you don't use dio as your HTTP client
- you prefer writing HTTP calls manually without code generation
- your project avoids build_runner/source_gen build steps
- you need a client for non-REST protocols
Facets
library · maturity active
http-client api-documentation developer-tools web-development mobile-development developer-tools apis cross-platform code-generation flutter
2 sources
- readme: https://github.com/trevorwang/retrofit.dart · fetched 2026-08-28 · a4c18e324cb6
- homepage: http://mings.in/retrofit.dart/ · fetched 2026-08-29 · 60fabaa92bed
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| trevorwang/retrofit.dart | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="trevorwang/retrofit.dart")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem