# JimmyLefevre/kb

kb single-header C/C++ libraries

Repository: https://github.com/JimmyLefevre/kb
Canonical: https://ross.abutalabs.com/products/jimmylefevre-kb
Language: C
License: Zlib
License Family: permissive
Last push: 2026-07-29T13:31:54+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 35, longevity 31
- inputs: {"age_days": 443, "days_push": 35, "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 1074, forks 29 (observed 2026-08-28T04:03:28.938519+00:00)

## What it is
A collection of single-header, permissively-licensed C/C++ libraries in the stb style. Its main library, kb_text_shape.h, provides Unicode text segmentation (line, word, grapheme, script, direction breaking) and HarfBuzz-like OpenType text shaping for complex scripts and ligatures.

## Use cases
- shape Arabic or Hindi text in a custom renderer
- break Unicode text into graphemes and words in C
- implement complex script layout without HarfBuzz
- check whether a font covers a given string
- render bidirectional text in a game or GUI
- add ligature and OpenType feature support to a text editor

## When to choose
- you need text shaping or Unicode segmentation in C/C++ with a small, embeddable single-header dependency
- you already handle rasterization and font loading and only need glyph placement
- you want a permissive Zlib license for commercial or embedded use

## When to avoid
- you need full paragraph layout, line wrapping, or font selection from the system
- you need glyph rasterization included
- you work outside C/C++

## Facets
- artifact type: library
- maturity: active
- function: nlp, internationalization, parser
- domain: text-editors, developer-tools
- platform: c, cpp, cross-platform
- tags: single-header, text-shaping, unicode, opentype, harfbuzz-alternative, stb-style, font-rendering, internationalization

## Member repositories
- JimmyLefevre/kb (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:28.938519+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-30T06:53:29.708740+00:00, confidence not recorded.
  - readme: https://github.com/JimmyLefevre/kb (fetched 2026-08-28T04:03:28.938519+00:00, sha 2e2b9cb438fd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
