~26 KB core · Zero dependencies · MIT

Headless Catalog
+ WhatsApp Checkout

Build product catalogs with cart and checkout optimized for WhatsApp. No backend, no payment gateway, no complications.

Download whanda.min.js and whanda-plugins.min.js from dist/ — you're running in minutes.

How it works

From discovery to WhatsApp in 5 steps

1

Discover

Your customer finds your products through social media, ads, or word of mouth.

2

Browse

They explore your catalog — search, filter, see prices and stock in real time.

3

Cart

They add items, apply coupons, choose shipping and payment. All validated.

4

WhatsApp

You receive the complete order details — items, price, address — via WhatsApp.

5

Close

You confirm, arrange payment and delivery — manually, on your terms.

Features

Everything you need,
nothing you don't

Shopping Cart

Real-time stock validation, quantities, localStorage persistence with cache TTL.

Dynamic Pricing

Fixed shipping, per-item, or free above threshold. Multi-currency with auto-conversion.

Coupons

Fixed amount, percentage, expiration, usage limits, minimum order. Full control.

WhatsApp

Link generation, catalog sharing, thank-you page. Customizable templates.

Multi-Region

Tax and shipping by region. ITBIS in DR, IVA elsewhere. Automatic conversion.

Order Status

Pending, confirmed, shipped, delivered, cancelled. Complete order tracking.

Hook System

Customize any step of the flow. beforeAddToCart, afterCheckout, beforeWhatsAppSend.

Google Sheets

Load products directly from a spreadsheet. No backend, no database. Just a URL.

Security

String sanitization, JSON validation, rate limiting. XSS protection built-in.

Bundle size

Lightweight by design

~26 KB

whanda.min.js

Core (IIFE)

~4 KB

whanda-plugins.min.js

Plugins

~0.5 KB

whanda-extensions.min.js

Extensions

~8-10 KB

With gzip

Core compressed

Quick start

Up and running in 10 lines

// 1. Create instance
const w = new Whanda({ whatsappNumber: "1234567890" });

// 2. Load products
w.setProducts([
  { id: "1", name: "T-Shirt", price: 1200, stock: 25, category: "Clothing", image: "tshirt.jpg" }
]);

// 3. Add to cart
await w.addItem("1");

// 4. Customer info
w.setCustomerName("Juan");
w.setCustomerAddress("123 Main St");
w.setPaymentMethod("Cash");
w.setDeliveryMethod("Home Delivery");

// 5. Create order and send to WhatsApp
const order = await w.createOrder();
const link = await w.sendToWhatsApp(order);
window.open(link, "_blank");

Plugins

Power without the bloat

Just ~4 KB more. Enable only what you need.

Seasons

Date-based promotions. Christmas, Black Friday, special days. Automatic discounts.

Urgency & Scarcity

Low stock alerts, countdowns, badges. "Only 3 left!"

Bundles

Grouped products with discount. "Shirt + Pants combo" at 15% off.

Downsells

Cart abandonment offers. Recover sales with smart discounts.

CRO Data

Free shipping progress bar, recently viewed, social proof. Headless — you render the UI.

Google Sheets

Load products from a spreadsheet. No backend, no database. Just a URL.

No backend

Google Sheets as your database

Load products directly from a Google Sheet. The adapter converts CSV to Whanda products. Set your sheet to "Anyone with the link can view."

  • No server, no database, no configuration
  • Required columns: id, name, price, stock, category, image
  • Serverless proxy for production (Vercel, Netlify)
const w = new Whanda({
  whatsappNumber: "1234567890"
});

// Load from Google Sheets
await loadFromSheets(w, {
  sheetUrl: "https://docs.google.com/
    spreadsheets/d/SHEET_ID/
    edit?gid=0"
});

// Products ready
w.getProducts();
// → [{ id, name, price, ... }]

Vibecoding

Generate your store with AI

Copy this prompt and paste it into your favorite AI agent to generate a complete store in seconds.

Using whanda.min.js and whanda-plugins.min.js,
create a [TYPE] store in a single HTML file.

IMPORTANT:
- No npm. No import statements.
- Copy whanda.min.js and whanda-plugins.min.js
  to the same directory as the HTML.

Flow: Catalog → Cart → WhatsApp → Manual close

Requirements:
1. <script src="whanda.min.js">
2. new Whanda({ whatsappNumber: "NUM" })
3. w.setProducts([...])
4. await w.addItem(id)
5. w.setCustomerName() / setCustomerAddress()
6. const order = await w.createOrder()
7. window.open(await w.sendToWhatsApp(order))
8. Responsive design with Tailwind CSS

Start selling on WhatsApp today

Download Whanda, copy the files to your project, and you have a store running in minutes.