sifenfisaha

Wappajs — AI skill for Claude Code

AI community

A TypeScript framework for building WhatsApp agents.

How to install Wappajs

This entry records only its repository, not the path inside it, so there is no exact command to give. Open sifenfisaha/wappajs and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Wappajs does

A TypeScript framework for building WhatsApp agents. Pluggable transports (Baileys, Cloud API, Twilio), a tool-calling agent core, and multi-provider LLM support.

Alternatives in AI

  • Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
  • Amux — Bidirectional LLM API adapter with IR pattern 117 ★
  • Langgraph Sales Agent — Multi-tenant LangGraph runtime that isolates each business's agent, catalog, tools and LLM across Telegram, In 65 ★

README

wappa

**The WhatsApp agent framework.**

[![npm](https://img.shields.io/npm/v/@wappajs/core)](https://www.npmjs.com/package/@wappajs/core) [![node](https://img.shields.io/node/v/@wappajs/core)](https://nodejs.org) [![license](https://img.shields.io/npm/l/@wappajs/core)](LICENSE)

`wappa` is a TypeScript framework for building WhatsApp agents: bots whose "brain" is an LLM with tool-calling and whose "body" is a pluggable WhatsApp transport. You define an agent (instructions + tools + provider), pick a transport (Baileys for personal-number/QR login, the official WhatsApp Cloud API, or Twilio's WhatsApp API), and run.

npm create wappa-agent my-bot

Features

  • Transport-agnostic core. @wappajs/core never imports a WhatsApp library; it speaks a normalized message model. Adapters translate.
  • Provider-agnostic agent loop. The core owns the tool-call loop and conversation memory. Providers (@wappajs/anthropic, @wappajs/openai) map one generate() call to their SDK, and @wappajs/openai works against any OpenAI-compatible server via baseURL.
  • Middleware-first extensibility. grammY/Telegraf-style use(ctx, next), plus command() and hears() routing. Auth, rate limiting, logging, transcription and handoff are all just middleware.
  • Typed tools with zod. defineTool infers argument types from a zod schema, validates model-supplied arguments, and turns failures into retryable tool results instead of crashes.
  • Sessions built in. Per-chat conversation history and durable data with in-memory and file-backed stores, and a lost-update-safe pause/resume flag for human handoff.
  • Prompt caching by construction. Put the half of the prompt that never changes in knowledge; @wappajs/anthropic caches it, so a long catalogue costs a tenth on every message after the first.
  • Today's models, handled. Adaptive-thinking models need their thinking blocks replayed inside a tool loop; the Anthropic provider