Skip to content

Recipes ​

Choose a task, follow its recipe, and run the linked example to compare the result with your own project. Each recipe uses existing public APIs. For a terse API reference, see Using skein-js.

Read working code first ​

triage-agent covers crons, background runs, idempotency, human-in-the-loop, long-term memory and time travel in one graph — and runs with no API key and no network (bundled fixtures, deterministic fallback classifier).

bash
pnpm --filter @skein-js/example-triage-agent dev    # console at http://127.0.0.1:2024/console/
pnpm --filter @skein-js/example-triage-agent seed   # register the schedule + sweep once

The recipes ​

PageCovers
ServingPick an adapter, serve a graph as a plain endpoint, CORS for a browser
Running agentsBackground runs, crons, idempotency, human-in-the-loop, run timeouts
Coupled WhatsApp workflowA workflow with the same provider as source and destination
Cross-provider workflowEmail source → LangGraph workflow → allowlisted WhatsApp/email destinations
MemorygetStore(), semantic search, and the dedup trap
Deep Agents (experimental)Files, per-user memory, streamed subagents, approval and async subagents
Authenticating requestsBetter Auth, Clerk, Supabase, Firebase, OIDC/JWT, and authorization policy
ProductionAuth, run-completion webhooks, durable storage and deploying
Local apps and SQLiteDesktop, CLI, and daemon hosts with one owned database file

Which example shows what ​

ExampleShows
triage-agentCrons, background runs, idempotency, HITL, memory, time travel
decoupled-deliveryRouted channels: email source → approval workflow → WhatsApp/email destinations
chat-appFull-stack chat: streaming, thinking, tool cards, HITL, memory
deep-agentResearch briefing assistant on Deep Agents (experimental): memory, subagents, approval
invoke-endpointNon-chat graphs as plain HTTP endpoints
embed-graphA graph you already have, served with no langgraph.json
migrated-langgraphThe drop-in proof — a stock LangGraph project under skein dev
react-usestreamA minimal useStream frontend against any skein server
Daybook — ElectronMeeting context tools, streaming, recap review, and Markdown revisions
Reading Room — TauriLocal documents, library tools, source excerpts, and reviewed reading briefs
Dayplan — CLILocal task files, previous plans, and approval before saving