# jaypipes/ghw

Go HardWare discovery/inspection library

Repository: https://github.com/jaypipes/ghw
Canonical: https://ross.abutalabs.com/products/ghw
Language: Go
License: Apache-2.0
License Family: permissive
Topics: hardware, discovery, golang-hardware-discovery, inspection-library, golang-library, go-hardware, go-hardware-discovery
Last push: 2026-08-20T16:59:25+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 92, longevity 100
- inputs: {"age_days": 3386, "days_push": 13, "days_rel": 56, "gap_med": 22, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1873, forks 223 (observed 2026-08-28T04:05:47.196310+00:00)

## What it is
ghw is a Go library for discovering and inspecting host hardware, covering CPU, memory, block storage, network, PCI, GPU, topology, BIOS, and chassis information. It works without root privileges and reports static hardware capacity and capabilities, not runtime usage metrics.

## Use cases
- discover cpu and memory info in go
- inspect hardware without root privileges
- get pci and gpu device information
- read numa topology and cache hierarchy
- enumerate block storage devices
- detect hardware capabilities on linux and windows

## When to choose
- you need static hardware capacity info in a Go program
- you cannot rely on root privileges or shellouts to dmidecode
- you want consistent, documented APIs across hardware domains

## When to avoid
- you need real-time usage metrics like CPU load or disk I/O - use a monitoring tool like Prometheus
- you need full macOS support - only partial support exists

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, sdk
- domain: developer-tools, hardware, operating-systems
- platform: windows, go
- tags: hardware-discovery, system-inspection, go-library, no-root-required, cpu, memory, block-storage, pci, gpu, network, linux, macos

## Member repositories
- jaypipes/ghw (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:47.196310+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:14:49.902232+00:00, confidence not recorded.
  - readme: https://github.com/jaypipes/ghw (fetched 2026-08-28T04:05:47.196310+00:00, sha f97dd4cf83a3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
