# square/Cleanse

Lightweight Swift Dependency Injection Framework

Repository: https://github.com/square/Cleanse
Canonical: https://ross.abutalabs.com/products/cleanse
Language: Swift
License: NOASSERTION
License Family: other
Topics: ios, swift, dependency-injection
Archived: true
Last push: 2024-06-13T18:34:47+00:00

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

## Adoption (not part of the score)
Stars 1770, forks 82 (observed 2026-08-28T04:05:33.929905+00:00)

## What it is
Cleanse is a lightweight dependency injection framework for Swift, inspired by Dagger and Guice. It was officially deprecated by Square on June 13, 2024 and is now read-only.

## Use cases
- inject dependencies into swift ios apps
- swift dependency injection framework
- replace dagger-style DI in swift
- manage view model dependencies in ios
- constructor injection for swift projects

## When to choose
- you are maintaining an existing codebase already built on Cleanse
- you need a Dagger/Guice-style DI container in Swift and accept no future updates

## When to avoid
- starting a new Swift project (it is deprecated with no updates or support)
- you want an actively maintained alternative like Swinject, Needle, Factory, or swift-dependencies

## Facets
- artifact type: framework
- maturity: abandoned
- function: middleware
- domain: mobile-development, developer-tools
- platform: -
- tags: dependency-injection, swift, deprecated, dagger-inspired, guice-inspired, ios

## Member repositories
- square/Cleanse (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:33.929905+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-30T03:26:04.507668+00:00, confidence not recorded.
  - readme: https://github.com/square/Cleanse (fetched 2026-08-28T04:05:33.929905+00:00, sha 2c740d4248b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
