#146146th of 420 in Backends, databases and hosting
marten
.NET document database and event store on PostgreSQL
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts marten on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.marten is on your watch list. Its new releases and problems show there.
- Stars
- 3.5k
- License
- MIT
- Last commit
- Dec 2026
- Last release
- Nov 2026
- Language
- C#
3,365 on 14 May 20263,473 on 3 Dec 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Marten uses PostgreSQL 13+ to store JSON documents and translates LINQ queries into SQL. Its ACID-compliant event store supports user-defined projections over event streams. The C# library targets .NET 9 and 10.
Who it is for: .NET developers building document-backed or event-sourced applications
Strengths
- Stores JSON documents and event streams in the same PostgreSQL database.
- Supports asynchronous projections over event streams.
- Applies native partial updates to JSON documents.
Weaknesses
- Requires PostgreSQL 13 or newer.
- Building the full solution from source requires both .NET 9 and 10 SDKs.
- Older applications that rely on PLV8 need the separate Marten.PLv8 package.
What it needs
- Docker + Compose
- Needs PostgreSQL 13+, .NET 9 or 10
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Known problems
Open now, reported in the last 90 days
- Read the cold part of an event stream from an application-owned store ↗ (opens in a new tab)1 reactions
Reported, then fixed by a linked change
- AdvancedSql.QueryAsync<...> throws ArgumentException/TypeLoadException when a requested type is byte[] (bytea column) ↗ (opens in a new tab)1 reactions · closed 16 Jul 2026Fixed by Fix AdvancedSql/raw-SQL scalar queries for reference-typed columns (byte[], IPAddress, etc.) ↗ (opens in a new tab)
- LINQ expression value not set in Npgsql command ↗ (opens in a new tab)1 reactions · closed 15 Jul 2026Fixed by Support Where Any on collections when using strongly typed Ids ↗ (opens in a new tab)
- V7 Select before Where no longer working ↗ (opens in a new tab)1 reactions · closed 11 Feb 2026Fixed by Support .Select().Where() expression hoisting in LINQ ↗ (opens in a new tab)
- IsOneOf fails for collection members queried against a runtime list ↗ (opens in a new tab)0 reactions · closed 23 Apr 2026Fixed by Fix IsOneOf for collection members against runtime lists (#4282) ↗ (opens in a new tab)
- Marten 7 Command Failure: 42P08: could not determine data type of parameter $1 ↗ (opens in a new tab)0 reactions · closed 11 Feb 2026Fixed by Fix null named parameters in raw SQL queries (GH-3045) ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Backends, databases and hosting
See all 420| Rank | Project | Score |
|---|---|---|
| #144 | servicestack.NET web services framework with message-based DTO APIs and typed clients | 78 out of 100 |
| #145 | devpushSelf-hosted deploy platform for Docker Compose apps, triggered by GitHub pushes | 78 out of 100 |
| #147 | cal.diySelf-hosted scheduling app, MIT fork of Cal.com without enterprise features | 77 out of 100 |
| #148 | teableAirtable-style collaborative database on PostgreSQL with AI chat and app builder | 77 out of 100 |
| #149 | dieselType-checked ORM and query builder for Rust | 77 out of 100 |