# lithammer/shortuuid

A generator library for concise, unambiguous and URL-safe UUIDs

Repository: https://github.com/lithammer/shortuuid
Canonical: https://ross.abutalabs.com/products/lithammer-shortuuid
Homepage: https://pkg.go.dev/github.com/lithammer/shortuuid/v4
Language: Go
License: MIT
License Family: permissive
Topics: shortuuid, uuid, go, golang
Last push: 2026-08-24T04:56:56+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 3972, "days_push": 9, "days_rel": 7, "gap_med": 4, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1398, forks 63 (observed 2026-08-28T04:04:36.820313+00:00)

## What it is
A Go library that generates concise, unambiguous, URL-safe UUIDs by encoding standard UUIDs to base57, removing look-alike characters. It supports v4, v5, and v7 UUIDs, custom alphabets, and decoding back to standard UUID form.

## Use cases
- generate short url-safe unique ids for user-facing urls
- generate readable non-sequential ids for database records
- create time-sortable short ids from uuid v7
- encode uuids with a custom alphabet like base58
- decode short ids back to standard uuids

## When to choose
- you need short, human-friendly, URL-safe unique identifiers in Go
- you want compatibility with the Python shortuuid library
- you need deterministic ids derived from names via uuid v5

## When to avoid
- you need cryptographically short opaque ids with secrecy guarantees
- you are not working in Go or need cross-language support beyond Python compatibility
- standard uuids are acceptable and you want zero dependencies

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, backend, apis
- platform: go, cross-platform
- tags: uuid, shortuuid, base57, id-generation, url-safe

## Member repositories
- lithammer/shortuuid (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.820313+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:39:13.565074+00:00, confidence not recorded.
  - readme: https://github.com/lithammer/shortuuid (fetched 2026-08-28T04:04:36.820313+00:00, sha bfb3739e8822)
  - homepage: https://pkg.go.dev/github.com/lithammer/shortuuid/v4 (fetched 2026-08-29T11:53:30.351454+00:00, sha 542c4131b17c)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T11:53:30.360931+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T11:53:30.363067+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
