Skip to Content
Examples

Examples

Runnable Streamsy example applications, from a plain HTTP host to projection-backed apps.

ExampleWhat it doesShows
Memory serverA Durable Streams server with full protocol supportProtocol routes, the memory Layer, a storage swap
TodoA todo API whose code is one fileDecide over a fold, attached checkpoints, Serve values
Hacker News newestA live list of the newest Hacker News stories in the browserState streams, read, decide, append, SQLite restart
Issue trackerA small issue tracker with live updatesRead, fold, append, Serve routes, browser state
Issue tracker, event sourcedThe same issue tracker with a server that appends domain eventsDecide over a projection, producer outputs, runtime keys
Issue tracker, FoldkitThe same issue tracker with a Foldkit frontendStream reads as Messages, optimistic writes in update
Issue tracker, Effect AtomThe same issue tracker with Effect Atom in ReactLive queries as derived atoms, typed writes, txid confirmation
Fold agentAn agent session log that one process owns at a timeConditional writes as a fence
Hex boardA board game whose board survives restartsProjection state, rollback, state size
BugsyAn issue tracker with derived rows, transitions, and a summarySQL transactions, producer outputs, triggers, Serve values
Folder syncFiles with history, live search, and local mirrorsState streams, conditional writes, transactional indexes, sync
DoomDoom in the browser, recorded as a stream of inputsBinary streams, native forks, placement, wake links, projections
Command streamRequests performed once with an accepted receiptCaller keys, transactional effects, triggers, awaitWake
Timer streamOne-shot, cancellation and cron timers in one bindingState changes, due table, wakeAt, Cron.next

These examples range from streams and HTTP to apps built with projection features.