# eleme/lancet

A lightweight and fast AOP framework for Android App and SDK developers

Repository: https://github.com/eleme/lancet
Canonical: https://ross.abutalabs.com/products/eleme-lancet
Language: Java
License Family: other
Topics: bytecode-manipulation, android-plugin
Last push: 2023-08-26T07:58:08+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3422, "days_push": 1103, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2209, forks 342 (observed 2026-08-28T04:06:26.181532+00:00)

## What it is
Lancet is a lightweight, fast AOP (aspect-oriented programming) framework for Android apps and SDKs, implemented as a Gradle plugin that weaves bytecode at compile time. It uses annotations like @TargetClass and @Proxy to intercept method calls with no runtime overhead or runtime jar.

## Use cases
- intercept all calls to android.util.Log across an Android app
- apply aspect-oriented code weaving to an Android project at build time
- hook third-party SDK method calls without modifying their source
- instrument Android SDK code with compile-time bytecode transformation
- add cross-cutting behavior like logging or analytics to existing Android methods
- support incremental compilation while weaving bytecode in an Android build

## When to choose
- you need compile-time AOP on Android with zero runtime dependency
- you are an SDK developer who wants to hook app or system code non-invasively
- you need fast, incremental bytecode weaving in a Gradle-based Android build

## When to avoid
- you need runtime dynamic AOP or proxying rather than build-time weaving
- your project is not Android/Gradle based
- you need a project with an explicit license or active recent maintenance

## Facets
- artifact type: framework
- maturity: maintenance
- function: middleware, developer-tools, build-tool
- domain: mobile-development, developer-tools, android-tools
- platform: jvm
- tags: aop, bytecode-manipulation, android-plugin, gradle-plugin, aspect-oriented-programming, code-weaving, android, gradle

## Member repositories
- eleme/lancet (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:26.181532+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:46:18.960094+00:00, confidence not recorded.
  - readme: https://github.com/eleme/lancet (fetched 2026-08-28T04:06:26.181532+00:00, sha 6d0bc0c227d7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
