# couchbase/moss

moss - a simple, fast, ordered, persistable, key-val storage library for golang

Repository: https://github.com/couchbase/moss
Canonical: https://ross.abutalabs.com/products/couchbase-moss
Language: Go
License: NOASSERTION
License Family: other
Last push: 2026-07-23T22:38:54+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 3861, "days_push": 41, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1015, forks 66 (observed 2026-08-28T04:03:14.090967+00:00)

## What it is
Moss (memory-oriented sorted segments) is a pure-Go library providing a fast, ordered, persistable key-value collection. It uses a simplified LSM-tree design with sorted immutable segments, supporting snapshots, atomic batches, merge operations, and an optional append-only store with mmap reads.

## Use cases
- embed an ordered key-value store in a Go application
- persist key-value data with snapshots and atomic batches
- implement write-heavy counters with merge operations
- cache writes back to a lower-level store like leveldb or sqlite
- navigate and revert to previous commit points of a datastore

## When to choose
- you need an embedded, ordered key-value collection in pure Go
- you want concurrent readers and writers that don't block each other
- you need snapshot isolation and atomic batch mutations
- you want a write-back caching layer over another storage engine

## When to avoid
- you need a full-featured standalone database server
- you require SQL or rich query capabilities
- your project is not written in Go
- you need battle-tested LSM storage like RocksDB with broad ecosystem support

## Facets
- artifact type: library
- maturity: active
- function: database, caching, serialization
- domain: databases, developer-tools, performance
- platform: go, cross-platform
- tags: key-value-store, lsm-tree, embedded-storage, sorted-segments, snapshots, persistence

## Member repositories
- couchbase/moss (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:14.090967+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-30T07:11:25.923405+00:00, confidence not recorded.
  - readme: https://github.com/couchbase/moss (fetched 2026-08-28T04:03:14.090967+00:00, sha c9311018a378)
- Data as of 2026-08-30T08:39:29.467469+00:00.
