Home Digital Twin
A private Three.js and Cloudflare Workers 3D digital twin of our property pairing clickable storage inventory, Ghost-Shell X-Ray utility runs, maintenance logs, and a monocular iPhone SfM plus edge-chamfer reconstruction lab.
Stack: Three.js, TypeScript, Python, COLMAP SfM, Cloudflare Workers, D1 & R2
What it is
Note: Home Digital Twin is a private, household-only tool. For privacy, the demo video and screenshots on this page use a 100% synthetic fictional house and workshop layout rather than our actual property.
Home Digital Twin models an entire property in one metric Three.js coordinate frame and splits into two modes: Home Explorer for daily household use and Reconstruction Lab for measuring and tightening geometric accuracy against real phone captures.
- Spatial Hierarchy & Clickable Storage Inventory: Structures, rooms, and nestable Storage Spots (drawers, cabinet compartments, shelves, bins, and vehicle trunks) bind selectable 3D meshes directly to Cloudflare D1 records and R2 reference photos. You never 3D-model clutter: search any item name or tag to fly straight to the highlighted drawer. - Home Systems & Ghost-Shell X-Ray: Six infrastructure domains (Electrical, Water, Septic/Drainage, HVAC, Gas, and Network) anchor System Nodes (breaker panels, shutoff valves, filters, condensers) with operating notes and Maintenance Logs. Toggling X-Ray fades architectural walls into a translucent ghost shell so verified (solid) and estimated (dashed) 3D Utility Runs stay readable across underground, slab, wall, and attic elevations. - Camera-Anchored Reconstruction Pipeline: Instead of fragile Gaussian splats or eyeballed 3D boxes, slow 0.5x non-LiDAR iPhone walkthrough videos run through local COLMAP SfM, RANSAC gravity alignment, and metric architectural anchors. A deterministic Base Reconstruction compiles underneath a git-tracked Refinement Layer so manual fixes survive pipeline re-runs. - Edge-Chamfer Hill-Climbing & Confidence Map: To verify geometry against real photos despite lighting changes and counter clutter, the lab projects 3D structural edges onto a 2D Euclidean Distance Transform of Sobel photo edges and runs multi-scale coordinate pattern search on camera pose or parametric dimensions. A per-surface Confidence Map scores coverage and generates a ranked Capture Next walk-shot list for blind spots.
What problem it solves
Home maintenance knowledge and storage locations scatter across memory, paper manuals, and camera rolls: nobody remembers which bin holds a specific tool, where an underground conduit runs, or when a water filter was last changed. Pure photogrammetry scans look realistic but produce undifferentiated meshes you cannot search, edit, or query.
Pairing lightweight semantic Three.js geometry with a D1 inventory/systems database and camera-verified reconstruction keeps the viewer fast in any browser, easy to update when things move, and grounded in real measurements.
Current status
Private personal and family-only tool running on Cloudflare Workers, D1, and R2 with local Python/Node reconstruction scripts. All 3D scenes, rooms, items, and utility routes shown here are synthetic fictional demo data.