Menu

Building browser-only calculators and invoice templates for contractors with Astro
📰

Building browser-only calculators and invoice templates for contractors with Astro

DEV Community: astro·John Wozniak·3 days ago
#vWmPaeS0
#devtoastro#devto#dev#calculator#tools
Reading 0:00
15s threshold

I run Contractor Websites HQ, a small studio that builds websites for US contractors: plumbers, HVAC companies, roofers, electricians. Alongside the client work, the site has a set of free tools: a markup calculator, an hourly rate calculator, roof pitch and concrete calculators, and estimate, invoice and work order templates.

A few decisions shaped how they were built.

Everything runs in the browser

The tools are plain pages with a small script. Nothing is sent to a server. For the templates this matters: an estimate or invoice holds a customer's name, address and prices, and a contractor filling one in on a phone between jobs should not have to wonder where that data goes. The template pages keep the details in the browser and let you download a PDF or a CSV.

No signup

Every tool works the moment the page loads.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.