Deployable distributed runtime

A deployable event-ordering runtime for replay, recovery, and distributed event flows.

causal-order is a deployable event-ordering runtime for distributed systems that need bounded replay handling, reconnect-heavy stream reconciliation, explicit late-arrival policy, and operator-visible output rather than timestamp-only ordering.

Published on npm
npm install causal-order View package
Runtime contract
  • orderEvents() for bounded replay, recovery, and audit workloads
  • orderEventStream() for continuous, delayed, and reconnect-heavy flows
  • explicit policy for late arrivals, uncertainty, and correction-capable output
  • inspection helpers for operator review, downstream writeback, and reconciliation
Why this exists

Production timelines often look cleaner than the system actually was.

Replayed events can look newer than originals. Offline devices sync late. Ingestion order can differ from creation order. causal-order is built for systems that still need a deployable ordering runtime without turning those realities into false certainty.

Package ecosystem

The runtime is designed to stay narrow, with companion packages around it.

causal-order is the core event-ordering runtime in the package ecosystem. Companion packages such as @causal-order/dedupe can add focused workflow capabilities like duplicate-event filtering before causal ordering without turning the core runtime into an all-in-one platform.