# flutter-it/get_it

Get It - Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App. Maintainer: @escamoteur

Repository: https://github.com/flutter-it/get_it
Canonical: https://ross.abutalabs.com/products/get_it
Homepage: https://pub.dev/packages/get_it
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-02-20T00:32:30+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 68, release rhythm 9, longevity 100
- inputs: {"age_days": 3027, "days_push": 195, "days_rel": 396, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1471, forks 162 (observed 2026-08-28T04:04:49.293092+00:00)

## What it is
get_it is a fast, type-safe service locator for Dart and Flutter that lets you register services once and access them from anywhere without BuildContext or code generation. It supports scopes, async singletons, test-friendly resets, and a DevTools extension for inspecting registrations.

## Use cases
- access services from anywhere in a flutter app without context
- decouple interfaces from concrete implementations in dart
- dependency injection without code generation
- swap real services for mocks in tests
- manage singletons and scoped instances in flutter apps
- use a service locator in pure dart server or cli apps

## When to choose
- you want simple, fast O(1) service lookup with zero boilerplate
- you need to access business logic outside the widget tree
- you prefer a service locator over codegen-based DI like injectable or riverpod providers
- you work in pure Dart as well as Flutter

## When to avoid
- you prefer constructor-based dependency injection with compile-time graph validation
- your team mandates an InheritedWidget/Provider-based approach tied to the widget tree
- you need auto-discovery of dependencies via annotations and build_runner

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, plugin-system
- domain: mobile-development, developer-tools, cross-platform
- platform: cross-platform, cli
- tags: service-locator, dependency-injection, flutter, dart, state-management, ioc-container, mobile, web-server

## Member repositories
- flutter-it/get_it (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.293092+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-30T04:34:46.000317+00:00, confidence not recorded.
  - readme: https://github.com/flutter-it/get_it (fetched 2026-08-28T04:04:49.293092+00:00, sha 0d918dfbedef)
  - homepage: https://pub.dev/packages/get_it (fetched 2026-08-29T11:42:57.037803+00:00, sha 035ba0ce47b3)
  - site_page: https://pub.dev/packages/get_it/install (fetched 2026-08-29T11:42:57.053559+00:00, sha b16007426b21)
  - site_page: https://pub.dev/documentation/get_it/latest (fetched 2026-08-29T11:42:57.056585+00:00, sha ab6021255c52)
  - site_page: https://pub.dev/packages/get_it/changelog (fetched 2026-08-29T11:42:57.048166+00:00, sha b1e35294b8f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
