Larzscript Flagship Projects

LarzGig — Multi-Milestone Freelance Contracts, Built in Larzscript

A client's full budget escrows the moment a contract is created, split across named milestones. Each releases to the freelancer on approval — but a disputed milestone isn't all-or-nothing: an arbiter can split it any way they choose, and a real require refuses the split outright if the rounded halves don't add back up to the locked amount.

What LarzGig actually does

A client creates a contract with named milestones and amounts; the full budget escrows immediately, not milestone by milestone. A freelancer submits work, the client approves it and it's paid in full on the spot — or disputes it, sending it to an arbiter who resolves it with any split percentage they decide. Every resolution is checked by a real require that the freelancer's share and the client's refund reconcile exactly to what was locked for that milestone.

Every line below is the real output of sh examples/demo.sh against the actual interpreter — re-run fresh for this page, not copied from documentation.

larzscript bin/larzgig.lz create cara sam "Landing page" Wireframes 100 Build 300
larzscript bin/larzgig.lz approve e05ea14f 0
larzscript bin/larzgig.lz dispute e05ea14f 1 "build doesn't match the wireframes"
Output
created e05ea14f  "Landing page"  2 milestone(s)
milestone 0 approved and paid
sam: $100
milestone 1 marked disputed

sam's wireframes get approved and paid out instantly — $100, no delay. The $300 build, cara isn't happy with, and disputes it instead.

larzscript bin/larzgig.lz resolve e05ea14f 1 0.6 "partial credit"
larzscript bin/larzgig.lz resolve c273e65c 0 0.5 "50/50 split"
Output
resolved: freelancer gets $180, client refunded $120
error: dispute split does not reconcile to the milestone
amount - try a rounder percentage (line 168)

60% of $300 is a clean $180/$120 split — resolves fine. But a second contract's $10.01 milestone split 50/50 hits real floating-point rounding: $10.01 × 0.5 rounds to $5.01 on both sides, which is $10.02 — a cent more than was ever locked in escrow. require catches the mismatch and refuses outright. Nobody gets paid, and the full $10.01 is still sitting exactly where it was.

Why it matters

This is the seventh distinct shape require has taken across the series — not gating a single balance like LarzBank, not a cryptographic check like LarzVault, but a reconciliation check: do the independently-rounded pieces of a split genuinely sum back to the whole? Same keyword, same course error-handling lesson, yet another job.

View source on GitHubFlagship ProjectsLarzscript Course