Skip to content
← All projects
  • Automation & data

Built in

The WhatsApp connection drops on every restart

QR pairing, credentials kept on disk, and messages relayed to the agents.

The problem

The agents needed a WhatsApp connection that survives restarts and does not get the server’s IP banned.

What I built

A small TypeScript service on WhatsApp Web (Baileys, unofficial): QR pairing, credentials persisted per session, one SOCKS or HTTPS proxy for the service, and reconnection that stops on a real logout.

Technical details

  1. SOCKS or HTTPS proxy, set by one variable
  2. No infinite reconnect loop on a logged-out account
  3. 848 lines, single purpose

Stack

  • TypeScript strict
  • Node.js
  • Express
  • Baileys
  • Supabase

The result

One service serves two products with different databases, without duplicated code.

A similar project in mind?

Tell me about your business and when you need it. You get a proposal by email.

I want this system

More projects

Automation & data · LinkedIn outreachBy hand it is slow, automated it gets the account restrictedView the project
1 / 27 : By hand it is slow, automated it gets the account restricted