# XianyuTech/aspectd

AOP for Flutter(Dart)

Repository: https://github.com/XianyuTech/aspectd
Canonical: https://ross.abutalabs.com/products/aspectd
Language: Dart
License: MIT
License Family: permissive
Last push: 2022-02-17T03:26:40+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": 2674, "days_push": 1658, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1110, forks 122 (observed 2026-08-28T04:03:37.507536+00:00)

## What it is
AspectD is an aspect-oriented programming (AOP) framework for Dart and Flutter, providing call/execute interception and code injection via dill (Dart kernel binary) transformation. It works by patching flutter_tools to apply a compile-time transformer, since dart:mirrors is unavailable in Flutter.

## Use cases
- intercept and instrument method calls in flutter apps without modifying source code
- add logging or analytics hooks to dart methods via annotations
- inject code into existing dart functions at compile time
- build custom dill transformers for code manipulation
- apply aspect-oriented patterns like AspectJ in a flutter project

## When to choose
- you need non-invasive cross-cutting concerns (logging, monitoring, performance tracking) in a flutter app
- you want AspectJ-style call/execute/inject semantics for dart
- you need compile-time code transformation on dart kernel files

## When to avoid
- you are unwilling to patch flutter_tools, since the required patch may break with flutter updates
- your project uses a flutter version not matching the supported stable branch
- you need runtime AOP with reflection, which dart does not support in flutter

## Facets
- artifact type: framework
- maturity: maintenance
- function: compiler, developer-tools, middleware
- domain: developer-tools, mobile-development, cross-platform
- platform: cross-platform
- tags: aop, aspect-oriented-programming, dart, flutter, code-instrumentation, dill-transformer, compile-time-weaving

## Member repositories
- XianyuTech/aspectd (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:37.507536+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-30T06:43:25.967862+00:00, confidence not recorded.
  - readme: https://github.com/XianyuTech/aspectd (fetched 2026-08-28T04:03:37.507536+00:00, sha e05bf4858074)
- Data as of 2026-08-30T08:39:29.467469+00:00.
