If you only send 5 to 20 client invoices a month, paying $16–$35/mo to FreshBooks, Wave Pro, or QuickBooks just to generate a PDF and track who paid feels ridiculous.
BillZero packs the whole workflow into a single Go binary: a local SQLite WAL ledger (stored in integer cents so rounding never drifts), a pure-Go PDF 1.4 writer that renders an invoice in ~1.5 ms without headless Chrome or LaTeX, optional direct Stripe Payment Links, and a clean local web UI.
When Wave moved basic features behind a monthly plan and FreshBooks capped active clients on its starter tier, I realized all I actually needed was a client list, clean printable PDFs, a Stripe payment link button, and a CSV I could hand to my accountant at tax time. Keeping everything inside a single billzero.db file on my own machine solved it permanently.
| Capability | BillZero (v1.0.0) |
FreshBooks Lite | Wave Pro | QuickBooks Simple Start | Harvest |
|---|---|---|---|---|---|
| Monthly Price | $0 / mo | $19 / mo (5 clients max) | $16 / mo | $35 / mo | $11 / seat / mo |
| Client & Invoice Caps | Unlimited | 5 billable clients | Unlimited | Unlimited | Unlimited |
| Invoicing Platform Fee | $0.00 (0%) | Stripe/WePay + upsell | 2.9% + $0.60 + Pro fee | 2.99%+ Intuit Payments | Stripe/PayPal |
| Offline-First Local Storage | Yes (SQLite WAL) | No (Cloud only) | No (Cloud only) | No (Cloud only) | No (Cloud only) |
| Native PDF Generation | Pure-Go PDF 1.4 (~2ms) | Cloud server render | Cloud server render | Cloud server render | Cloud server render |
| Money Arithmetic | Exact int64 cents |
Opaque SaaS | Opaque SaaS | Opaque SaaS | Opaque SaaS |
| Accountant CSV Export | OWASP Formula-Safe | Paid tier | Paid tier | Paid tier | Paid tier |
| Single-Binary Deploy | Yes (Win / Linux / macOS) | No | No | No | No |
Download the pre-compiled static binary for your platform from GitHub Releases — zero runtime dependencies, zero Docker required, zero external PDF engines.
# Optional: initialize with realistic sample clients & invoices to explore immediately
./billzero serve --demo
# Or start clean with your own ledger
./billzero serve --addr 127.0.0.1:8080 --db ./billzero.dbOpen http://127.0.0.1:8080 in your browser. BillZero serves an embedded light/dark Apple-minimalist Invoicing Studio directly from the binary with zero CDN requests.
# Initialize local SQLite WAL database and business header
billzero init \
--company "Northstar Engineering LLC" \
--email "billing@northstar.local" \
--address "548 Market St, San Francisco, CA" \
--tax-id "US-94-1234567" \
--currency USD
# Add a client
billzero new-client \
--name "Clara Vance" \
--email "ap@acmerobotics.example" \
--company "Acme Robotics Inc." \
--currency USD
# Create an invoice using exact integer-cent math (supports fractional quantities)
billzero new-invoice \
--client 1 \
--item "Distributed Systems Architecture:20:180.00" \
--item "SQLite WAL Performance Audit:2.5:180.00" \
--tax 8.25 \
--discount 100.00 \
--notes "Net-30 payment terms."
# Generate a live Stripe Payment Link (or offline checkout preview URL if no key set)
billzero paylink INV-2026-0001
# Render a crisp US Letter PDF 1.4 file in ~2ms (with clickable payment URL)
billzero pdf INV-2026-0001 --out INV-2026-0001.pdf
# Mark paid, view KPIs, and export OWASP formula-neutralized CSV for your accountant
billzero mark-paid INV-2026-0001
billzero stats
billzero export-csv --out tax-year-ledger.csvBillZero supports two zero-lock-in payment modes:
-
Offline Test-Mode Simulator (Default — Zero Cloud Required): When
STRIPE_API_KEYis unset,billzero paylink <id>(and the Web Studio Pay Link button) generates a deterministic HMAC-SHA256 signed local checkout URL:http://127.0.0.1:8080/pay/sim_<24-hex-signature>Opening that link renders a clean client checkout preview page showing the itemized invoice,
$0.00 BillZero platform fee, a PDF download button, and an interactive Simulate Client Payment (Mark Paid) button so you can test the entire invoicing-to-settlement lifecycle 100% offline. -
Direct Stripe REST API Mode (Live Payments — $0 BillZero Markup): Export your Stripe API key and BillZero automatically calls Stripe's official REST API (
POST /v1/pricesfollowed byPOST /v1/payment_linksusingapplication/x-www-form-urlencodedand deterministicIdempotency-Key: billzero-inv-<number>):export STRIPE_API_KEY="your_stripe_api_key" billzero serve
Funds settle directly to your Stripe account. BillZero never proxies traffic, stores card data, or charges a platform percentage.
Most open-source invoicing tools bundle 300MB+ headless Chromium images, fragile wkhtmltopdf wrappers, or LaTeX toolchains. BillZero writes raw, spec-compliant PDF 1.4 (%PDF-1.4) bytes directly from pure Go (internal/pdf/generator.go):
- Exact byte-offset
xreftable andstartxrefverified byte-for-byte in automated unit tests - US Letter (
612 x 792 pt) minimalist typography using Type-1Helvetica+Couriermonospace - Automatic multi-line text wrapping and multi-page pagination with repeated table headers and
Page X of Yfooters - Clickable PDF URI Link Annotations (
/Subtype /Link /A << /S /URI ... >>) embedded directly over the Online Payment box - Renders single-page invoices in roughly 1 to 3 milliseconds with zero external binaries
billzero/
├── cmd/billzero/main.go # Single-binary entry point
├── internal/
│ ├── cli/ # CLI command parser & subcommands
│ ├── money/ # Overflow-safe int64 cents & milli-unit arithmetic
│ ├── pdf/ # Zero-dependency pure-Go PDF 1.4 generator
│ ├── plugins/ # Strict schema validator & plugin registry
│ ├── store/ # Pure-Go modernc.org/sqlite WAL store + OWASP CSV export
│ ├── stripe/ # Stripe REST Payment Links + HMAC offline simulator
│ └── web/ # REST API + embedded Light/Dark Web Studio (embed.FS)
├── plugins/ # JSON Schema + 5 validated community plugins
├── scripts/validate-plugins.mjs # Standalone Node.js plugin manifest validator
├── assets/ # Minimalist vector banner & 15s animated workflow SVG
├── ci/ci.yml # Reference CI pipeline specification
├── Dockerfile # Multi-stage CGO_ENABLED=0 static container build
└── Makefile # Cross-compilation, test, and checksum targets
BillZero ships with 5 declarative, schema-validated offline plugins in plugins/:
| Plugin ID | Category | Purpose |
|---|---|---|
net30-late-fee-policy |
pricing |
Applies Net-30 payment terms, 5-day grace window, and 1.5% monthly late-fee disclosure. |
eu-vat-reverse-charge |
tax |
Detects cross-border EU B2B VAT Tax IDs, sets 0% tax, and appends Article 196 Directive 2006/112/EC footnote. |
recurring-retainer-template |
template |
1-click monthly engineering retainer line-item preset with Net-15 due dates. |
stripe-checkout-branding |
checkout |
Minimalist receipt footer and transparent $0.00 platform fee display on checkout pages. |
tax-year-csv-exporter |
export |
Fiscal-year CSV accounting column definitions with OWASP formula neutralization. |
Validate all plugin manifests using either the native binary or the standalone Node validator:
billzero validate-plugins --dir ./plugins
node scripts/validate-plugins.mjs- Zero Floating-Point Money: Every unit price, line total, subtotal, discount, tax rate (basis points), and grand total is stored and computed in exact
int64cents (math/bighalf-up rounding for multiplication/tax). Quantities useint64milli-units (2.5hours =2500). - OWASP CSV Formula Injection Defense: All exported CSV text fields starting with
=,+,-,@,\t, or\rare neutralized with a leading single quote so spreadsheet applications cannot execute injected formulas. - SQLite WAL Durability: Enforces
PRAGMA journal_mode=WAL,PRAGMA foreign_keys=ON, and atomic transactions across invoice numbering (next_seq) and line items. - Hardened Embedded HTTP Server: Sets strict
Content-Security-Policy,X-Content-Type-Options: nosniff,X-Frame-Options: DENY,Referrer-Policy: no-referrer, andhttp.MaxBytesReaderpayload limits.
Requires Go 1.24+ (zero C compiler required):
# Run full test suite (money math, PDF 1.4 xref integrity, SQLite WAL, Stripe API mock, Web API, CLI)
CGO_ENABLED=0 go test -v -count=1 ./...
# Build static single binary
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o billzero ./cmd/billzero
# Or build Windows, Linux, and macOS binaries + SHA256SUMS
make release-binariesContributions, bug reports, and new declarative plugins are welcome. See CONTRIBUTING.md for guidelines.
Released under the MIT License.