Ross ROSS = Recommend OSS · open-source software intelligence for agents

Neargye/magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code observed · 2026-08-28

github.com/Neargye/magic_enum · C++ · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

81/100

  • Activity 97
  • Release rhythm 50
  • 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: 535
  • age_days: 2713
  • days_rel: 122
  • days_push: 22
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

6175 stars · 567 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A header-only C++17 library providing static reflection for enums, enabling conversion between enum values and strings, iteration over enum values, and related utilities without macros or boilerplate. It works with any enum type using compiler-based metaprogramming techniques.

Use cases

  • convert enum value to its name string in C++
  • parse a string into an enum value
  • iterate over all values of an enum type
  • get the count of enum entries at compile time
  • serialize enums to text for logging or config files
  • case-insensitive enum name lookup

When to choose

  • you need enum-to-string or string-to-enum conversion in modern C++ without writing macros
  • you want a zero-dependency, single-header library you can drop into any project
  • you need to iterate or reflect over enum values generically
  • you want compile-time enum utilities with no runtime registration

When to avoid

  • your enums have very large or sparse value ranges that exceed the library's default limits
  • you need full runtime reflection beyond enums
  • you are stuck on a pre-C++17 compiler
  • you cannot tolerate the template-heavy compile-time cost in large translation units

Facets

library · maturity stable

serialization developer-tools developer-tools programming-languages cpp cross-platform header-only reflection enums metaprogramming enum-to-string string-to-enum no-dependencies

1 source

Member repositories

RepositoryRoleHealth v2
Neargye/magic_enummain81

For agents

markdown · JSON · MCP: product_card(name="Neargye/magic_enum")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem