# traildb/traildb

TrailDB is an efficient tool for storing and querying series of events

Repository: https://github.com/traildb/traildb
Canonical: https://ross.abutalabs.com/products/traildb
Homepage: http://traildb.io
Language: C
License: MIT
License Family: permissive
Topics: traildb, c, database, data-analytics, event-data, big-data, time-series
Last push: 2021-01-24T17:29:27+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4404, "days_push": 2047, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1090, forks 75 (observed 2026-08-28T04:03:32.892850+00:00)

## What it is
TrailDB is a C library and tdb command-line tool for storing and querying series of discrete events (trails) in highly compressed, immutable files. It offers a simple API with bindings for Python, Go, R, Haskell, and D, and is optimized for fast queries directly on compressed data.

## Use cases
- store and query clickstream event data per user
- compute metrics like bounce rate from web events
- analyze user behavior patterns and detect anomalies
- compress trillions of discrete events into small immutable files
- process event trails on a laptop from S3-stored files
- cluster and predict user behavior from event series

## When to choose
- you need to store large volumes of discrete, structured events keyed by a primary identifier
- you want gzip-level compression with direct querying without full decompression
- you need immutable event files that fit distributed or S3-based architectures
- you need very high-performance event trail processing on a single core

## When to avoid
- you need continuous numeric time-series like CPU metrics (use a time-series database instead)
- you need mutable, transactional event storage or updates to existing data
- you need a general-purpose relational or key-value database
- you need actively maintained software with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: database, compression, search-engine, cli
- domain: databases, big-data, analytics, time-series
- platform: bsd, c, python, go, cross-platform
- tags: event-data, time-series, immutable-files, columnar-compression, clickstream-analytics, language-bindings, data-engineering, linux, macos

## Member repositories
- traildb/traildb (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.892850+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-30T06:49:15.659212+00:00, confidence not recorded.
  - readme: https://github.com/traildb/traildb (fetched 2026-08-28T04:03:32.892850+00:00, sha 45924d8a94cd)
  - homepage: http://traildb.io (fetched 2026-08-29T12:51:32.398278+00:00, sha 4dd224ab8ec3)
  - site_page: https://traildb.io/docs/index.html (fetched 2026-08-29T12:51:32.407832+00:00, sha 9f09e49b6fe6)
  - site_page: http://traildb.io/docs/getting_started/index.html (fetched 2026-08-29T12:51:32.409902+00:00, sha 7b524a8846b6)
  - site_page: http://traildb.io/docs/tutorial/index.html (fetched 2026-08-29T12:51:32.411693+00:00, sha 6aa54d299a36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
