# atomicobject/objection

A lightweight dependency injection framework for Objective-C

Repository: https://github.com/atomicobject/objection
Canonical: https://ross.abutalabs.com/products/atomicobject-objection
Homepage: http://www.objection-framework.org
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2017-09-25T14:19:26+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5751, "days_push": 3264, "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 1833, forks 221 (observed 2026-08-28T04:05:42.405047+00:00)

## What it is
Objection is a lightweight dependency injection framework for Objective-C, inspired by Guice, for macOS and iOS apps. It uses macros to declare dependencies and provides protocol, instance, named, and meta-class bindings with lazy instantiation and singleton support.

## Use cases
- inject dependencies into objective-c classes without manual construction
- replace xml-based di containers in ios apps
- manage singletons per injector context in an ios application
- bind protocols to implementations in objective-c
- wire up dependencies in macos apps with annotation-style macros

## When to avoid
- you are writing Swift, where native patterns or Swift DI libraries are better supported
- you need a framework with recent releases and active maintenance
- your project is small enough that manual construction is simpler

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, developer-tools
- domain: mobile-development, developer-tools, apple-ecosystem
- platform: cpp
- tags: dependency-injection, objective-c, guice-inspired, ios, macos

## Member repositories
- atomicobject/objection (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:42.405047+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:18:37.434948+00:00, confidence not recorded.
  - readme: https://github.com/atomicobject/objection (fetched 2026-08-28T04:05:42.405047+00:00, sha f028f0c4e66a)
  - homepage: http://www.objection-framework.org (fetched 2026-08-29T10:57:47.988735+00:00, sha b21b3ab1a7bf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
