Introduction
A TypeScript-first event sourcing library built for modern web applications
Welcome to Ventyd
Ventyd is a TypeScript-first event sourcing library that makes it easy to build applications where every state change is captured as an immutable event.
Why Ventyd?
Traditional applications only store the current state of your data. Ventyd takes a different approach - it stores all the events that led to the current state, giving you superpowers like complete audit trails, time travel debugging, and event replay.
Type-Safe
Full TypeScript support with comprehensive type inference. Catch errors at compile time.
Flexible Schema
Use Valibot, Zod, ArkType, TypeBox, or any Standard Schema library.
Any Database
Simple adapter interface works with MongoDB, PostgreSQL, MySQL, or custom solutions.
Extensible
Plugin system for analytics, logging, notifications, and custom side effects.
How It Works
Ventyd follows a simple pattern:
- Define your schema - Describe your events and state using a validation library
- Create a reducer - Define how events transform your state
- Build your entity - Add business logic as methods
- Set up storage - Connect to your database with an adapter
- Use it! - Create, update, and query your entities
Documentation
Getting Started
Installation and quick start
Core Concepts
Event sourcing fundamentals
Schema
Define events and state
Database
Connect to your database
Plugins
Add analytics and logging
Community & Support
GitHub
Source code, issues, and contributions
Issues
Report bugs or request features
License
MIT - Free for commercial and personal use
Ready to Get Started?
Jump into the Quick Start guide and build your first event-sourced entity!
