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

# Demos

> Try S2 in action: experiment in the Playground, resume an AI chat mid-stream, watch live sandbox logs, and test collaborative editing.

## Interactive

> [card] [Playground](https://s2.dev/playground)
>
> Read and write to a new S2 stream directly from your browser.
>
> Share your link with others for a durable, real-time chat room.

> [card] [AI Chat](https://s2.dev/demos/ai-chat)
>
> Multiplayer, resumable AI chat powered by S2.
>
> Try opening it across multiple devices, or reloading mid-response — the stream picks up where it left off.

> [card] [Sandbox Infra](https://s2.dev/demos/browser-images)
>
> Real-time observability for serverless environments.
>
> Click into tasks to watch their progress live.

> [card] [Real-time Sync with Yjs](https://s2.dev/demos/y-s2)
>
> Collaborative editing with CRDTs over S2.
>
> See the [blog post](https://s2.dev/blog/durable-yjs-rooms) for how it works.

## Technical deep dives

> [card] [s2-term](https://s2.dev/blog/s2-term)
>
> A serverless terminal that replaces SSH with S2 streams, letting you share a term in the browser.

> [card] [Building a KV Store](https://s2.dev/blog/kv-store)
>
> Building a strongly-consistent distributed key-value database using S2 as the write-ahead log.
>
> Also presented at [HYTRADBOI 2025](https://www.hytradboi.com/2025/f2cc03cb-14fc-42f4-ad38-b4b15a15815f-serverless-primitives-for-the-shared-log-architecture).

> [card] [IoT](https://s2.dev/blog/iot)
>
> A Raspberry Pi streams thermal sensor data to S2 at 10 Hz, consumed live via SSE in a Next.js frontend.

> [card] [Parallax](https://s2.dev/blog/distributed-ai-agents)
>
> Distributed AI agent coordination.
>
> Multiple independent agent cohorts reason on shared problems, each writing to their own S2 stream.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.