# ncapdevi/FragNav

An Android library for managing multiple stacks of fragments

Repository: https://github.com/ncapdevi/FragNav
Canonical: https://ross.abutalabs.com/products/fragnav
Language: Kotlin
License Family: other
Topics: fragment-transactions, android, fragments, navigation, android-library, multiple-stacks, android-lib, android-navigation, fragment, tab-switches
Last push: 2022-04-05T02:54:09+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3812, "days_push": 1611, "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 1496, forks 222 (observed 2026-08-28T04:04:53.647186+00:00)

## What it is
FragNav is an Android library for managing multiple stacks of fragments, typically for bottom navigation or navigation drawer patterns. It handles pushing, popping, switching tabs, and clearing fragment stacks while preserving navigation state.

## Use cases
- manage multiple fragment stacks for bottom navigation in Android
- switch between tabs while preserving each tab's fragment back stack
- implement navigation drawer with per-item fragment stacks
- clear or reset fragment stacks when switching tabs
- maintain fragment navigation state across tab switches in Android apps

## When to choose
- you're building an Android app with bottom navigation or a navigation drawer where each tab needs its own fragment back stack
- you want to follow Android's stack-based navigation principles without writing stack management yourself
- you're using a bottom bar UI library like AHBottomNavigation and need the underlying stack logic

## When to avoid
- you're starting a new project and can use Jetpack Navigation, which is the modern recommended approach
- you need to keep only one fragment instance or reorder fragments mid-stack, which the library explicitly does not support
- you need a ready-made bottom bar UI, since this library provides no UI components

## Facets
- artifact type: library
- maturity: maintenance
- function: mobile-framework, ui-components, state-management
- domain: mobile-development, android-tools, web-development
- platform: jvm
- tags: fragments, navigation, bottom-navigation, tab-navigation, fragment-stacks, android-library, android, mobile

## Member repositories
- ncapdevi/FragNav (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:53.647186+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-30T04:33:14.141274+00:00, confidence not recorded.
  - readme: https://github.com/ncapdevi/FragNav (fetched 2026-08-28T04:04:53.647186+00:00, sha 4749908ef194)
- Data as of 2026-08-30T08:39:29.467469+00:00.
