# KunMinX/UnPeek-LiveData

LiveData 数据倒灌：别问，问就是不可预期 - Perfect alternative to SingleLiveEvent, supporting multiple observers.

Repository: https://github.com/KunMinX/UnPeek-LiveData
Canonical: https://ross.abutalabs.com/products/unpeek-livedata
Language: Java
License Family: other
Topics: jetpack, livedata, eventbus
Last push: 2023-10-07T15:07:54+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": 2281, "days_push": 1061, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1260, forks 122 (observed 2026-08-28T04:04:09.963075+00:00)

## What it is
An Android library providing UnPeekLiveData, a drop-in replacement for SingleLiveEvent that prevents LiveData 'sticky event' data re-push (data backflow) to newly subscribed observers. It supports multiple observers consuming the same message, manual memory cleanup, and read-write separation following the single-source-of-truth principle.

## Use cases
- prevent livedata data backflow on android
- singleliveevent alternative supporting multiple observers
- one-time event distribution in sharedviewmodel
- stop livedata pushing stale data to new subscribers
- android mvvm page communication events
- consume event by multiple fragments without re-delivery

## When to choose
- you use SharedViewModel + LiveData for inter-page communication and hit sticky-event re-push issues
- you need one message consumed by multiple observers before blocking re-delivery
- you want a non-invasive, open-closed SingleLiveEvent replacement in Java

## When to avoid
- you need high-frequency event dispatch (more than ~5 events per second) - the author recommends MVI-Dispatcher instead
- your project uses Kotlin coroutines/Flow where SharedFlow offers a native solution
- you need a license-protected dependency - the project has no license

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, middleware
- domain: mobile-development, android-tools, developer-tools
- platform: jvm
- tags: livedata, jetpack, android-architecture, event-distribution, mvvm, singleliveevent-alternative, android, mobile

## Member repositories
- KunMinX/UnPeek-LiveData (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:09.963075+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-30T05:04:21.584772+00:00, confidence not recorded.
  - readme: https://github.com/KunMinX/UnPeek-LiveData (fetched 2026-08-28T04:04:09.963075+00:00, sha c6fe4bb3829b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
