BUYER SETUP, ZATCA SPEC & ADSENSE MONETIZATION
Launch Your Own Free Invoice Generator Micro-SaaS in 5 Minutes
Everything runs 100% client-side in the browser—zero database, zero backend bills, and built-in AdSense placement + Saudi ZATCA Phase-1 QR compliance.
Get the Full BillCraft Next.js 15 Source Code
Includes full TypeScript source, ZATCA UTF-8 TLV engine + unit tests, static /out export, PDF Setup Manual, and 1-file white-label & AdSense config.
1. Quick Local Setup & Static Build
Requires Node.js 18+. Includes unit tests verifying UTF-8 Arabic ZATCA TLV encoding & tax math.
cd billcraft-invoice-studio
npm install
npm run test:engine # Verifies ZATCA UTF-8 TLV + VAT math
npm run build # Exports static production /out folder2. 1-File White-Label & AdSense Monetization
Customize brand name, default tax rate, currency, and Google AdSense slots in src/config/siteConfig.ts.
// src/config/siteConfig.ts
export const siteConfig = {
brandName: "YourInvoiceApp",
defaults: { locale: "en", theme: "light", currency: "SAR", taxRate: 15 },
monetization: {
enabled: true,
showPreviewPlaceholders: false,
adsenseClientId: "ca-pub-1234567890123456",
},
};3. Official Saudi ZATCA Phase-1 TLV QR Architecture
src/lib/zatcaTlv.ts encodes Tags 1–5 using strict UTF-8 byte lengths (TextEncoder) and Base64—compatible with official ZATCA Fatoora QR scanner apps for both English and Arabic seller names.
- Tag 1: Seller Business Name (UTF-8 exact byte length)
- Tag 2: Seller VAT Registration Number (15-digit KSA TRN)
- Tag 3: ISO 8601 Invoice Timestamp
- Tag 4: Grand Total including VAT (2 decimals)
- Tag 5: VAT Amount Total (2 decimals)
4. Free $0 Hosting Anywhere
Upload the pre-built /out directory directly to Cloudflare Pages, Vercel, Netlify, or shared cPanel public_html.
- Zero VPS, zero PHP, zero MySQL maintenance
- Client CRM & Invoice Vault persists safely in browser localStorage with 1-click JSON Backup & Excel UTF-8 BOM CSV export
- Native @media print A4 stylesheet produces razor-sharp vector Arabic & English PDFs directly from any browser