# JasperFx/marten

.NET Transactional Document DB and Event Store on PostgreSQL

Repository: https://github.com/JasperFx/marten
Canonical: https://ross.abutalabs.com/products/marten
Homepage: https://martendb.io
Language: C#
License: MIT
License Family: permissive
Topics: marten, postgres, documentdb, eventsourcing, event-sourcing, document-database, plv8, dotnet
Last push: 2026-08-26T18:11:16+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 3978, "days_push": 7, "days_rel": 7, "gap_med": 2, "n_releases_24m": 178}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3448, forks 556 (observed 2026-08-28T04:08:05.227660+00:00)

## What it is
Marten is a .NET library that turns PostgreSQL into a fully featured transactional document database using its JSON support, plus an ACID-compliant event store with user-defined projections. It lets .NET developers build event-sourced systems without running a separate database engine.

## Use cases
- use postgres as a document database in .net
- build an event-sourced application with projections
- store and query json documents with acid transactions
- replace a separate document db with postgres
- implement event store with streams in dotnet
- persist domain events and rebuild read models

## When to choose
- you're a .NET team already running PostgreSQL and want document storage or event sourcing without new infrastructure
- you need ACID guarantees across document writes and event streams
- you want projections to build read-side views from event streams

## When to avoid
- you need a standalone document database independent of PostgreSQL
- your team doesn't use .NET
- you need multi-master replication or features specific to dedicated document stores like MongoDB

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver, serialization
- domain: databases, backend, web-development, developer-tools
- platform: dotnet, windows, cloud
- tags: postgresql, document-database, event-sourcing, event-store, jsonb, csharp, acid, projections, linux, macos, docker

## Member repositories
- JasperFx/marten (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.227660+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:37:35.616347+00:00, confidence not recorded.
  - readme: https://github.com/JasperFx/marten (fetched 2026-08-28T04:08:05.227660+00:00, sha 0d7c65d9eec1)
  - homepage: https://martendb.io (fetched 2026-08-29T09:31:23.844883+00:00, sha b18680f56032)
- Data as of 2026-08-30T08:39:29.467469+00:00.
