Description
S2 is a durable streams API: s2.dev is a serverless datastore for real-time streaming data, and this repository holds the open-source tools around it. It contains s2-cli, the command-line interface; s2-lite, a self-hostable server implementation of the S2 API; and s2-sdk, a Rust SDK. s2-lite is built into the CLI as the s2 lite subcommand and runs as a single-node binary that uses SlateDB as its storage engine, which relies entirely on object storage such as AWS S3 or Tigris for durability. The CLI can be installed with Homebrew on macOS and Linux, with Cargo, from release binaries or with Docker. Access tokens are kept in the operating system's credential store, can be piped in from a script or secret manager, read from the S2_ACCESS_TOKEN variable in CI, or stored in a private plaintext file on headless hosts.…
Highlights
- s2-cli command-line interface
- s2-lite self-hostable server for the S2 API
- Rust SDK
- SlateDB storage backed by object stores like S3 or Tigris
- Install via Homebrew, Cargo, release binaries or Docker
Ratings & Reviews
No ratings yet
Be the first to rate S2.
People also visit
S2 FAQ
What is S2?
A serverless datastore for real-time streaming data at s2.dev. This repository contains its CLI, a self-hostable server called s2-lite, and a Rust SDK.
Can I self-host S2?
Yes, with s2-lite, which runs as the s2 lite subcommand of the CLI. It is a single-node binary that stores data in object storage such as AWS S3 or Tigris via SlateDB.
How do I install the CLI?
Use Homebrew on macOS or Linux, Cargo, the release binaries for macOS and Linux, or the Docker image.
How is authentication handled?
Store an access token in the OS credential store, pipe it in, or set S2_ACCESS_TOKEN in CI. On headless hosts without a credential store you can opt into a private plaintext file.
What are the best S2 alternatives?
Popular alternatives to S2 include s2.dev, Sliplane and WaveHouse. See all S2 alternatives





