cashapp/molecule
Build a StateFlow stream using Jetpack Compose observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 99
- Release rhythm 25
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 165
- age_days: 1911
- days_rel: 343
- days_push: 11
- n_releases_24m: 2
Adoption not part of the score
2222 stars · 113 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Molecule is a Kotlin library from Cash App that lets you build StateFlow or Flow streams using Jetpack Compose's runtime, without its UI toolkit. It enables writing presenter logic as composable functions that emit reactive state streams.
Use cases
- build a StateFlow from composable state logic
- separate business logic from UI in Android apps
- write presenters using Jetpack Compose runtime
- test presenter logic without UI layer
- share reactive state logic across Kotlin multiplatform targets
When to choose
- you use Kotlin coroutines Flow and want declarative state logic
- you want to test business logic separately from Compose UI
- you're building MVI-style presenters in Kotlin Multiplatform
When to avoid
- you don't use Kotlin or coroutines
- you want full Compose UI rendering rather than headless state streams
Facets
library · maturity active
state-management concurrency mobile-development developer-tools cross-platform jvm cross-platform jetpack-compose kotlinx-coroutines stateflow mvi presenter-pattern reactive android
2 sources
- readme: https://github.com/cashapp/molecule · fetched 2026-08-28 · 68425f16d707
- homepage: https://cashapp.github.io/molecule/docs/2.x/ · fetched 2026-08-29 · 904b7753441d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cashapp/molecule | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="cashapp/molecule")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem