stclib/STC
A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers. observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- 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-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2374
- days_rel: 598
- days_push: 23
- n_releases_24m: 1
Adoption not part of the score
1961 stars · 114 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
STC is a generic, type-safe, high-performance container and algorithm library for C99/C11, providing strings, vectors, maps, sets, deques, lists, smart pointers, bitsets, spans, coroutines, and random numbers via macro-based templates. It aims to bring modern ergonomics from languages like Rust, Zig, and C++ to C with minimal boilerplate.
Use cases
- use hash maps and sets in C without writing boilerplate
- get a type-safe dynamic array or vector in C99
- add coroutines with structured concurrency to a C program
- replace C++ STL containers in a pure C codebase
- use smart pointers and reference counting in C
- do regex matching on UTF-8 strings in C
- slice multi-dimensional arrays like numpy in C
When to choose
- you write C99/C11 and want modern, fast, type-safe data containers
- you need maps, sets, deques, or strings without external dependencies
- you want coroutines or smart pointers in plain C
- performance and low overhead matter more than ABI-stable prebuilt libraries
When to avoid
- your project requires a stable, frozen API before the V6.0 final release
- you prefer C++ STL or a language with native generics
- you dislike macro-heavy templating in C codebases
Facets
library · maturity active
concurrency math parser programming-languages developer-tools c cpp cross-platform windows containers data-structures c99 generic-macros type-safe coroutines regex smart-pointers bitset hashmap no-boilerplate algorithms linux macos
1 source
- readme: https://github.com/stclib/STC · fetched 2026-08-28 · 71f13780db1d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stclib/STC | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem