attractivechaos/klib
A standalone and lightweight C library observed · 2026-08-28
Health v2 · maintenance only
58/100
- Activity 58
- 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: 5711
- days_rel: n/a
- days_push: 254
- n_releases_24m: 0
Adoption not part of the score
4717 stars · 594 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Klib is a standalone, lightweight C library of generic data structures and algorithms implemented largely as single-header files using C macros. It includes efficient hash tables, B-trees, AVL trees, sorting routines, dynamic arrays, string utilities, and bioinformatics parsers like FASTA/FASTQ.
Use cases
- add a fast hash table to a C project without dependencies
- sort large arrays efficiently in C
- parse FASTA/FASTQ bioinformatics files
- implement a B-tree or AVL tree in C
- parse command-line arguments in a portable C program
- build a dynamic array or linked list with minimal overhead
When to choose
- you need high-performance generic containers in C with minimal footprint
- you want copy-paste single-file components with no library dependencies
- you are writing performance-critical or bioinformatics C code
When to avoid
- you prefer clean, template-free APIs over macro-heavy code
- you need a full-featured container library like Glib with rich utilities
- you are working in a language other than C
Facets
library · maturity stable
parser developer-tools math developer-tools bioinformatics performance c cross-platform windows hash-table b-tree avl-tree sorting dynamic-array single-header generic-programming fasta-parser smith-waterman suffix-array command-line-parsing algorithms linux macos
2 sources
- readme: https://github.com/attractivechaos/klib · fetched 2026-08-28 · 53bf9a958930
- homepage: http://attractivechaos.github.io/klib/ · fetched 2026-08-29 · 41a6b12d14c6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| attractivechaos/klib | main | 58 |
For agents
markdown · JSON · MCP: product_card(name="attractivechaos/klib")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem