Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Wait... didn't we just compose this?
More newsletter coverage, community articles and integration examples
Guard your Compose UI efficiency. Catch recomposition regressions before your users.
Compose's recomposition behavior is an implicit contract — composables should recompose when their inputs change and stay stable otherwise. But that contract breaks silently, and today's options for catching it are limited:
SideEffect counters, LaunchedEffect logging, wrapper composables; invasive, doesn't scale, and ships in your production codeDejavu is a test-only library that turns recomposition behavior into assertions. Tag your composables with standard Modifier.testTag(), write expectations against recomposition counts, and get structured diagnostics when something changes — whether from a teammate, a library upgrade, an AI agent rewriting your UI code, or a refactor that silently destabilizes a lambda.
Modifier.testTag()createRecompositionTrackingRule()DejaVu 0.5.1 requires Android compile SDK 37 and min SDK 24. The release uses Compose Multiplatform 1.12.0; Android Compose 1.11 remains supported with an enforced BOM. See Compatibility before adding the dependency to an older Compose project.
// app/build.gradle.kts
dependencies {
androidTestImplementation("dev.mttmcknn:dejavu:0.5.1")
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
debugImplementation("androidx.compose.ui:ui-test-manifest")
}
Use your enforced Compose BOM for the unversioned Compose test artifacts. See the complete setup for the runner, compatible Android test dependencies, and KMP source sets.
Version 0.5.1 moves the Maven group to dev.mttmcknn. Replace the previous
me.mmckenna.dejavu:dejavu dependency with dev.mttmcknn:dejavu:0.5.1; do not add
both artifacts. Kotlin packages and imports remain dejavu.*, and the library's
runtime behavior and public APIs are unchanged from 0.5.0. Earlier releases keep
their original Maven coordinates.
@get:Rule
val composeTestRule = createRecompositionTrackingRule()
@Test
fun incrementCounter_onlyValueRecomposes() {
composeTestRule.onNodeWithTag("inc_button")
.performClick()
composeTestRule.onNodeWithTag("counter_value")
.assertRecompositions(exactly = 1)
composeTestRule.onNodeWithTag("counter_title")
.assertStable() // stable = zero recompositions
}
This test assumes the counter screen is already set. Use createRecompositionTrackingRule<YourActivity>()
to launch an activity that sets that screen, or call composeTestRule.setContent { YourScreen() }
when using the plain rule. The Getting Started guide
includes a complete example.
7-day copy clicks
npx claudepluginhub mttmcknn/dejavu --plugin dejavuBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground