cross.stream

a local-first event streaming store for hackers & tinkerers

$ "buy groceries" | .append goal
$ "quick note about meeting" | .append notes
$ "submit TPS report" | .append notes
$ "learn cross.stream" | .append goal
$ "review project docs" | .append notes
$ xs serve (xs-addr)
  1. goal 03egou0geu62jz78r2smufms2
  2. notes 03ehpx4n8q5bvz92k3wtnlem7
  3. notes 03ejkr9z2m8xwv45n7qstpkm9
  4. goal 03elmb5w7p3qxt68s9vuwron2
  5. notes 03enmc8v4r6zyu79t1xvwspn4
Query the event store
# Filter events to show only notes entries
$ .cat | where topic == "notes" | each { $in.meta.text }
0quick note about meeting
1submit TPS report
2review project docs
# The latest goal: the last frame on its topic
$ .last goal | $in.meta.text
0learn cross.stream

What's an event streaming store?

If you think of an "event" like a frame in a movie, a small package on a timeline, an event streaming store is a database designed to record these frames in strict order, append-only, so they can be replayed or reacted to later.

For example, you might append a frame every time a message is posted in a specific Discord channel. You can then .cat the stream to review all captured messages, and, if you're in a Nushell session, use pipelines to filter, aggregate, or process them with a CLI tool.

Event Store

Append-only stream with structured metadata inline on each frame. Content-addressable storage (CAS) for binary and large blobs.

Actors

React to incoming frames with stateful processors: transform, trigger, fan-out.

Actions

On-demand, stateless ops. Perfect for RPC-style calls or streaming data back to the caller.

Services

Continuously pull data from files, APIs, websockets, serial devices, or sensors.

Local-First

Single binary, file-based store, Unix socket API. No cloud, works offline.

Nushell Integration

Write actors and services in Nushell with strong typing and structured pipelines.