Skip to Content
Overview

Use Cases & Examples

Every project listed here lives under examples/ in the KalamDB repository. You can clone the repo, or let an installed kalam CLI download an example into your own project directory with kalam init --template <example-id>.

For Rust SDK examples, see Rust SDK — Examples. For SDK setup, see TypeScript SDK or Rust SDK.

Before you run an example

To start from the CLI without cloning the repo:

BASH
mkdir chat-demo && cd chat-demokalam init --template chat-with-aikalam dev

To run from a cloned checkout, open an example folder:

BASH
npm installkalam dev

kalam dev starts the local server, applies the checked-in migration/schema, regenerates TypeScript artifacts when configured, and runs app or worker processes from [dev.processes].

Example catalog

ExampleWhat you’ll learnDocs
Live OKF Context SyncOne SQL table + FILE column + sync worker: mirror an OKF Markdown folder to KalamDB with live pull and local watch pushLive OKF Context Sync
Realtime Ops FeedqueryAll(), live(), and browser auth in one React appRealtime Ops Feed
Chat With AIUser messages, topic-driven agent worker, live chat UIChat With AI
React AI ChatFull chat UI with @kalamdb/react, approvals, and file attachmentsReact AI Chat
Summarizer AgentTopic consumer that enriches rows and handles failuresSummarizer Agent

Repository paths

ExamplePath
Live OKF context syncexamples/live-okf-context-sync/
Realtime ops feedexamples/simple-typescript/
Chat with AIexamples/chat-with-ai/
React AI chatexamples/react-ai-chat/
Summarizer agentexamples/summarizer-agent/

Which example should I pick?

Last updated on