Most small businesses where I work keep their customer lists in Excel files, often in Arabic, and do their follow-up over WhatsApp one message at a time. The tooling for this is surprisingly bad: CRMs want a subscription, a database, and an English-only UI before they let you send a single message.
I wanted a tool that does one thing well: import a customer list (Excel, CSV, or JSON), let you write a message template with variables like {Name}, and then walk you through sending each personalized message yourself, in Arabic or English, from your own WhatsApp account. No API keys, no database, no monthly fee.
This is how I built it, and where the interesting problems were.
Architecture
The stack is deliberately boring:
- React 19 + TypeScript + Vite for the UI, Tailwind for styling
- SheetJS (xlsx) to parse Excel files entirely in the browser
- Recharts for the campaign statistics dashboard
- A thin Express server that mostly serves the SPA and tracks one counter (more on that below)
The decision that shaped everything: no database. All state lives in localStorage, and the app has a workspace export/import that serializes the whole workspace (contacts, templates, stats) to a JSON file. Teams share that file over Google Drive or anywhere else and pick up where a colleague stopped. For this product's users, a login system and a hosted database would be pure cost and friction.
Sending works through official deep links. The app never talks to WhatsApp's API: it prepares the personalized message, opens a wa.me link with the text pre-filled, and the human presses send. That keeps the user's own WhatsApp account completely safe from automation bans, which was a hard requirement from day one.
Bilingual means more than a translation file
The app has full Arabic and English interfaces with proper RTL mirroring. The translation table is ordinary; the layout flip is one line applied at the root:
useEffect(() => { document.documentElement.dir = lang === 'ar' ? 'rtl' : 'ltr'; }, [lang]); Setting dir on the document root mirrors the whole flex layout automatically. The catch is mixed-direction content: an Arabic page still contains phone numbers and wa.me URLs that must stay LTR, so those elements get pinned with dir="ltr" individually.
The harder part was that bilingual isn't just the UI, it's the user's data. A Sudanese shop owner's spreadsheet has headers like اسم, رقم, and بريد, not name and phone. So column detection at import time checks both languages:
const headers = parseCsvLine(lines[0]).map(h => h.trim().toLowerCase()); const nameIdx = headers.findIndex(h => h.includes('name') || h.includes('اسم')); const phoneIdx = headers.findIndex(h => h.includes('phone') || h.includes('رقم') || h.includes('هاتف')); const emailIdx = headers.findIndex(h => h.includes('email') || h.includes('ايميل') || h.includes('بريد')); Every column that isn't a known field is still imported as custom data, and becomes usable as a template variable automatically.
Template variables in two languages
The same logic applies to message templates. {Name} and {الاسم} are equally valid, and any column from the imported file works as a variable too:
const getMessageContent = (contact: Contact | null) => { let msg = activeTemplate.content; if (!contact) return msg; msg = msg.replace(/\{Name\}/gi, contact.name).replace(/\{الاسم\}/g, contact.name); msg = msg.replace(/\{الايميل\}/g, contact.email || ''); msg = msg.replace(/\{الرقم\}/g, contact.phone || ''); // Any extra column from the user's file becomes a {variable} if (contact.customData) { Object.entries(contact.customData).forEach(([key, value]) => { const safeKey = key.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); msg = msg.replace(new RegExp(`\\{${safeKey}\\}`, 'gi'), value); }); } return msg; }; Two details worth noting: the custom keys are regex-escaped before being compiled (a header like السعر (ج.م) would otherwise produce an invalid pattern), and everything is case-insensitive because users type variables from memory.
Preparing the message: phone numbers are chaos
The most underrated problem in this kind of tool is phone number normalization. A real customer file contains numbers like 010 1234 5678, +20 101 234 5678, 00201012345678, and the occasional (010) 1234-5678. The wa.me scheme wants digits only in international format:
// Normalize a phone number for wa.me links: digits only, international format. const normalizePhoneForWhatsApp = (raw: string): string => { let digits = (raw || '').replace(/[^0-9]/g, ''); if (digits.startsWith('00')) digits = digits.slice(2); // 0020... -> 20... if (digits.startsWith('0') && CONFIG.DEFAULT_COUNTRY_CODE) { digits = CONFIG.DEFAULT_COUNTRY_CODE + digits.slice(1); // 010... -> 2010... } return digits; }; With that, sending is a deep link:
const handleWhatsApp = (contact: Contact) => { const msg = getMessageContent(contact); const phone = normalizePhoneForWhatsApp(contact.phone); window.open(`https://wa.me/${phone}?text=${encodeURIComponent(msg)}`, '_blank'); }; Focus Mode turns this into a queue: one contact full-screen, one button, next. The contact's status flips to contacted as you go, so a 500-person list becomes an afternoon of mechanical work instead of a spreadsheet nightmare.
The bug that taught me to never trust CSV
My importer originally split CSV lines on commas. Then a test file arrived with quoted cells ("Ali, Mohamed",010...) and every row shifted by a column. Real-world CSV (exported from Excel, Google Sheets, or a dozen shop systems) quotes cells that contain commas, and escapes quotes by doubling them. The fix is a small state machine that honors quoting:
// Split one CSV line into cells, honoring double-quoted cells (escaped "" // inside) so quoted exports and files with commas inside cells import cleanly. const parseCsvLine = (line: string): string[] => { const out: string[] = []; let cur = ''; let inQuotes = false; for (let i = 0; i < line.length; i++) { const ch = line[i]; if (inQuotes) { if (ch === '"') { if (line[i + 1] === '"') { cur += '"'; i++; } else inQuotes = false; } else cur += ch; } else if (ch === '"') inQuotes = true; else if (ch === ',') { out.push(cur); cur = ''; } else cur += ch; } out.push(cur); return out.map(v => v.trim()); }; I should have written this on day one. line.split(',') is a bug waiting for its first customer.
A demo gate without a licensing server
One last piece of the design: the app ships with a demo mode capped at 10 sent messages, after which it shows a license-request screen. The only reason the Express server exists is to keep a per-IP counter for that gate (/api/track-message returns 429 once the limit is hit) and to serve the production build. The seller's WhatsApp number and email for license requests are two lines in a CONFIG object. It gives the buyer of the source code a working try-before-you-buy funnel out of the box, with zero infrastructure.
Getting the source
I built SendFlow and I'm selling the complete source code (React 19, TypeScript, Express, everything described above) for $99 under a single-use license: one product or client project, modify it however you like, no redistribution. It's at sendflow.mysellauth.com. I'm the author, so feel free to ask anything in the comments, including about the RTL work or the no-database approach.