Examples
Examples
Runnable Streamsy example applications, from a plain HTTP host to projection-backed apps.
| Example | What it does | Shows |
|---|---|---|
| Memory server | A Durable Streams server with full protocol support | Protocol routes, the memory Layer, a storage swap |
| Todo | A todo API whose code is one file | Decide over a fold, attached checkpoints, Serve values |
| Hacker News newest | A live list of the newest Hacker News stories in the browser | State streams, read, decide, append, SQLite restart |
| Issue tracker | A small issue tracker with live updates | Read, fold, append, Serve routes, browser state |
| Issue tracker, event sourced | The same issue tracker with a server that appends domain events | Decide over a projection, producer outputs, runtime keys |
| Issue tracker, Foldkit | The same issue tracker with a Foldkit frontend | Stream reads as Messages, optimistic writes in update |
| Issue tracker, Effect Atom | The same issue tracker with Effect Atom in React | Live queries as derived atoms, typed writes, txid confirmation |
| Fold agent | An agent session log that one process owns at a time | Conditional writes as a fence |
| Hex board | A board game whose board survives restarts | Projection state, rollback, state size |
| Bugsy | An issue tracker with derived rows, transitions, and a summary | SQL transactions, producer outputs, triggers, Serve values |
| Folder sync | Files with history, live search, and local mirrors | State streams, conditional writes, transactional indexes, sync |
| Doom | Doom in the browser, recorded as a stream of inputs | Binary streams, native forks, placement, wake links, projections |
| Command stream | Requests performed once with an accepted receipt | Caller keys, transactional effects, triggers, awaitWake |
| Timer stream | One-shot, cancellation and cron timers in one binding | State changes, due table, wakeAt, Cron.next |
These examples range from streams and HTTP to apps built with projection features.