> ## 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

<CardGroup cols={2}>
  <Card title="Playground" href="https://s2.dev/playground">
    Read and write to a new S2 directly from your browser.

    Share your link with others for a durable, real-time chat room.
  </Card>

  <Card title="AI Chat" href="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>

  <Card title="Sandbox Infra" href="https://s2.dev/demos/browser-images">
    Real-time observability for serverless environments.

    Click into tasks to watch their progress live.
  </Card>

  <Card title="Real-time Sync with Yjs" href="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.
  </Card>
</CardGroup>

## Technical deep dives

<CardGroup cols={2}>
  <Card title="s2-term" href="https://s2.dev/blog/s2-term">
    A serverless terminal that replaces SSH with S2 streams, letting you share a term in the browser.
  </Card>

  <Card title="Building a KV Store" href="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>

  <Card title="IoT" href="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>

  <Card title="Parallax" href="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.
  </Card>
</CardGroup>
