A lightweight, client-side calculator engine built to help homeowners estimate crawl space encapsulation, repair, and drainage costs before talking to contractors.
This repository contains the math models, logic, and UI components used on crawlplan.com.
- Dynamic Cost Engine: Calculates estimates based on square footage, linear footage, foundation type, and current moisture conditions.
- Scope Customization: Toggles for encapsulation (vapor barriers, dehumidifiers), structural repairs (joist sistering, pier replacement), and drainage systems (sump pumps, French drains).
- Line-Item Breakdown: Generates transparent, itemized material and labor cost distributions.
- Zero Tracker/Zero Backend: Runs entirely in the browser for fast, private calculations.
- HTML5 & Tailwind CSS (UI)
- Vanilla JavaScript (Calculation Engine)
- Vite (Build Tool)
Clone the repository and install dependencies:
git clone https://github.com/ludydev/crawlplan-calculator.git
cd crawlplan-calculator
npm installStart the development server:
npm run devBuild for production:
npm run buildThe estimation model uses average contractor labor rates and material costs updated quarterly. To tweak the default rate constants, modify the config file at src/config/rates.js.
MIT License. Feel free to use, fork, and adapt for your own construction or renovation projects.