How rohitdvv/spark-homes-estimator works
Spark Homes is an offline-first, single-file PWA for property-acquisition agents. The agent walks a property, captures observations by voice or camera, builds a room-based repair estimate, evaluates deal economics, and hands off a report or workbook. README capabilities are represented using the documented index.html implementation; its source was not included in the excerpts, so internal call wiring is shown only where the README or sampled service-worker code supports it.
Main entry points: index.html Estimator App · sw.js Service Worker · manifest.json PWA Shell
Components 20
Field Inspection
- Estimator App
index.html - Voice Walkthrough
index.html - Photo Capture
index.html - Serial OCR
index.html - Scope Detection
index.html
Estimate & Analysis
- Room Estimate
index.html - Copilot Agents
index.html - Guidance Retrieval
index.html - Deal Analyzer
index.html
Handoff & Records
- Inspection Notes
index.html - History & Snapshots
index.html - QR & Link Sharing
index.html - Report & Workbook
index.html
Offline Platform
- Local Project Data
index.html - PWA Shell
manifest.json - Service Worker
sw.js
Other components
- Acquisition Agent
- On-device Models
- Browser APIs
- Client / Office
Connections 26
- Acquisition Agent → Estimator App: uses
- Estimator App → Voice Walkthrough: dispatches
- Estimator App → Photo Capture: dispatches
- Photo Capture → Serial OCR: reads serials
- Photo Capture → Scope Detection: requests suggestions
- Voice Walkthrough → Room Estimate: fills scope
- Scope Detection → Room Estimate: suggests items
- Estimator App → Room Estimate: edits scope
- Estimator App → Copilot Agents: dispatches
- Copilot Agents → Guidance Retrieval: queries guidance
- Estimator App → Deal Analyzer: opens analysis
- Deal Analyzer → Room Estimate: reads total
- Estimator App → Inspection Notes: records
- Estimator App → History & Snapshots: manages snapshots
- Estimator App → QR & Link Sharing: shares estimate
- Estimator App → Report & Workbook: exports
- Report & Workbook → Client / Office: delivers report
- QR & Link Sharing → Client / Office: transfers estimate
- Estimator App → Local Project Data: persists projects
- Estimator App → Browser APIs: uses speech and camera
- Voice Walkthrough → On-device Models: transcribes offline
- Scope Detection → On-device Models: classifies images
- Guidance Retrieval → On-device Models: embeds queries
- PWA Shell → Service Worker: registers offline shell
- Service Worker → Estimator App: caches app
- Service Worker → On-device Models: caches assets