# eleme/Stinger

Stinger is a high-efficiency library with great compatibility, for aop in Objective-C,  using libffi instead of Objective-C message forwarding. It is 20+ times faster than the Aspects, from message-sending to Aspect-oriented code ends.

Repository: https://github.com/eleme/Stinger
Canonical: https://ross.abutalabs.com/products/stinger
Language: Objective-C
License: MIT
License Family: permissive
Topics: aop, objective-c, objc, aspects, hook, libffi, efficiency-library
Last push: 2024-04-26T08:32:12+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": 3193, "days_push": 859, "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 1002, forks 129 (observed 2026-09-03T02:15:11.552914+00:00)

## What it is
Stinger is a high-performance Objective-C library for aspect-oriented programming (AOP) that hooks into existing methods before/instead/after execution using libffi instead of message forwarding. It claims to be 20+ times faster than the Aspects library while handling super calls automatically.

## Use cases
- hook into existing Objective-C methods without subclassing
- add logging or analytics code before/after method calls
- replace method implementations at runtime for testing or patching
- avoid fragile manual method swizzling
- run a block once and auto-remove the hook
- manage and remove named hooks by identifier

## When to choose
- you need AOP-style method hooking in Objective-C with better performance than Aspects
- you want a safer, higher-level API over raw method swizzling
- you need fine-grained control over hook lifecycle with identifiers

## When to avoid
- you are working in Swift-only codebases without Objective-C interop
- you need AOP in languages other than Objective-C
- your project requires actively maintained libraries with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, developer-tools
- domain: mobile-development, developer-tools
- platform: -
- tags: aop, method-swizzling, libffi, hooking, objective-c, cocoapods, ios, macos

## Member repositories
- eleme/Stinger (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:11.552914+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-30T07:13:59.699073+00:00, confidence not recorded.
  - readme: https://github.com/eleme/Stinger (fetched 2026-09-03T02:15:11.552914+00:00, sha 3ba8226f30b2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
