# hashicorp/go-memdb

Golang in-memory database built on immutable radix trees

Repository: https://github.com/hashicorp/go-memdb
Canonical: https://ross.abutalabs.com/products/go-memdb
Homepage: https://pkg.go.dev/github.com/hashicorp/go-memdb
Language: Go
License: MPL-2.0
License Family: copyleft
Last push: 2026-06-28T02:03:02+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 8, longevity 100
- inputs: {"age_days": 4096, "days_push": 67, "days_rel": 552, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3472, forks 228 (observed 2026-08-28T04:08:06.026781+00:00)

## What it is
A Go library implementing an in-memory database built on immutable radix trees, with schema-defined tables and indexes. It provides MVCC, ACID transactions (minus durability), rich indexing, and watch sets for change detection.

## Use cases
- store structured data in memory with transactions in Go
- query in-memory data by multiple indexes
- watch for changes to query results
- concurrent reads without locking
- atomic multi-table updates in a Go service
- replace ad-hoc maps with an indexed in-memory store

## When to choose
- you need transactional, indexed in-memory storage in a Go application
- you need MVCC with many concurrent readers and no disk persistence
- you want watchable query results for change notification

## When to avoid
- you need durability or persistence across restarts
- your dataset exceeds available memory
- you need SQL or a query language

## Facets
- artifact type: library
- maturity: stable
- function: database, caching, concurrency
- domain: databases, developer-tools, backend
- platform: go, cross-platform
- tags: in-memory-database, mvcc, radix-tree, transactions, indexing, watches

## Member repositories
- hashicorp/go-memdb (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:06.026781+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-29T18:36:36.689028+00:00, confidence not recorded.
  - readme: https://github.com/hashicorp/go-memdb (fetched 2026-08-28T04:08:06.026781+00:00, sha 5f7ad87b8995)
  - homepage: https://pkg.go.dev/github.com/hashicorp/go-memdb (fetched 2026-08-29T09:30:33.984548+00:00, sha ca146b44be84)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T09:30:33.994492+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T09:30:33.996533+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
