# stephanenicolas/toothpick

A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.

Repository: https://github.com/stephanenicolas/toothpick
Canonical: https://ross.abutalabs.com/products/toothpick
Language: Java
License: Apache-2.0
License Family: permissive
Topics: dependency-injection, android, java, kotlin, kotlin-android, androidx, android-viewmodel, android-lifecycle, android-testing, android-dependency-injection
Last push: 2022-06-24T16:31:51+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3811, "days_push": 1531, "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 1138, forks 113 (observed 2026-08-28T04:03:44.031862+00:00)

## What it is
Toothpick is a scope tree based dependency injection library for Java, Kotlin, and Android. It is a runtime-based but reflection-free implementation of JSR 330 that uses annotation processing and scopes to manage dependency lifecycles and prevent memory leaks.

## Use cases
- dependency injection for android apps
- manage scoped dependencies across activities and fragments
- inject dependencies into android viewmodels
- reflection-free jsr 330 di for java and kotlin
- avoid memory leaks with scope-based dependency lifecycles
- test android apps with injectable dependencies

## When to choose
- building Android apps that need fast, reflection-free DI
- you want scope trees tied to Android lifecycles (application, activity, viewmodel)
- you prefer JSR 330 annotations without runtime reflection overhead

## When to avoid
- starting a new project where Dagger/Hilt or Koin have larger communities
- you need server-side or non-Android DI with broad ecosystem support
- the project requires very recent maintenance and frequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, testing
- domain: android-tools, developer-tools, mobile-development
- platform: jvm
- tags: dependency-injection, jsr-330, scope-tree, annotation-processor, reflection-free, androidx, viewmodel, android

## Member repositories
- stephanenicolas/toothpick (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:44.031862+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:36:10.841229+00:00, confidence not recorded.
  - readme: https://github.com/stephanenicolas/toothpick (fetched 2026-08-28T04:03:44.031862+00:00, sha 99c70f7bd103)
- Data as of 2026-08-30T08:39:29.467469+00:00.
