<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: John Wozniak</title>
    <description>The latest articles on DEV Community by John Wozniak (@contractorwebsiteshq).</description>
    <link>https://dev.to/contractorwebsiteshq</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4246293%2F046ba230-cda5-4c0d-a072-ada0deac7f4a.png</url>
      <title>DEV Community: John Wozniak</title>
      <link>https://dev.to/contractorwebsiteshq</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/contractorwebsiteshq"/>
    <language>en</language>
    <item>
      <title>Building browser-only calculators and invoice templates for contractors with Astro</title>
      <dc:creator>John Wozniak</dc:creator>
      <pubDate>Mon, 16 Nov 2026 09:39:20 +0000</pubDate>
      <link>https://dev.to/contractorwebsiteshq/building-browser-only-calculators-and-invoice-templates-for-contractors-with-astro-326g</link>
      <guid>https://dev.to/contractorwebsiteshq/building-browser-only-calculators-and-invoice-templates-for-contractors-with-astro-326g</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;A few decisions shaped how they were built.&lt;/p&gt;

&lt;h2&gt;
  
  
  Everything runs in the browser
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  No signup
&lt;/h2&gt;

&lt;p&gt;Every tool works the moment the page loads. A signup wall in front of a concrete calculator is a good way to make someone close the tab and use the next result in Google.&lt;/p&gt;

&lt;h2&gt;
  
  
  Astro for the pages
&lt;/h2&gt;

&lt;p&gt;The site is built with Astro and deployed on Vercel. Each tool is a static page with a small client-side island for the inputs and results, so the page itself is mostly HTML that loads quickly on a weak phone signal. The explanation, worked examples and FAQs sit in the same page as the calculator, which is what people searching for "roof pitch calculator" actually want to read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Show the working
&lt;/h2&gt;

&lt;p&gt;Contractors check numbers. Each calculator shows the formula it uses and the assumptions behind it, for example the bag yield used for concrete or the coverage rate used for paint, and says when to check with a supplier or an engineer instead. A calculator that hides its math is hard to trust when the result goes onto a quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep units and rounding honest
&lt;/h2&gt;

&lt;p&gt;US contractors work in feet, inches, cubic yards, square feet and US gallons. Material quantities round up, because nobody orders 7.3 bags, and the material calculators include a waste allowance.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;Writing the explanation first, then the calculator, made each one better. When the text has to explain every input, the inputs you do not need become obvious.&lt;/p&gt;

&lt;p&gt;The full set is listed on GitHub at &lt;a href="https://github.com/johnski9000/contractor-free-tools" rel="noopener noreferrer"&gt;johnski9000/contractor-free-tools&lt;/a&gt;, and the tools are at &lt;a href="https://contractorwebsiteshq.com/us/tools/" rel="noopener noreferrer"&gt;contractorwebsiteshq.com/us/tools&lt;/a&gt;. Feedback is welcome, especially from anyone who builds for the trades.&lt;/p&gt;

</description>
      <category>astro</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>smallbusiness</category>
    </item>
  </channel>
</rss>
