Examples

Working code, reference projects, and walkthroughs for the most common AllSource shapes.

Code snippets

Asset projection (Rust)

sdks/rust

End-to-end Rust example: ingest events, fold them into a projection, query the projected state. Used as the canonical sample in the Rust SDK and exercised by the Docker build.

MCP server quickstart

docs

Wire a Claude Desktop or any MCP-compatible client to AllSource in under five minutes. Config snippet, the 43 available tools, and what each one returns.

Tenant onboarding flow

docs

Provision a tenant, mint an API key, and write your first event using `curl`. The exact sequence the onboarding endpoint runs server-side, but spelled out so you can integrate it into your own setup script.

Custom projections

docs

Walks through writing a projection that derives running totals from a stream of order events — including incremental updates, replay, and snapshots. Vendor-neutral, applicable to any SDK.

Reference projects

Real services in the monorepo that consume AllSource as their data layer. Read the source to see how the pieces fit together end-to-end.

chronis — agent-native task CLI

A working CLI built directly on top of AllSource. Every action is an immutable event, state is a projection, the binary syncs to the hosted gateway. The cleanest example of what an agent-friendly tool looks like when its substrate is an event store.

Prime — graph + vector + recall

Prime is the AI-workload service: a graph store, a vector index, and a temporal recall layer, all served as MCP tools and over HTTP. Source for both the engine and the MCP wrapper that LLM agents talk to.

Phoenix Channels streaming

The Elixir gateway's WebSocket layer. Real-time projection subscriptions, per-tenant channel scoping, and reconnection semantics — useful as a reference if you're wiring AllSource into a live UI.

Solution walkthroughs

Long-form pages on how AllSource maps to specific problem shapes — closer to a tutorial than a snippet.