Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.waniwani.ai/llms.txt

Use this file to discover all available pages before exploring further.

The SDK is split into entry points so you only import what you need. The core flow engine ships zero runtime dependencies; the rest is opt-in.
Entry pointWhat you getRequires API key?
@waniwani/sdkwaniwani() client, WaniWaniErrorYes
@waniwani/sdk/mcpcreateFlow, StateGraph, START, END, KvStore, MemoryKvStore, WaniwaniKvStore, withWaniwani, scoped client, tracking helpersNo (key unlocks hosted parts)
@waniwani/sdk/mcp/reactuseWaniwani standalone tracking hookNo
@waniwani/sdk/chatChatEmbed, themes, embed.js, styles.cssYes
@waniwani/sdk/kbKnowledge-base client (createKbClient)Yes
See the Platform overview for what “Requires API key” means in practice.

Bundle sizes

  • @waniwani/sdk/mcp core path: under 5 KB gzipped
  • @waniwani/sdk/chat (full widget bundle): ~650 KB (React included; tree-shakeable when you import individual layouts)
  • @waniwani/sdk client + tracking: ~10 KB gzipped

Peer dependencies

  • @modelcontextprotocol/sdk (required for server entry points)
  • zod (required for flow state schemas)
  • react (only required when using @waniwani/sdk/chat or @waniwani/sdk/mcp/react)