# cfug/dio

A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.

Repository: https://github.com/cfug/dio
Canonical: https://ross.abutalabs.com/products/dio
Homepage: https://dio.pub
Language: Dart
License: MIT
License Family: permissive
Topics: flutter, dart, adapter, http, network, timeout, transformer, cancellable, dio, interceptor, middleware
Last push: 2026-08-23T14:55:56+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 3057, "days_push": 10, "days_rel": 35, "gap_med": 0.0, "n_releases_24m": 29}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12839, forks 1560 (observed 2026-08-28T04:10:59.906968+00:00)

## What it is
dio is a powerful HTTP client library for Dart and Flutter supporting global configuration, interceptors, FormData, request cancellation, timeouts, file upload/download, and custom adapters. It is a monorepo containing the core package plus plugins like cookie management and HTTP/2 adapters.

## Use cases
- make HTTP requests from a Flutter app
- add interceptors for auth tokens and logging
- upload and download files with progress
- cancel in-flight HTTP requests
- configure global timeouts and base URLs
- use HTTP/2 in Dart applications

## When to choose
- building Flutter or Dart apps that talk to REST APIs
- you need interceptors, cancellation, or file transfer out of the box
- you want a mature, widely adopted Dart HTTP client

## When to avoid
- writing non-Dart/Flutter projects
- you only need a minimal fetch-style client without extras
- server-side Dart needing deep platform-native HTTP stack integration without adapters

## Facets
- artifact type: library
- maturity: stable
- function: http-client, middleware, file-upload
- domain: web-development, mobile-development, apis, cross-platform
- platform: cross-platform
- tags: flutter, http-client, interceptors, request-cancellation, formdata, pub-package, mobile, web-server

## Member repositories
- cfug/dio (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.906968+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:45.031389+00:00, confidence not recorded.
  - readme: https://github.com/cfug/dio (fetched 2026-08-28T04:10:59.906968+00:00, sha 0c6f35605d4f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
