# anseki/leader-line

Draw a leader line in your web page.

Repository: https://github.com/anseki/leader-line
Canonical: https://ross.abutalabs.com/products/leader-line
Homepage: http://anseki.github.io/leader-line/
Language: JavaScript
License: MIT
License Family: permissive
Topics: leader, line, svg, mouse, markup, arrow, attention, highlight, spotlight, bubble
Archived: true
Last push: 2025-04-11T01:40:49+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 15, release rhythm 35, longevity 100
- inputs: {"age_days": 3600, "days_push": 510, "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 3250, forks 466 (observed 2026-08-28T04:07:51.926666+00:00)

## What it is
A zero-dependency JavaScript library for drawing customizable leader lines (arrows and connectors) between HTML/SVG elements in web pages. It renders SVG-based lines with options for color, size, outlines, and can point to parts of elements or elements in other windows.

## Use cases
- draw arrows between html elements
- connect two dom elements with a line
- highlight a ui element with an arrow
- add callout lines pointing to page elements
- draw svg connector lines in the browser
- annotate parts of a diagram on a web page
- point attention to a button or form field

## When to choose
- you need to visually connect or point between HTML/SVG elements in a browser
- you want a dependency-free vanilla JavaScript solution
- you need customizable line styles like color, size, and arrow shapes
- you want to highlight or annotate specific parts of elements

## When to avoid
- you need full diagramming with draggable nodes and editing
- you need canvas-based or server-side rendering
- you need chart or graph data visualization rather than element annotation

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation, graphics
- domain: web-development, frontend, web-design
- platform: browser
- tags: leader-line, svg, arrows, annotations, callouts, element-highlighting, no-dependencies, vanilla-javascript, dom, visual-connections, javascript

## Member repositories
- anseki/leader-line (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:51.926666+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-30T07:24:25.704046+00:00, confidence not recorded.
  - readme: https://github.com/anseki/leader-line (fetched 2026-08-28T04:07:51.926666+00:00, sha a75114603028)
  - homepage: http://anseki.github.io/leader-line/ (fetched 2026-08-29T09:37:12.384168+00:00, sha 0d844d4628d7)
  - registry_npm: https://registry.npmjs.org/leader-line (fetched 2026-08-29T09:37:12.387621+00:00, sha b69a54a7aeee)
- Data as of 2026-08-30T08:39:29.467469+00:00.
