BillCraft

May 16, 2026 · View on GitHub

Live Demo License: MIT

Free professional invoice generator. No signup, no backend, no subscription. Create invoices in 60 seconds and export PDF with one click.

Try it now: billcraft-demo.surge.sh


Features

  • 3 Invoice Templates — Modern, Classic, Minimal styles
  • One-Click PDF Export — No print dialog, direct download
  • 7 Currencies — USD, EUR, GBP, CNY, JPY, KRW, HKD with proper formatting
  • Logo Upload — Drag & drop your brand logo
  • Tax & Discount — Auto-calculated on every change
  • Bilingual — English + Chinese, switch anytime
  • 100% Offline — All data in localStorage, nothing leaves your device
  • Zero Dependencies — No React, no Node, no build step

Quick Start

# Just open index.html in a browser — that's it.

# Or use a local server for full PDF export support:
python -m http.server 8080
# Then open http://localhost:8080

Tech Stack

LayerTech
UITailwind CSS (CDN)
App LogicVanilla JS, single IIFE module
PDF Exporthtml2canvas + jsPDF
i18nCustom system with data-t attributes
PersistencelocalStorage (auto-save drafts)

The entire project is one HTML + one JS + one CSS file. Download and run anywhere — even offline.

Architecture

  • Single IIFE closure manages all state and logic
  • Hybrid state: DOM-driven (form fields) + JS-driven (template, items, logo)
  • App.update() -> renderPreview() -> saveDraft() on every keystroke
  • Inline CSS in template literals for html2canvas PDF compatibility
  • esc() sanitizes all user input against XSS

License

MIT — use it, fork it, share it.