eliaskosunen/scnlib
scanf for modern C++ observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 98
- Release rhythm 40
- 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: 0.0
- age_days: 2847
- days_rel: 668
- days_push: 12
- n_releases_24m: 3
Adoption not part of the score
1316 stars · 57 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
scnlib is a modern C++ library for text parsing, serving as a type-safe and faster replacement for scanf and std::istream. It is the inverse of {fmt}/std::format and the reference implementation of the ISO C++ standards proposal P1729 'Text Parsing'.
Use cases
- parse integers and floats from strings in C++
- replace scanf with type-safe input parsing
- read values from stdin without iostreams
- parse comma-separated values from text
- scan chrono types and pointers from input
- build fast text-parsing in C++17/20/23 projects
When to choose
- you need type-safe, fast text scanning in modern C++
- you want a std::format-like API for input instead of output
- you are evaluating or implementing P1729 text parsing semantics
- you want to replace scanf or std::istream in a C++ codebase
When to avoid
- you need regex-based or pattern-based text matching rather than typed value scanning
- your project targets pre-C++17 compilers
- you only need output formatting, where {fmt} or std::format suffices
Facets
library · maturity stable
parser serialization developer-tools parsers programming-languages developer-tools cpp cross-platform windows scanf text-parsing type-safe-io fmt cmake cpp17 ranges p1729 linux macos
4 sources
- readme: https://github.com/eliaskosunen/scnlib · fetched 2026-08-28 · 289a615e479b
- homepage: https://scnlib.dev · fetched 2026-08-29 · 2e820c2d7fed
- site_page: https://www.scnlib.dev/faq.html · fetched 2026-08-29 · 41b5448f11b3
- site_page: https://www.scnlib.dev/poxy_changelog.html · fetched 2026-08-29 · 286beea60fd4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| eliaskosunen/scnlib | main | 78 |
For agents
markdown · JSON · MCP: product_card(name="eliaskosunen/scnlib")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem