bramstein/typeset
TeX line breaking algorithm in JavaScript observed · 2026-08-28
Health v2 · maintenance only
72/100
- Activity 88
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5399
- days_rel: n/a
- days_push: 74
- n_releases_24m: 0
Adoption not part of the score
1037 stars · 72 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript implementation of the Knuth and Plass (TeX) line breaking algorithm for optimally setting justified text in the browser. It provides better line breaks than native browser text justification by minimizing inter-word spacing across all lines.
Use cases
- improve justified text quality in the browser
- implement TeX-quality line breaking in JavaScript
- reduce rivers and uneven word spacing in paragraphs
- compare browser line breaks against optimal Knuth-Plass breaks
- correct browser line breaks via word-spacing adjustments
- build high-quality typesetting tools for the web
When to avoid
- you only need simple left-aligned or ragged-right text
- you need a full page layout or typesetting engine
- your project cannot tolerate DOM manipulation for line measurement
Facets
library · maturity maintenance
templating graphics web-development frontend browser typography line-breaking knuth-plass text-layout justified-text algorithms javascript
1 source
- readme: https://github.com/bramstein/typeset · fetched 2026-08-28 · a18284468bc5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bramstein/typeset | main | 72 |
For agents
markdown · JSON · MCP: product_card(name="bramstein/typeset")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem