How I Built a Freelance Invoice, Proposal & Profit OS in One 96 KB Offline HTML File
Every freelance invoicing tool I tried wanted $20–$35/month forever just to generate PDFs, track whether clients actually paid, and estimate how much to set aside for taxes. Instead of another recurring subscription wit
Every freelance invoicing tool I tried wanted $20–$35/month forever just to generate PDFs, track whether clients actually paid, and estimate how much to set aside for taxes.
Instead of another recurring subscription with logins and cloud lock-in, I built SoloLedger: a complete freelance financial OS bundled into one standalone ~96 KB HTML file that runs completely offline in any browser.
👉 Try the Live Interactive Demo (zero signup)
👉 Main Page & Offline Download
Why a Single-File Local-First App?
-
Zero servers, zero maintenance, $0/month hosting. Double-click
SoloLedger.htmlfrom your Documents folder and it opens instantly on Mac, Windows, or Linux—even on a plane with no Wi-Fi. -
100% private financial data. Your client rates, invoices, and revenue stay in your browser's
localStoragerather than sitting on someone else's database. -
Instant portability. Everything exports cleanly to
.jsonbackups and.csvspreadsheets anytime.
4 Technical Tricks That Made It Feel Like a Native App
1. Clean PDF Export Without Heavy Libraries (@media print)
Bundling jspdf or Puppeteer adds megabytes and layout quirks. Instead, SoloLedger renders a dedicated #print-sheet container and uses @media print CSS:
#print-sheet { display: none; }
@media print {
@page { margin: 16mm; }
.app-shell, .modal-backdrop, .toast, .no-print { display: none !important; }
#print-sheet { display: block !important; }
}
When you click PDF on any invoice or proposal, it populates #print-sheet with clean A4/Letter typography and calls window.print()—so Chrome, Safari, Edge, and Firefox generate crisp vector PDFs natively.
2. Pure UMD Core Tested in Node.js Without a Browser
All financial calculations, overdue detection, proposal-to-invoice conversion, and CSV parsing live in a single dependency-free UMD module (core.js). That lets the exact same file run inside SoloLedger.html in the browser and run under Node's built-in assertions in test.js for rounding (Math.round((n + Number.EPSILON) * 100) / 100), tax reserves, and 6-month revenue/expense series.
3. Safe CSV Export + Round-Trip Import
Accountants love CSVs, but unescaped cells starting with =, +, -, or @ can trigger spreadsheet formula injection when opened in Excel. SoloLedger prefixes dangerous leading characters with ' on export and strips that single guard prefix back off cleanly on import—while handling quoted commas, "" escapes, and currency symbols like $1,250.50.
4. Inline SVG Cashflow Chart (0 Charting Libraries)
The 6-month Revenue vs. Expenses bar chart is a lightweight inline <svg> computed directly from the state metrics—keeping the entire bundled offline app under 100 KB with zero external CDN requests.
Try It Yourself
You can click around the pre-loaded sample studio (create an invoice, convert a proposal, run the stopwatch, or import/export CSVs) right here with zero signup:
🔗 https://sololedger-os.netlify.app/demo/
If you want the standalone offline SoloLedger.html copy to keep forever ($29 one-time, or $49 with the full modular source code & build scripts), you can grab it at https://sololedger-os.netlify.app/.
What's the #1 feature you actually need in a freelance tracker—and what SaaS bloat do you wish you could delete?
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.