---
title: "Event Sourcing on PostgreSQL in Node.js just became possible with Emmett"
url: https://daily.dev/posts/event-sourcing-on-postgresql-in-node-js-just-became-possible-with-emmett-wyhizpkg6
source_url: https://event-driven.io/en/emmett_postgresql_event_store
type: article
source: "Event-Driven by Oskar Dudycz"
published: 2026-06-17T11:26:02.521Z
updated: 2026-06-17T11:31:30.827Z
tags: ["architecture", "nodejs", "postgresql"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Sourcing on PostgreSQL in Node.js just became possible with Emmett

**[Event-Driven by Oskar Dudycz](https://daily.dev/sources/event-driven-io)** · 6 min read · 0 upvotes · 0 comments

## Summary

Emmett, an Event Sourcing library for Node.js, now supports PostgreSQL as an event store backend via the new @event-driven-io/emmett-postgresql package. It uses node-postgres with connection pooling and introduces inline projections — read model updates that run in the same transaction as event appends. The integration leverages Pongo (a MongoDB-compatible API layer on top of PostgreSQL) for document storage, supporting single-stream and multi-stream projection patterns. The author also details recent Pongo improvements including new document manipulation methods, external connection pool injection for transaction support, and a schema change from UUID to TEXT for document IDs to enable stream ID reuse.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://event-driven.io/en/emmett_postgresql_event_store>

## Similar posts on daily.dev

- [Consumers, projectors, reactors and all that messaging jazz in Emmett](https://daily.dev/posts/consumers-projectors-reactors-and-all-that-messaging-jazz-in-emmett-ie8ierv12) · Architecture Weekly · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#nodejs](https://daily.dev/tags/nodejs), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/event-sourcing-on-postgresql-in-node-js-just-became-possible-with-emmett-wyhizpkg6)
