# blang/semver

Semantic Versioning (semver) library written in golang

Repository: https://github.com/blang/semver
Canonical: https://ross.abutalabs.com/products/blang-semver
Language: Go
License: MIT
License Family: permissive
Topics: semver, go, golang, semantic-versioning, semantic-versions
Last push: 2023-01-15T12:58:59+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4446, "days_push": 1326, "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 1049, forks 102 (observed 2026-08-28T04:03:22.724701+00:00)

## What it is
A Semantic Versioning (semver) library for Go that fully implements the semver 2.0.0 spec. It provides parsing, validation, comparison, range matching with wildcards, and JSON/SQL serialization compatibility.

## Use cases
- parse and validate semantic version strings in Go
- compare two semver versions to determine ordering
- check whether a version satisfies a range like >=1.0.0 <2.0.0
- sort a list of versions
- marshal and unmarshal versions to and from JSON
- store versions in a SQL database

## When to choose
- you need spec-compliant semver parsing and comparison in Go
- you need version range matching with operators and wildcards
- you want a fast, dependency-free library with only stdlib
- you need JSON or database/sql integration for versions

## When to avoid
- you need non-semver versioning schemes
- you are not working in Go
- you need constraint syntax with brackets or complex boolean expressions

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, developer-tools
- domain: developer-tools, version-control, apis
- platform: go, cross-platform
- tags: semver, semantic-versioning, version-comparison, version-ranges, golang-library

## Member repositories
- blang/semver (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:22.724701+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-30T07:00:28.115833+00:00, confidence not recorded.
  - readme: https://github.com/blang/semver (fetched 2026-08-28T04:03:22.724701+00:00, sha 732e0e77c14c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
