# nyaruka/phonenumbers

Go port of Google's libphonenumber library

Repository: https://github.com/nyaruka/phonenumbers
Canonical: https://ross.abutalabs.com/products/phonenumbers
Language: Go
License: MIT
License Family: permissive
Last push: 2026-08-24T14:19:26+00:00

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

## Adoption (not part of the score)
Stars 1597, forks 179 (observed 2026-08-28T04:05:09.218654+00:00)

## What it is
A Go port of Google's libphonenumber library for parsing, validating, and formatting international phone numbers. It tracks the Java reference implementation and embeds upstream metadata for worldwide number handling.

## Use cases
- parse phone numbers from user input in Go
- validate phone numbers for a specific country region
- format phone numbers in national or international format
- get carrier or timezone metadata for a phone number
- normalize phone numbers before storing in a database
- detect invalid phone numbers in form submissions

## When to choose
- you need libphonenumber functionality in a Go project
- you want a well-maintained port used in production worldwide
- you need strict parity with Google's Java libphonenumber behavior

## When to avoid
- you need features not present in upstream libphonenumber
- you work in a language other than Go (use the original libphonenumber or its native ports)
- you need lightweight phone validation without full metadata overhead

## Facets
- artifact type: library
- maturity: active
- function: parser, form-handling, internationalization
- domain: developer-tools, apis
- platform: go, cross-platform
- tags: phone-numbers, libphonenumber, parsing, formatting, metadata, telephony

## Member repositories
- nyaruka/phonenumbers (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.218654+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:54:00.548795+00:00, confidence not recorded.
  - readme: https://github.com/nyaruka/phonenumbers (fetched 2026-08-28T04:05:09.218654+00:00, sha 338c7c524137)
- Data as of 2026-08-30T08:39:29.467469+00:00.
