The Principal Dev – Masterclass for Tech Leads

The Principal Dev – Masterclass for Tech LeadsJuly 17-18

Join

Github Sponsors blog blog

Emmett - Event Sourcing development made simple

Emmett is an opinionated yet flexible framework that implements Event Sourcing for Node.js applications. It focuses on composition rather than magic, providing lightweight abstractions and clear patterns that make Event Sourcing accessible and maintainable.

Why Use Emmett?

Nowadays, storage is cheap, but the information is priceless.

Event Sourcing, keeps all the facts that happened in our system as events. That provides an observability of the business process and enabling event-driven capabilities like building read models, easier integration between components.

However, implementing Event Sourcing can be challenging due to:

Emmett solves these problems by:

Check Emmett and take your event-driven applications back to the future!

Features

Feature Description
Event-Centric Modeling Structured approach to modeling business processes through events
Multiple Event Stores Built-in support for PostgreSQL, EventStoreDB, MongoDB, SQLite, and In-Memory storage
Command Handling Patterns Standardized approach to command processing and event handling
Building read models Built-in projections to build read models from recorded events.
Type Safety First-class TypeScript support with structural typing
Express.js Integration Seamless integration with Express.js, including conventional error handling etc.
Comprehensive Testing Support Tools for unit, integration, and E2E testing with BDD-style syntax
Lightweight Design Focused on composition over replacement, allowing integration with existing systems
Docker Testing Integration Support for TestContainers to simplify database setup in tests

Documentation and Resources

Read more in documentation, join our Discord Channel and ask any question.

See the video tutorial to learn how to build a full application with it:

Practical introduction to Event Sourcing with Spring Boot and EventStoreDB

Check also my blog articles on Emmett:

FAQ

Is it production-ready?

What's there is safe to use. I'd like to add more stuff to enhance the production experience, like OpenTelemetry, but users are already using Emmett in their systems.

Why Node.js?

I like its minimalistic approach and flexibility, plus TypeScript is an excellent language with its shapeshifter capabilities. Plus, I've been asked if I could deliver such a store for Node.js.

Why is it named Emmett?

Because.

What features will it have?

We'll see, but for sure, I'd like to have the following:

Would it be a competitor to other stores?

It is hard to say; my intention is not to compete but to give more options to the community.

Why there's no license?

Because I'm unsure how this will end, and I don't want to expose it as an MIT license from the beginning.

Support

💖 If you'd like this project and want us to deliver more and faster, feel invited to join the group of our 👉 Github Sponsors.

By doing so, you're helping to make our work on it sustainable and continuing our efforts so we can support your products.

🥉 Bronze Sponsors

Contributing

Emmett is a community project, so once you find something missing or not working, we encourage you to send us a GH issue or Pull Request extending the support or test coverage! Check also Contributing guide

If you think something is missing or want to get some features faster, I'm happy to take sponsoring to prioritise it. Feel free to contact me - we'll find a way to help you!

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.