# eliaskosunen/scnlib

scanf for modern C++

Repository: https://github.com/eliaskosunen/scnlib
Canonical: https://ross.abutalabs.com/products/scnlib
Homepage: https://scnlib.dev
Language: C++
License: Apache-2.0
License Family: permissive
Topics: c-plus-plus, cpp, scanf, input, io, parsing, ranges
Last push: 2026-08-21T19:35:41+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 40, longevity 100
- inputs: {"age_days": 2847, "days_push": 12, "days_rel": 668, "gap_med": 0.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1316, forks 57 (observed 2026-08-28T04:04:20.783678+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: parser, serialization, developer-tools
- domain: parsers, programming-languages, developer-tools
- platform: cpp, cross-platform, windows
- tags: scanf, text-parsing, type-safe-io, fmt, cmake, cpp17, ranges, p1729, linux, macos

## Member repositories
- eliaskosunen/scnlib (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:20.783678+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-30T04:48:28.218720+00:00, confidence not recorded.
  - readme: https://github.com/eliaskosunen/scnlib (fetched 2026-08-28T04:04:20.783678+00:00, sha 289a615e479b)
  - homepage: https://scnlib.dev (fetched 2026-08-29T12:06:53.933854+00:00, sha 2e820c2d7fed)
  - site_page: https://www.scnlib.dev/faq.html (fetched 2026-08-29T12:06:53.945385+00:00, sha 41b5448f11b3)
  - site_page: https://www.scnlib.dev/poxy_changelog.html (fetched 2026-08-29T12:06:53.947276+00:00, sha 286beea60fd4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
