# twitter/labella.js

Placing labels on a timeline without overlap.

Repository: https://github.com/twitter/labella.js
Canonical: https://ross.abutalabs.com/products/labellajs
Homepage: http://twitter.github.io/labella.js/
Language: JavaScript
License: Apache-2.0
License Family: permissive
Last push: 2023-04-10T11:45:02+00:00

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

## Adoption (not part of the score)
Stars 3875, forks 141 (observed 2026-08-28T04:08:27.900994+00:00)

## What it is
Labella.js is a JavaScript library that places labels for points on a timeline (or any 1D space) without overlap, using a force-based simulation where labels push each other into non-overlapping positions. Rendering is decoupled from layout computation, so labels can be drawn with canvas, SVG, or any drawing library, with a built-in Renderer helper.

## Use cases
- place labels on a timeline without overlap
- annotate many points on a 1D axis with readable labels
- avoid overlapping text labels in d3 visualizations
- build a timeline component with smart label positioning
- compute label positions for canvas or svg rendering

## When to choose
- you need to label dense points along a timeline or 1D axis
- you want layout computation decoupled from rendering so you can draw with any library
- you want a small focused library rather than a full charting framework

## When to avoid
- you need a full ready-made timeline component (consider d3Kit-timeline instead)
- you need 2D label placement or general charting features
- you need a library with frequent updates and active development

## Facets
- artifact type: library
- maturity: maintenance
- function: data-visualization, charts
- domain: data-visualization, web-development, frontend
- platform: browser
- tags: timeline-labels, label-placement, force-directed, d3, svg, visualization, nodejs, javascript

## Member repositories
- twitter/labella.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:27.900994+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-29T18:25:46.400083+00:00, confidence not recorded.
  - readme: https://github.com/twitter/labella.js (fetched 2026-08-28T04:08:27.900994+00:00, sha ec0e8843c0ac)
  - homepage: http://twitter.github.io/labella.js/ (fetched 2026-08-29T09:20:13.421287+00:00, sha 165ee7bf7da0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
