Software
Quoting Inspection Contracts from the Code Book
Build inspection agreements from equipment counts, code requirements, labor, visits, and three-year pricing.
- NFPA requirements modeled
- 84
- Automated tests
- 142
- Platforms
- Web and iOS
- Agreement term
- 3 years
- Status
- In progress
The situation
Fire protection companies often price yearly inspection contracts by hand: count each device, look up its NFPA tests and schedule, estimate technician hours, and plan visits. This web and iOS app starts with a site and its equipment counts, calculates the required work, labor, visits, and three-year price, then produces an agreement ready for the customer to sign.
The problem
Translate two code-driven inspection standards and company-specific pricing rules into a repeatable quoting workflow, without hiding how scope and costs are calculated.
The approach
Model equipment and inspection requirements as linked data, then keep pricing in plain TypeScript functions. A structured agreement editor updates costs as equipment changes; company, team, and quote defaults can be overridden at the appropriate level.
What was built
- Equipment catalog linked to 84 NFPA 72 fire-alarm and NFPA 25 sprinkler requirements, loaded with a custom CSV-to-SQL importer
- Company, team, and quote-level pricing defaults that can be overridden
- Agreement builder with spreadsheet-style tables, live pricing, and automatic standard sprinkler components
- Scope view comparing code requirements with the customer agreement
- Plain TypeScript pricing functions covered by 142 automated tests in GitHub Actions
- Supabase backend with Postgres, authentication, roles, row-level security, and multi-company support
- Customer agreement export to a signable PDF
- iOS app built from the same codebase with Capacitor
The result
The workflow turns equipment counts into a scoped, three-year agreement, supports review against code requirements, exports a signable PDF, and runs on web and iOS from one codebase.
Plates





Project details
- Built with
- React, TypeScript, Vite, Tailwind CSS, shadcn/ui, TanStack Query, Supabase, Postgres, Vitest, GitHub Actions, Capacitor, iOS, Vercel
- Topics
- Fire protection, Quoting, Mobile workflow, Data import
- Note
- Demo available on request. The live app is not linked because public sign-ups currently add accounts to a shared company. The repository is private.