# NationalSecurityAgency/lemongraph

Log-based transactional graph engine

Repository: https://github.com/NationalSecurityAgency/lemongraph
Canonical: https://ross.abutalabs.com/products/lemongraph
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-04-30T12:35:58+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 80, release rhythm 35, longevity 100
- inputs: {"age_days": 3691, "days_push": 125, "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 1200, forks 164 (observed 2026-08-28T04:03:58.046257+00:00)

## What it is
LemonGraph is a log-based transactional graph database engine backed by a single file, built on Symas LMDB with a C core and Python bindings. It provides a query language, REST service, and streaming seed-set expansion via log position bookmarks.

## Use cases
- store and query nodes and edges in a transactional graph database
- run streaming seed set expansion over incrementally injected data
- query graph patterns with a built-in query language
- serve graph queries over a REST API
- inspect historical views of the graph at a given log position
- embed a fast single-file graph store in Python applications

## When to choose
- you need a lightweight, single-file transactional graph database
- you want incremental streaming ingestion with position bookmarks for repeat queries
- you need historical graph views as of a specific log position
- you want LMDB-backed performance with Python bindings and a REST service

## When to avoid
- you need distributed or multi-node graph storage
- you require a rich ecosystem of graph algorithms out of the box
- you need concurrent writers (LMDB allows only a single writer)
- you need a managed or actively developed database with broad community support

## Facets
- artifact type: library
- maturity: maintenance
- function: database, search-engine, http-server, serialization
- domain: databases, graph-processing, developer-tools, security
- platform: python, cross-platform
- tags: graph-database, lmdb, log-structured, transactional, rest-api, single-file-database, streaming-analytics, linux, macos

## Member repositories
- NationalSecurityAgency/lemongraph (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:58.046257+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:20:45.436309+00:00, confidence not recorded.
  - readme: https://github.com/NationalSecurityAgency/lemongraph (fetched 2026-08-28T04:03:58.046257+00:00, sha e2ea9f4b57f5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
