# cheekybits/genny

Elegant generics for Go

Repository: https://github.com/cheekybits/genny
Canonical: https://ross.abutalabs.com/products/genny
Language: Go
License: MIT
License Family: permissive
Last push: 2021-08-24T18:48:42+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4328, "days_push": 1835, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1717, forks 126 (observed 2026-08-28T04:05:26.418505+00:00)

## What it is
Genny is a code-generation tool that provides generics-like functionality for Go before native generics existed. It processes valid Go source files, replacing generic type placeholders with specific types to generate type-specific code via the `genny gen` command and `go generate`.

## Use cases
- generate type-specific Go code from generic templates
- create typed collections like maps and sets for multiple Go types
- integrate generics-style code generation with go generate
- generate permutations of generic code for multiple type combinations
- generate code for all built-in Go types using BUILTINS wildtype

## When to choose
- you maintain a Go codebase targeting versions before Go 1.18 generics
- you need type-safe data structures across many built-in types without hand-writing each
- you want generic code that still compiles and tests as normal Go

## When to avoid
- you are on Go 1.18 or later, which has native generics
- you need runtime generics rather than compile-time code generation
- you want an actively developed tool - the project has been in maintenance since 2021

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: compiler, developer-tools
- domain: developer-tools, programming-languages
- platform: go, cli, cross-platform
- tags: generics, go-generate, code-generation, pre-generics-go, automation

## Member repositories
- cheekybits/genny (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.418505+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-30T03:34:12.716710+00:00, confidence not recorded.
  - readme: https://github.com/cheekybits/genny (fetched 2026-08-28T04:05:26.418505+00:00, sha 789c138d3b4d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
