lloydmeta/enumeratum
A type-safe, reflection-free, powerful enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations. observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 87
- Release rhythm 76
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 33.5
- age_days: 4289
- days_rel: 81
- days_push: 81
- n_releases_24m: 11
Adoption not part of the score
1222 stars · 151 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Enumeratum is a type-safe, reflection-free enumeration library for Scala with exhaustive pattern match warnings and compile-time macro-based value collection. It supports ValueEnums with compile-time uniqueness constraints and integrates with popular Scala libraries like Play JSON, Circe, and Doobie.
Use cases
- define type-safe enums in Scala without runtime reflection
- get exhaustive pattern match warnings for enum values
- create value enums mapping to Int, Long, or String with compile-time uniqueness checks
- serialize and deserialize enums with Play JSON, Circe, or other Scala JSON libraries
- use enums in Scala.js or Scala Native projects where reflection is unavailable
- store enums in a database via Doobie or Slick integrations
When to choose
- you need type-safe enumerations in Scala with IDE-friendly idiomatic code
- your target platform lacks reliable reflection support (Scala.js, Scala Native, Android)
- you want compile-time validation of enum value uniqueness
- you need zero-dependency, performant enums faster than Scala's built-in Enumeration
When to avoid
- you are not working in Scala
- you need Java-style enums with built-in JVM semantics
- your project uses Scala 3 and you cannot enable the -Yretain-trees compiler option for ValueEnums
Facets
library · maturity stable
serialization developer-tools programming-languages developer-tools jvm cross-platform scala enumerations value-enum type-safe macro scala-js scala-native
1 source
- readme: https://github.com/lloydmeta/enumeratum · fetched 2026-08-28 · 6fdd9e23a322
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lloydmeta/enumeratum | main | 86 |
For agents
markdown · JSON · MCP: product_card(name="lloydmeta/enumeratum")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem