# Masterminds/semver

Work with Semantic Versions in Go

Repository: https://github.com/Masterminds/semver
Canonical: https://ross.abutalabs.com/products/masterminds-semver
Language: Go
License: MIT
License Family: permissive
Topics: semantic-versions, semver, golang, go, constraints, comparison, tilde, caret
Last push: 2026-08-14T20:55:09+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 49, longevity 100
- inputs: {"age_days": 3982, "days_push": 19, "days_rel": 125, "gap_med": 263.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1431, forks 166 (observed 2026-08-28T04:04:42.824052+00:00)

## What it is
A Go library for parsing, comparing, sorting, and constraining Semantic Versions. It supports strict SemVer 2.0 parsing, coercion of loose versions, and constraint checks with tilde and caret ranges.

## Use cases
- parse semantic versions in go
- compare version numbers in go
- check if a version satisfies constraints like ^1.2.0
- sort a list of versions
- handle versions with a v prefix
- validate semver strings

## When to choose
- you need robust semver parsing and constraint checking in a Go project
- you need tilde/caret range compatibility with other ecosystems' tooling
- you want a mature, widely used library (used by Helm and dep)

## When to avoid
- you need version handling in a language other than Go
- you need full non-semver version scheme support (e.g., arbitrary versioning schemes)

## Facets
- artifact type: library
- maturity: active
- function: parser, developer-tools
- domain: developer-tools, version-control
- platform: go
- tags: semver, semantic-versioning, version-constraints, version-comparison, algorithms

## Member repositories
- Masterminds/semver (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:42.824052+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-30T04:37:05.145832+00:00, confidence not recorded.
  - readme: https://github.com/Masterminds/semver (fetched 2026-08-28T04:04:42.824052+00:00, sha 39214f1e462c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
