# hmlongco/Resolver

Swift Dependency Injection / Service Locator framework (Deprecated)

Repository: https://github.com/hmlongco/Resolver
Canonical: https://ross.abutalabs.com/products/resolver
Language: Swift
License: MIT
License Family: permissive
Last push: 2026-06-30T20:05:09+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 8, longevity 100
- inputs: {"age_days": 3214, "days_push": 64, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2220, forks 198 (observed 2026-08-28T04:06:27.511116+00:00)

## What it is
Resolver is an ultralight dependency injection / service locator framework for Swift on iOS, supporting multiple injection strategies and property wrappers. It is officially deprecated in favor of the author's successor library, Factory.

## Use cases
- dependency injection in swift ios apps
- service locator pattern in swift
- inject dependencies into viewcontrollers with property wrappers
- manage service scopes like cached or graph in swift
- resolve protocols to implementations at runtime
- pass arguments when resolving services in swift

## When to choose
- maintaining an existing codebase already built on Resolver
- you need a tiny single-file DI framework for a legacy Swift project

## When to avoid
- starting a new Swift project - use Factory instead
- you need compile-time safe dependency injection
- the project is actively developed and needs long-term support

## Facets
- artifact type: library
- maturity: abandoned
- function: middleware
- domain: developer-tools, mobile-development
- platform: -
- tags: dependency-injection, service-locator, swift, property-wrappers, deprecated, inversion-of-control, ios, mobile

## Member repositories
- hmlongco/Resolver (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:27.511116+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-30T02:45:50.444084+00:00, confidence not recorded.
  - readme: https://github.com/hmlongco/Resolver (fetched 2026-08-28T04:06:27.511116+00:00, sha b1b70461b900)
- Data as of 2026-08-30T08:39:29.467469+00:00.
