Stream Quickstart
Send and subscribe to real-time events.
Quickstart
Litebase Stream gives you real-time, append-only streams — over plain HTTP.
Think of it like a rebel command feed. Every message you send is preserved. Any system — dashboard, agent, or droid — can subscribe and respond in real time. There’s no broker to install, no infrastructure to manage, and no SDK required. Just curl, fetch, or your favorite HTTP client.
1. Publish your first event
Streams are append-only logs. You don’t need to pre-create a stream — just start writing to one.
This sends a simple text event to the starwars stream.
2. Subscribe to real-time updates
Open another terminal and stream the data using Server-Sent Events (SSE):
You'll see:
New events will continue streaming as they’re published.
3. Append in real time
Let’s have some fun: stream ASCII Star Wars into Litebase.
Your subscriber terminal will come to life.
4. Replay past events
You can replay events from a specific transaction:
Or from a specific timestamp:
Use ?follow=true to replay and continue live streaming:
Next steps
- Explore the API reference
- Try live dashboards with Chart.js
- Use
lite streamCLI for advanced usage - Learn more about replay and event ordering