# peterbourgon/diskv

A disk-backed key-value store.

Repository: https://github.com/peterbourgon/diskv
Canonical: https://ross.abutalabs.com/products/diskv
Homepage: http://godoc.org/github.com/peterbourgon/diskv
Language: Go
License: MIT
License Family: permissive
Last push: 2021-11-10T01:12:08+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": 5278, "days_push": 1758, "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 1455, forks 108 (observed 2026-08-28T04:04:46.855847+00:00)

## What it is
Diskv is a simple, persistent key-value store written in Go that stores arbitrary data on the filesystem by key. It layers performance-enhancing abstractions like caching and indexing on top of a conceptually simple disk-backed design.

## Use cases
- persist key-value data to disk in a Go application
- store arbitrary binary blobs keyed by string
- embed a simple disk-backed database without a server
- cache data on the filesystem with an in-memory read cache
- organize data files on disk via a custom key-to-path transform

## When to choose
- you need a dependency-free, embedded persistent key-value store in Go
- your data should remain readable as flat files on disk
- you want simple API semantics like Read/Write/Erase without running a database server

## When to avoid
- you need queries, transactions, or rich data types beyond key-value
- you need concurrent multi-process access or network access to the store
- you need an actively developed project with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: database, caching, file-system
- domain: databases, developer-tools
- platform: go, cross-platform
- tags: key-value-store, disk-backed, embedded-database, persistence

## Member repositories
- peterbourgon/diskv (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:46.855847+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:35:39.594801+00:00, confidence not recorded.
  - readme: https://github.com/peterbourgon/diskv (fetched 2026-08-28T04:04:46.855847+00:00, sha 161c91457395)
  - homepage: http://godoc.org/github.com/peterbourgon/diskv (fetched 2026-08-29T11:44:47.241594+00:00, sha 9afd3119b8ad)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T11:44:47.253818+00:00, sha 757852027879)
  - site_page: https://pkg.go.dev/github.com/peterbourgon/diskv (fetched 2026-08-29T11:44:47.251456+00:00, sha 7f8bea484e35)
  - site_page: https://go.dev/project (fetched 2026-08-29T11:44:47.255857+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
