npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@waniwani/sdk

v0.14.6

Published

MCP distribution SDK. Build sales funnels, lead generation, booking, and quote apps on top of your MCP server. Event tracking, flows, widgets, knowledge base.

Downloads

15,475

Readme

@waniwani/sdk

The open-source TypeScript SDK for MCP funnels — multi-step conversational flows (sales, lead generation, booking, quotes) that run as a single MCP tool inside ChatGPT, Claude, Cursor, and any MCP-capable client.

npm version npm downloads last commit commit activity stars license follow @waniwani_ai

Docs · Website · Dashboard · CLI · Issues

One typed state graph compiles to one MCP tool. MIT, bring your own store, optional hosted Platform via one env var.

Forked from production MCPs we shipped for paying customers (insurance quoting, pet care, lead capture, booking), and open-sourced once the shape stabilized.

Install

bun add @waniwani/sdk @modelcontextprotocol/sdk zod

30-second example

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { createFlow, END, MemoryKvStore, START } from "@waniwani/sdk/mcp";
import { z } from "zod";

const flow = createFlow({
  id: "hello",
  title: "Hello World",
  description: "Say hello and ask a question.",
  state: { name: z.string().describe("Your name") },
})
  .addNode({
    id: "ask",
    run: ({ interrupt }) =>
      interrupt({ name: { question: "What's your name?" } }),
  })
  .addNode({
    id: "greet",
    run: ({ state }) => ({ greeted: true }),
  })
  .addEdge(START, "ask")
  .addEdge("ask", "greet")
  .addEdge("greet", END)
  .compile({ store: new MemoryKvStore() });

const server = new McpServer({ name: "hello-mcp", version: "1.0.0" });
await flow.register(server);
await server.connect(new StdioServerTransport());
bun run hello.ts

A complete MCP server with one flow-driven tool, runnable over stdio. Connect it to ChatGPT, Claude, or any MCP client.

What is an MCP funnel

A funnel is a multi-step conversation that drives a user or agent from intent to outcome: a qualified lead, a booking, a quote, a purchase. For twenty years funnels lived in web forms. They are moving into AI clients.

ChatGPT, Claude, and Cursor are the new browsers. MCP is the store. The funnel is a tool call.

LLMs cannot run funnels on their own. They paraphrase questions, skip fields, accept malformed input, and lose state between turns. A real funnel needs deterministic order, typed fields, validation, branching, and resumable state. createFlow makes the funnel deterministic on the server. The model just renders the next question.

The mapping from funnel to flow is direct:

| Funnel concept | Flow primitive | |---|---| | Step | Node | | Form field | Interrupt | | Transition | Edge | | Branching question | Conditional edge | | Lead data | Typed state (Zod) |

See Why MCP funnels for the full argument.

How it compares

  • vs the raw MCP SDK. You would serialize state through the model on every turn. createFlow persists state server-side under the session id; the model carries nothing between calls.
  • vs LangChain or LangGraph. General-purpose agent graphs. Waniwani is funnel-shaped: interrupts, re-ask on validation, auto-skip pre-filled fields, widget delegation, typed state via Zod. See vs LangGraph.
  • vs closed-source platform SDKs. MIT. The flow engine has zero runtime dependency on app.waniwani.ai. The hosted Platform is opt-in via a single env var.

Engine + optional Platform

The flow engine is MIT and runs without an API key against any get / set / delete store (Redis, Upstash, Cloudflare KV, DynamoDB, Postgres, in-memory).

Set WANIWANI_API_KEY to connect the Waniwani Platform:

  • Hosted, encrypted-at-rest flow state. No infra to run.
  • Event tracking and funnel analytics.
  • Knowledge base (markdown ingest plus semantic search).
  • Embeddable chat widget backend.

Same code, opt in by env var. withWaniwani(server) wraps any MCP server to add session bridging and auto-tracking; it is a no-op without a key, so it is safe to apply unconditionally. Pricing (including a free plan) lives at app.waniwani.ai.

What you can build

For a fuller starter project with chat widget, dev tunnel, and a sample funnel pre-wired:

git clone https://github.com/WaniWani-AI/mcp-distribution-template.git my-mcp-server

CLI

The companion @waniwani/cli wires a local repo to a Waniwani agent and runs your MCP server against the hosted playground in one command. Optional — the SDK works without it.

bun add -g @waniwani/cli
waniwani login     # browser-based OAuth2 PKCE
waniwani connect   # pick an org + agent, writes waniwani.config.ts
waniwani dev       # run local MCP, open playground bridged to localhost

See the CLI docs for the full command reference.

Documentation

Full docs at docs.waniwani.ai. Same source as ./docs/.

Links

Security

Found a vulnerability? Please report it privately — see SECURITY.md. Do not open a public issue for security reports.

License

MIT © Waniwani

"Waniwani" is a trademark of Waniwani Inc. The license covers the code, not the name.