adrg/xdg
Go implementation of the XDG Base Directory Specification and XDG user directories observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 98
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 7.0
- age_days: 4394
- days_rel: 671
- days_push: 13
- n_releases_24m: 3
Adoption not part of the score
1014 stars · 36 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library implementing the XDG Base Directory Specification and XDG user directories, providing standard paths for application data, config, cache, and well-known user folders. It works cross-platform, falling back to Windows Known Folders on Windows and supporting Unix, macOS, and Plan 9.
Use cases
- get xdg config directory in go
- store application data in platform-appropriate location
- resolve user directories like Downloads and Documents cross-platform
- avoid hardcoding config file paths in a Go app
- windows known folders equivalent of xdg paths
When to choose
- you write Go applications that need spec-compliant config/data/cache paths
- you need cross-platform directory resolution including Windows Known Folders
- you want a small, widely imported, MIT-licensed dependency
When to avoid
- you need XDG desktop features beyond base directories (menus, autostart)
- your project is not in Go
- you need runtime-modifiable user-dirs config parsing
Facets
library · maturity stable
configuration-management file-system developer-tools developer-tools cross-platform operating-systems windows go cross-platform bsd xdg xdg-base-directory user-directories known-folders golang-library paths linux macos
5 sources
- readme: https://github.com/adrg/xdg · fetched 2026-08-28 · 01d0d6ff73b2
- homepage: https://pkg.go.dev/github.com/adrg/xdg · fetched 2026-08-29 · 7d7f996f01d6
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/about · fetched 2026-08-29 · 8b6453863a90
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| adrg/xdg | main | 78 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem