Better Zap

Plug WhatsApp into your TypeScript app

20261 min read

Better Zap is a TypeScript monorepo that publishes a WhatsApp integration suite built on Meta’s Graph API.

The packages

  • better-zap: framework-agnostic core with types, a template registry, the client, and the send service
  • @better-zap/react: React UI components
  • @better-zap/hono: a Hono adapter and webhook runtime
  • @better-zap/cli: a template generator
  • @better-zap/fixtures: webhook fixtures for tests

Versioning that follows Meta

Package versions track the Meta Graph API line: Graph API v25.0 maps to 25.0.x, and the last number is the package patch. Every merge to main with a pending changeset publishes a preview under npm’s next tag.

In production

Better Zap powers the WhatsApp confirmations and reminders in Cuide-se Mais, the software that runs attendance at free health events in the Federal District.

Built with

  • TypeScript
  • Hono
  • React
  • Changesets
  • pnpm
Next projectCuide-se Mais