trevorwang/retrofit.dart
Some data may be outdated — see provenance labels.
retrofit.dart is an dio client generator using source_gen and inspired by Chopper and Retrofit. observed · 2026-10-01
Health v2 · maintenance only
96/100
- Activity 97
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 7.0
- age_days: 2755
- days_rel: 46
- days_push: 23
- n_releases_24m: 43
Adoption not part of the score
1183 stars · 291 forks observed · 2026-10-01
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-10-01 · a4c18e324cb6
- homepage: http://mings.in/retrofit.dart/ · fetched 2026-08-29 · 60fabaa92bed
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| trevorwang/retrofit.dart | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="trevorwang/retrofit.dart")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem