# adobe/balance-text

A plugin for implementing balancing of wrapping text in a web page

Repository: https://github.com/adobe/balance-text
Canonical: https://ross.abutalabs.com/products/balance-text
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2024-04-08T12:48:46+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": 4982, "days_push": 877, "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 1403, forks 77 (observed 2026-08-28T04:04:37.826363+00:00)

## What it is
A JavaScript polyfill implementing balanced text wrapping for web pages, providing an alternative line-breaking algorithm so wrapped lines contain roughly equal amounts of text. It implements the proposed CSS `text-wrap: balance` behavior and is referenced in the CSS Text Module Level 4 draft.

## Use cases
- balance wrapped headline text across lines
- polyfill text-wrap: balance in browsers without support
- avoid ragged centered multi-line text
- re-balance text on window resize
- apply balanced wrapping to dynamically added DOM content

## When to choose
- you need balanced multi-line text in browsers lacking native text-wrap: balance
- you want a lightweight drop-in script with class-based or manual triggering
- you need resize-aware rebalancing of headings or centered text

## When to avoid
- target browsers already support native CSS text-wrap: balance
- you need a jQuery plugin API (use the legacy 2.0.0 version instead)
- you need general text layout beyond line balancing

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, frontend-framework, templating
- domain: web-development, frontend, web-design
- platform: browser
- tags: text-wrapping, polyfill, typography, css-text-wrap-balance, line-breaking, javascript

## Member repositories
- adobe/balance-text (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.826363+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:38:54.109749+00:00, confidence not recorded.
  - readme: https://github.com/adobe/balance-text (fetched 2026-08-28T04:04:37.826363+00:00, sha 26c5a49899a4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
