> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snakream.tonbo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Snakream

> Durable, replayable streams for application state.

Application state often ends up split across process memory, custom recovery code, and one-off real-time plumbing. When a worker crashes or a client reconnects, replay and recovery get harder than they should be.

Snakream provides durable, replayable streams for application state. Give each document, session, task, or run its own stream for recovery, replay, and live updates over plain HTTP.

<img src="https://mintcdn.com/tonboioinc/mN4LSnOgpL-PXIFr/snakream-theme-2-stars.png?fit=max&auto=format&n=mN4LSnOgpL-PXIFr&q=85&s=8873e4b674975cd3ec8dca8f9281b159" alt="Illustration of the Snakream theme" width="3175" height="1334" data-path="snakream-theme-2-stars.png" />

## What you get

**Crash recovery.** Replay an object's stream and resume from a known state after a restart.

**Live updates over HTTP.** Read from the beginning, catch up, or tail live with long-poll or SSE. `curl` and `EventSource` work out of the box.

**Automatic lifecycle.** Keep recent data hot, archive older data automatically, and expire finished streams with TTL when they no longer matter.

## Try it now

```bash theme={null}
# Create a bucket and stream
curl -X PUT https://stream.tonbo.dev/ds/demo
curl -X PUT https://stream.tonbo.dev/ds/demo/hello

# Append data
curl -X POST https://stream.tonbo.dev/ds/demo/hello \
  -H 'Content-Type: application/octet-stream' \
  --data-binary 'hello world'

# Read from the beginning
curl 'https://stream.tonbo.dev/ds/demo/hello?offset=-1'

# Subscribe for live updates (SSE)
curl 'https://stream.tonbo.dev/ds/demo/hello?offset=-1&live=sse'
```

## Learn more

* **[Quick Start](/quick-start)** — step-by-step walkthrough
* **[Why Snakream](/why-snakream)** — where it fits, and where it doesn't
* **[Concepts](/concepts/streams)** — streams, buckets, offsets, read modes, snapshots
* **[Architecture](/architecture/overview)** — how the cluster works
* **[API Reference](/api/overview)** — full HTTP API surface
* **[Protocol Spec](/specs/durable-stream)** — the Durable Streams Protocol and extensions
