rikschennink/fitty
✨ Makes text fit perfectly observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 21
- Release rhythm 8
- Longevity 100
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: 3327
- days_rel: n/a
- days_push: 475
- n_releases_24m: 0
Adoption not part of the score
3854 stars · 203 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Fitty is a tiny dependency-free JavaScript library that automatically scales font size up or down so text fits perfectly within its parent container. It supports min/max font sizes, multiline text, web fonts, and auto-updates on viewport changes.
Use cases
- make headline text fit its container width
- responsive fluid typography for headers and taglines
- auto-shrink text when viewport resizes
- fit text with custom web fonts
- scale text in multi-line blocks
- keep hero banner titles snugly sized
When to choose
- you need text to always fit its parent container without manual tuning
- you want a tiny (~1 kB) zero-dependency solution
- you need min/max font size bounds and multiline support
- you use web fonts and need refitting after font load
When to avoid
- you need full responsive layout systems rather than just text fitting
- you need text fitting in non-browser environments like Node or React Native
- you prefer CSS-only solutions like clamp() for simple cases
Facets
library · maturity stable
ui-components frontend-framework web-development frontend web-design browser cross-platform font-size text-fitting responsive-typography zero-dependency javascript nodejs
3 sources
- readme: https://github.com/rikschennink/fitty · fetched 2026-08-28 · 34db4e422bc4
- homepage: https://rikschennink.github.io/fitty/ · fetched 2026-08-29 · d6dd2189acb4
- registry_npm: https://registry.npmjs.org/fitty · fetched 2026-08-29 · 99ed29c8bc82
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rikschennink/fitty | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="rikschennink/fitty")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem