template-builder

Free WhatsApp template builder for Metaexactly as they arrive

Embed template creation in your product, validate against Meta's
review rules, preview in React or Vue and create on Meta from your API.

$ npm i @talqui-oss/template-builder
Open Playground
fig. 01 — rendering[ json · renders as · whatsapp ]

01Embed template creation

02Validate against Meta's rules

03Preview in React or Vue

04Create on Meta from your API

01What it does

Everything a template needs,
in one free package

Let your users create WhatsApp templates in your product, catch what Meta would reject before they submit, show the exact message their customers will get, and create it from your backend.

order_shipped.json● valid
Order 4512 shipped
Hi Maria, your order 4512 left our warehouse today and arrives within 3 business days.
Track order

<TemplatePreview /> · edit the template in tab 01, the others follow

02In your product

Add WhatsApp templates
to your product, free

Template creation, preview and validation for your users, and the Meta integration for your backend. Free and MIT licensed. See the editor →

Order 4512 shippedHi Maria, your order left our warehouse today.09:41

01

Preview in your frontend

Drop <TemplatePreview> into your React or Vue app, next to the editor your users already have.

  • React and Vue componentsssr
  • Download as PNG, JPG or WEBP3x
  • Device language for labelsi18n
  • error BODY_TOO_LONG
  • error PARAM_AT_EDGE
  • warn VARIABLE_UNUSED

02

Validate in the browser and the API

Run the 73 checks Meta applies at review while users type, and again on your server before submitting.

  • Review linter73 rules
  • Category checkcopy code
  • Variable examplesrequired
$ curl -X POST \
  graph.facebook.com/v26.0/\
  $WABA_ID/message_templates

03

Create on Meta from your backend

Turn the template into the Cloud API request in your Node backend, or into the call your provider expects.

  • Meta Cloud APIverified
  • Talquiverified
  • Twilio Content APIbeta

03Templates

Free ready-made templates
for real conversations

Start from a template that already passes the rules, change the words and create it on your provider.

✳ Templateorder_shipped, approved by Meta
and sent to 12,480 customers.

◎ CustomerTracking it now, thanks!

04Integrations

Works everywhere
your templates go

Create the template on your WhatsApp Business Account.

import { toRequests, toCurl } from "@talqui-oss/template-builder";
import { meta } from "@talqui-oss/template-builder/adapters/meta";

const requests = toRequests(template, meta({ wabaId: "123" }));
console.log(toCurl(requests));

05With AI

Build templates
with any AI, free

Install the skill and your coding agent knows the schema, the review rules and the catalog. It works with Claude Code, Cursor, Codex and any agent that reads skills or llms.txt.

$ npx skills add talqui-oss/template-builder
agent session
  1. youCreate an abandoned cart template for Acme with a 10% coupon.
  2. agentReading skill template-builder…
  3. agentWrote abandoned_cart.json · MARKETING · en_US
  4. ›validate(template) → 0 errors, 0 warnings
  5. ›toCurl(toRequests(template, meta())) → 1 request
  6. agentReady to create on Meta. Want me to run it?

06Open source

Free and open source. Ship thousands of templates with confidence.

template-builder is maintained by Talqui, the multichannel inbox that creates and sends WhatsApp templates for its customers every day.

Star on GitHub
01

Nothing leaves your app. No API key, no network call. The package only builds requests; you send them.

02

One typed schema. A JSON Schema and TypeScript types for every field WhatsApp accepts.

03

MIT licensed. Use it in closed products, fork it, write adapters for anyone.

07FAQ

Questions,
answers

Why does this exist?

Talqui is a multichannel inbox, and our customers create and send WhatsApp templates every day. We kept paying for the same problems: previews that did not match the phone, templates rejected for rules nobody had written down, and a different API for each provider. Every team that sends WhatsApp at scale runs into the same wall, so we turned our solution into a free, open-source library the whole market can use.

What is template-builder?

An open-source SDK to preview, validate and create WhatsApp message templates. You describe the template as JSON and get a pixel-true preview, the review rules WhatsApp applies and the request for your provider.

Does it send messages?

No. It builds the request that creates a template and leaves the sending to you or your provider. Your tokens never pass through the package.

How close is the preview to a real phone?

It was calibrated against screenshots of an iPhone: line breaks match and positions are within half a point. Android is next.

Which providers are supported?

Meta Cloud API and Talqui are verified end to end. Twilio is available and still being verified. Any other provider takes one adapter.

Can I upload media for the header?

The preview takes a public URL. Uploading the sample file is a step of your provider, so the adapters leave a placeholder for its handle.

Is it free?

Yes. It is MIT licensed, with no account and no usage limits.

Preview your first
template. Free, today

Free and open source.
No account required.

$ npm i @talqui-oss/template-builder
Open Playground
You left something behind
Hi Maria, the Linen shirt is still in your cart. Finish your order today and take 10% off.
Copy offer code
Back to cart