getml/reflect-cpp
A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, Avro, Boost Serialization, BSON, Cap'n Proto, CBOR, Cereal, Command line interfaces, CSV, Environment variables, flexbuffers, msgpack, parquet, TOML, UBJSON, XML, YAML, yas / msgpack.org[C++20] observed · 2026-08-28
Health v2 · maintenance only
85/100
- Activity 99
- Release rhythm 72
- Longevity 76
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: 43.0
- age_days: 1071
- days_rel: 109
- days_push: 8
- n_releases_24m: 11
Adoption not part of the score
1927 stars · 191 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
reflect-cpp is a C++20/C++26 library for fast serialization, deserialization, and validation using reflection, comparable to pydantic or serde. It supports many formats out of the box including JSON, YAML, TOML, Avro, Parquet, msgpack, CBOR, and BSON, and also provides CLI argument parsing.
Use cases
- serialize C++ structs to JSON and back
- parse and validate configuration files in YAML or TOML
- read and write Parquet or CSV tabular data
- deserialize API responses into typed C++ structs
- parse command line arguments into structs
- reduce boilerplate for data exchange between C++ components
When to choose
- you need pydantic/serde-style serialization in modern C++
- you want one library supporting many serialization formats
- you need type-safe validation with clear error messages
- you want fast serialization performance
When to avoid
- you are stuck on pre-C++20 compilers
- you need a minimal JSON-only parser with no reflection overhead
- your compiler is not GCC 11+, Clang 14+, or MSVC 17.8+
Facets
library · maturity active
serialization form-handling parser cli developer-tools developer-tools files apis backend cpp cross-platform windows reflection c-plus-plus-20 yaml msgpack avro parquet toml cbor data-validation serde-like linux macos
4 sources
- readme: https://github.com/getml/reflect-cpp · fetched 2026-08-28 · 11e9d96a9fe6
- homepage: https://rfl.getml.com · fetched 2026-08-29 · 3fe5fb69c8ff
- site_page: https://rfl.getml.com/install · fetched 2026-08-29 · 27f72072726a
- site_page: https://rfl.getml.com/docs-readme · fetched 2026-08-29 · 57646b4cca49
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| getml/reflect-cpp | main | 85 |
For agents
markdown · JSON · MCP: product_card(name="getml/reflect-cpp")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem