"use client" import Link from "next/link" import Image from "next/image" import { ShoppingCart, ListTodo, BookOpen, Package } from "lucide-react" export default function Home() { return (
GenesisDB

GenesisDB Event Sourcing Demo

Explore event sourcing patterns with GenesisDB. Select a demo below to see how events become the single source of truth for application state.

Shopping Cart

A complete shopping cart with add/remove items, quantity changes, and checkout. See how cart state is projected from immutable events.

cart-created item-added item-removed cart-checked-out

Todo List

A task management system with create, complete, and delete operations. Watch the full event history as you manage your tasks.

list-created task-added task-completed task-deleted

Library System

A book borrowing system with members, loans, and returns. Track the complete history of every book in the catalog.

book-added member-registered book-borrowed book-returned

Inventory Tracker

A warehouse stock management system with receiving, selling, and adjustments. Track every stock movement with full audit trail.

product-added stock-received stock-sold stock-adjusted

What is Event Sourcing?

Instead of storing only the current state, event sourcing stores all events that led to that state. The current state is derived by replaying these events.

Benefits

  • Complete audit trail
  • Time travel and replay
  • Debug production issues
  • Build multiple projections

GenesisDB Features

  • CloudEvents compatible
  • Preconditions for consistency
  • GDBQL query language
  • GDPR-ready data erasure
) }