BullAPI is an enterprise-grade B2B SaaS platform engineered for high-volume media buyers and automated sales teams. By leveraging the official Meta Cloud API (WABA), the system eliminates the "Shadowban" risk associated with traditional web-automation tools, providing a stable backbone for $10k+/day ad-spend operations.
-
Scalable Event-Driven Core: Optimized to handle 100k+ concurrent webhook events via a Redis-backed distributed queue.
-
Mission-Critical Reliability: Built to prevent lead leakage during high-traffic spikes (e.g., Black Friday) using an asynchronous worker architecture.
-
Privacy-First Architecture: Native AES-256 encryption for message-at-rest data and rigorous Multi-tenant isolation (Row-Level Security concept).
-
Crypto-Economy Ready: Integrated USDT/BTC payment rails for frictionless global B2B settlement.
The engine is designed around decoupling and resiliency:
-
Ingestion Layer: Fast-response Webhook listeners (NestJS) receive Meta events and immediately offload them to Redis. This ensures a <50ms response time to Meta, preventing webhook timeouts.
-
Concurrency Management: BullMQ workers process the ingestion queue with built-in retry logic and exponential backoff, ensuring zero data loss even if downstream services (PostgreSQL) are under load.
-
Real-Time Sync: A Socket.io gateway handles bi-directional state synchronization between the backend and the Next.js frontend, utilizing namespaces for secure tenant isolation.
-
Extensibility (Webhook-as-a-Service): A custom egress engine triggers outbound payloads to n8n or Zapier, allowing users to build complex, low-code automation on top of our API.
-
Official WABA Integration: 100% compliance with Meta TOS. Zero-risk of "QR Code" bans.
-
Dynamic Kanban CRM: High-performance drag-and-drop pipeline management for massive lead flows.
-
Granular ACL (Access Control): Plan-based feature gating and role-based permissions (Owner, Manager, Agent).
-
Automation Engine: Internal keyword-based routing + external webhook triggers for full-funnel automation.
-
Tenant Isolation: Strict logic-level enforcement of Workspace IDs across all queries.
-
Token-Based Auth: Secure JWT implementation with Passport.js and Bcrypt password hashing.
-
Data Integrity: Transactional updates via Prisma to ensure consistent state across lead pipelines.
-
Note: This repository is a private commercial product. For technical verification, please contact me for a private architecture review.
-
Peak Load Handling: Successfully stress-tested at 35,000 requests per minute.
-
Uptime: Achieved 99.9% reliability during pilot "Whale" campaigns.