# veselink1/refl-cpp

Static reflection for C++17 (compile-time enumeration, attributes, proxies, overloads, template functions, metaprogramming).

Repository: https://github.com/veselink1/refl-cpp
Canonical: https://ross.abutalabs.com/products/refl-cpp
Homepage: https://veselink1.github.io/refl-cpp/md__introduction.html
Language: C++
License: MIT
License Family: permissive
Topics: cpp, metaprogramming, refl-cpp, reflection, header-only, cpp17, no-dependencies, production-ready
Last push: 2022-11-05T09:36:24+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2680, "days_push": 1397, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1208, forks 87 (observed 2026-08-28T04:03:59.638721+00:00)

## What it is
refl-cpp is a header-only C++17 library providing static, compile-time reflection and introspection. It encodes type metadata in the type system, enabling constexpr and template metaprogramming over types, fields, functions, attributes, and proxies.

## Use cases
- enumerate struct fields at compile time in C++
- serialize objects generically without code generation
- attach custom attributes to types and members
- build proxy wrappers around types with the same members
- invoke member functions by name at runtime
- write generic code that introspects types via template metaprogramming

## When to choose
- you need compile-time reflection in C++17 with zero dependencies
- you want a small API surface and header-only integration
- you need support for overloaded functions, template types, and custom attributes

## When to avoid
- you need runtime-registered reflection without macros
- your project targets a standard older than C++17
- you need reflection for types you cannot modify to add metadata macros

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools, programming-languages
- platform: cpp, cross-platform
- tags: reflection, header-only, metaprogramming, compile-time, cpp17, no-dependencies

## Member repositories
- veselink1/refl-cpp (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.638721+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-30T06:18:56.649148+00:00, confidence not recorded.
  - readme: https://github.com/veselink1/refl-cpp (fetched 2026-08-28T04:03:59.638721+00:00, sha 17167ffff866)
  - homepage: https://veselink1.github.io/refl-cpp/md__introduction.html (fetched 2026-08-29T12:26:33.642903+00:00, sha ff6bd7f0735e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
