Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

matheusmongarde/zapflow

ProductivityBusiness tools

Self-hosted WhatsApp CRM with chat, Kanban pipeline, catalog, finance, calendar and AI agents for small businesses.

282
75
JavaScript
MIT
1 day old
+169 stars in 14h

What it is

ZapFlow OS is a self-hosted CRM built around WhatsApp. It combines inbox and contact records, a configurable Kanban sales funnel, an order and stock catalog, finance (payables, receivables, contracts, projects), a calendar with Google Calendar/Meet integration, campaign tracking with UTM attribution, and AI agents that can answer customer messages or help search CRM data.

The intended users are small businesses that want one local application instead of a monthly SaaS subscription. It is a Node.js/Express backend with a React 19 frontend, and data is stored in a local SQLite database under data/.

Quick start

Requirements: Node.js 20 or newer and npm. From a terminal:

git clone https://github.com/matheusmongarde/zapflow.git
cd zapflow
npm install
npm run build
npm start

Then open http://127.0.0.1:4180 and follow the onboarding. The server listens on HOST=0.0.0.0 and port 4180 by default; change them with environment variables, e.g. HOST=0.0.0.0 PORT=4180 npm start.

On first access, onboarding creates the admin account (public sign-up is disabled afterward), asks for a company profile that the WhatsApp agents follow, and opens connection settings for WhatsApp, AI (bring your own key) and Pix. You can skip connections and return via Configurações → Conexões.

For development, run npm start for the backend and npm run dev in a second terminal; Vite serves the UI at http://127.0.0.1:5175 and proxies /api and /mcp to port 4180.

Connecting WhatsApp and AI

WhatsApp can be paired in Configurações → Conexões either via QR code using Baileys or via the official Meta Cloud API. The Baileys route works like WhatsApp Web and stores the session in data/baileys-auth/; it is unofficial, and the README warns that bulk sending or aggressive automation can get a number blocked, so production use should rely on the official API. The official API path sends through graph.facebook.com/v21.0/{phone-number-id}/messages, exposes a webhook at /api/whatsapp/webhook, and verifies the hub.verify_token and X-Hub-Signature-256 over the raw body. The same webhook accepts payloads from Evolution, Z-API, UAZAPI and WAHA.

Auto-replies follow a fixed order: keyword rule, out-of-hours notice, welcome message, then the AI agent if no rule matched. The AI agent requires your own provider key (BYOK); default models are listed for Claude, OpenAI, Gemini, Grok and DeepSeek.

Google Calendar and Meet require your own Google Cloud OAuth client of type Web application. Register the redirect URI shown in the connection panel, for example http://127.0.0.1:4180/api/integrations/google-calendar/callback for the default local setup, then enter the Client ID and Secret and authorize the account. In Google's Testing mode the login expires every 7 days; publish the app to avoid that.

Constraints and data handling

The project does not supply credentials for WhatsApp, AI providers, ad platforms or Google; every external integration needs accounts and keys you configure yourself. The main database is data/crm.sqlite, and the data/ folder can also hold media, audits and a local encryption key. Back up data/ before updating or migrating, and never commit or share that folder, SQLite files, keys, tokens or WhatsApp sessions. Losing the local key can make previously encrypted secrets unreadable.

The MCP endpoint uses a token managed by ZapFlow and should be treated like a password. The software is MIT-licensed and uses is subject to its own terms of use. Tests exist as independent scripts under scripts/, not as a declared npm test command. No published figure for regression-test coverage was provided.

HotRepo's take

The repository was first observed by HotRepo on 2026-12-02 on the new-projects list, at 113 stars and 34 forks, with the same figures as its 14:48 UTC star sample. That is a single measurement on a young project rather than an established trend, so it says little about adoption or stability. The scope is unusually broad for one repository—inbox, catalog, finance, tracking and an AI query layer—and the README itself documents operational limits such as Baileys being unofficial and Google Testing-mode OAuth expiring weekly. The most practical dividing line for readers is therefore integration ownership: the system runs locally, but WhatsApp and AI behavior depends on your own accounts and keys.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. melgarafael/DeskcommCRMSelf-hosted WhatsApp sales CRM where AI agents qualify, follow up and hand off to humans.TypeScript4,994
  2. matheusmongarde/pega-ofertaSelf-hosted deal-group engine that collects offers, swaps in your affiliate tags, and posts to WhatsApp, Telegram, and a web storefront.TypeScript104
  3. lharries/whatsapp-mcpLets an LLM agent search, read, and send WhatsApp messages from your own account, locally.Go6,710
  4. macro-inc/macroA single all-in-one workspace for small teams replacing the Slack + Notion + Linear + Gmail + CRM stack with one @-linked system.Rust4,902
  5. twentyhq/twentyAn open-source CRM that lets technical teams model data, build apps, and version their workspace with code.TypeScript61,189