Building zero-backend, browser-native engineering tools and auditable JavaScript geometry & calculation modules.
Most utility software ships a server it doesn't need. My work focuses on pushing deterministic calculations, vector CAD path generation, photometric & residential code layouts, and batch file/image pipelines directly into the client runtime using vanilla ES modules, WebAssembly/Canvas2D, SVG path math, and streaming browser APIs—with zero server uploads and zero account friction.
- Engineering Hub & Spec Index: https://kaiyilu.github.io/
Small, dependency-free reference libraries and interactive field guides documenting the exact math behind production tools:
- building-layout-math · Field Guide
IES lumen-method ceiling grids, 2D rotated physical fixture RCP collision math (overhead garage-door track bay caps + ceiling fan strobe radial push withbaseGrid&fanShiftedschedules),1/4"=1'-0"(1:48) &ISO 1:50CAD scale viewports, IRC R312.1.3< 4"baluster centering, carpenter1/16"tape rounding, and retaining wall math. - stained-glass-svg-math · Field Guide
Planar half-edge polygon partitioning, shared interior seam deduplication, inward mitered kerf offsets for copper foil and lead came, and cut-ready SVG serialization. - ecommerce-image-specs · Field Guide
Marketplace image requirement specs, Canvas2D pure-white (RGB 255,255,255) background boundary scanning, and Amazon 85% product frame-fill calculation. - canvas-story-deck-kit · Field Guide
crypto.getRandomValuesFisher-Yates deck shuffling, card spread layout coordinates, and high-DPI1080×1920HTML5 Canvas2D card rendering. - grid-and-fretwork-math · Field Guide
31-bit bitmask Nonogram line deduction, mid-game partial-state continuation & cell-by-cell lookahead contradiction proofs, 4-connected Marching Squares (99.2%IoU), half-pixel(2W+1)×(2H+1)EDT wire-gauge (#65–#44) pinhole sealing,40 px/in(304.80 mm) cut-to-cut calibration, 2D BFS stencil island auto-bridging, and zero-dependency/ToUnicode+ 1:1 tiled vector PDF math. - dxf-laser-quote-math · Field Guide
Autodesk DXF group-code42LWPOLYLINEbulge arc integration,1/64Arbitrary Axis (210/220/230OCS → WCS) transforms,2-core contour pierce counting, and cent-exact laser job-shop quoting.
| Project | Domain | Key Capabilities & Sub-Tools |
|---|---|---|
| Lighting Layout Calculator | Photometrics & IES Grids | IES lumen-method & 128-point inverse-square task-zone illuminance, 2D rotated linear fixture & overhead garage-door track collision audit, ceiling fan strobe avoidance (base + shifted schedules), and 1/4"=1'-0" & 1:50 bilingual CAD SVG/PDF exports across Recessed, Garage, High Bay, Shop Light, and LED layouts |
| Baluster Spacing Calculator | IRC Framing & Layout | 2024 IRC R312.1.3 < 4" sphere & R507.5 framing layouts with zero-drift 1/16" hook-tape marks across Spindles, Pickets, Deck Posts, Deck Footings, and Fence Posts |
| Retaining Wall Block Calculator | Structural Masonry & Earthwork | IRC R404.4 & NCMA base course embedment, geogrid tieback, and BOM schedules across Drainage Gravel, Timber Walls, Cinder Block Walls, and CMU Grout Fill |
| Laser Cutting Cost Calculator | Sheet-Metal DXF & SVG Quoting | Browser-local 2D DXF/SVG bulge-arc cut length, 2-core pierce counting, open-loop blueprint checks, and Batch White-Label PDF/CSV Quotes |
| Stained Glass Pattern Generator | Computational Craft & SVG CAD | Planar half-edge shared-seam & kerf-compensated templates across Photo-to-Pattern, SVG CAD, Suncatchers, and Glass Costing |
| Scroll Saw Pattern Generator | Woodworking Fretwork & Stencil CAD | 99.2% IoU Marching Squares 1:1 US Letter & A4 tiled vector PDFs, Floating-Island Export Guard + Intarsia override, 304.80 mm zero-padding flat-bottom welded CJK/Latin Name Plaques with open-top descender relief coves & half-pixel EDT (#65–#44) pinhole sealing, Photo Stencils, Wood Burning, and Blade Sizing |
| NonogramGrid | Deterministic Logic Puzzle Engine | Unique-solution guard at Photo Generator (Clean Silhouette, Sharp Contours & Portrait Dither), mid-game partial-board Step Solver (5x5–20x20, bulk clue paste & cell-by-cell lookahead contradiction proofs), 30-puzzle progressive Mix 5->20 bilingual /ToUnicode vector PDF booklets at Printable PDFs (Letter/A4 + separate answer keys), and Daily Nonogram |
| QuickKit | Client-Side Ecommerce Pipelines | In-memory Excel URL Downloader, SKU Image Renamer, Shopify Size Guide & Bulk Resizer, Amazon & Etsy checkers |
| VibeKit | Canvas2D & Interactive Decks | Zero-account spreads including Yes/No Tarot, Situationship Spread, Love, Thinking About Me, Career, and Daily Vibe Card |
- 4-Connected Marching Squares, Half-Pixel EDT Drill Clearance & 2D Ceiling CAD Collision Math in TypeScript
- Zero-Dependency Bilingual Vector PDFs (/ToUnicode + 4x Scanlines) & Nonogram Contradiction Proofs in TypeScript
- Solving Carpenter 1/16" Tape Rounding and IES Lighting Grids in Vanilla JS
- Batch-Downloading Excel Image URLs & Calculating Amazon 85% Product Fill in Pure Browser JS
- Generating Cut-Ready Stained Glass SVGs in Pure Browser JS: Shared Half-Edges & Copper Foil Kerf
- Frustum Concrete Pier Math, High-Bay Beam Cones & Running-Bond CMU Deductions in Vanilla TypeScript
- Bitmask Nonogram Line Solvers & 2D BFS Stencil Island Bridging in Pure TypeScript
- Exact 2D DXF Bulge Arcs, AutoCAD OCS Transforms & 2-Core Laser Pierce Counting in TypeScript