# square/flow

Name UI states, navigate between them, remember where you've been.

Repository: https://github.com/square/flow
Canonical: https://ross.abutalabs.com/products/square-flow
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2023-03-19T08:26:29+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4738, "days_push": 1263, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2768, forks 236 (observed 2026-08-28T04:07:18.733070+00:00)

## What it is
Flow is a Java library for Android that names UI states as immutable key objects, navigates between them, and preserves navigation history across configuration changes and process death. It is deprecated; Square recommends its successor, Square Workflow.

## Use cases
- manage android activity navigation with named ui states
- handle back button navigation without surprising users
- restore ui state and history after process death
- share and dispose resources per screen with setup and teardown hooks
- manage master-detail views and dialogs in android apps

## When to choose
- maintaining a legacy Android app already built on Flow
- you need simple key-based navigation history on Android and cannot adopt Workflow

## When to avoid
- starting any new Android project - it is deprecated
- you want an actively maintained navigation solution - use Square Workflow instead
- you need cross-platform or Compose-based navigation

## Facets
- artifact type: library
- maturity: abandoned
- function: state-management, routing
- domain: mobile-development, android-tools
- platform: jvm
- tags: navigation, android-activity, back-stack, deprecated, square, android

## Member repositories
- square/flow (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:18.733070+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-30T08:16:42.757616+00:00, confidence not recorded.
  - readme: https://github.com/square/flow (fetched 2026-08-28T04:07:18.733070+00:00, sha 6e128addfec1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
