# nakabonne/tstorage

An embedded time-series database

Repository: https://github.com/nakabonne/tstorage
Canonical: https://ross.abutalabs.com/products/tstorage
Language: Go
License: Apache-2.0
License Family: permissive
Topics: time-series, time-series-database, golang, metrics, golang-library, database
Last push: 2026-03-16T12:44:48+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 72, release rhythm 8, longevity 100
- inputs: {"age_days": 1937, "days_push": 170, "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 1253, forks 86 (observed 2026-08-28T04:04:08.519044+00:00)

## What it is
tstorage is a lightweight embedded time-series database storage engine written in Go, supporting both in-memory and on-disk persistence. It provides a simple, goroutine-safe API for inserting and selecting labeled time-series data points partitioned by time.

## Use cases
- store time-series metrics in a Go application without running a separate database
- persist performance monitoring data points on disk
- query labeled metrics like memory usage over time ranges
- embed a TSDB into load testing or real-time analysis tools
- replace heavy external time-series databases with a simple library

## When to choose
- you need an embedded, dependency-free time-series store in Go
- you want simple Insert/Select APIs with labeled metrics
- your workload needs fast, goroutine-safe ingestion of time-series data

## When to avoid
- you need distributed storage, replication, or clustering
- you need a query language like PromQL or SQL
- you need long-term retention with compaction and downsampling features

## Facets
- artifact type: library
- maturity: stable
- function: database
- domain: databases, time-series, developer-tools
- platform: go, cross-platform
- tags: time-series-database, embedded-database, tsdb, metrics-storage, on-disk-storage, in-memory, storage

## Member repositories
- nakabonne/tstorage (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.519044+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-30T05:07:29.709257+00:00, confidence not recorded.
  - readme: https://github.com/nakabonne/tstorage (fetched 2026-08-28T04:04:08.519044+00:00, sha 66811f940592)
- Data as of 2026-08-30T08:39:29.467469+00:00.
