Repository navigation
MIT Residential & Commercial NEC Electrical Plugin (@kruschdev/pascal-plugin-electrical): Bones Schematic Ingestion, Load Calcs, Panel Schedules, 3D Routing & 50 .glb Models #1320
kruschdev
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built a standalone, MIT-licensed Residential and Commercial NEC Electrical plugin for Pascal Editor (
@kruschdev/pascal-plugin-electrical) implementing Pascal's Plugin API v1 (E-014,E-016,E-017) with zero upstream core changes.Watch Full 720p HD Narrated Walkthrough Video (
demo-walkthrough.mp4)Why I built this alongside
pascalorg/plugin-bonespascalorg/plugin-bonesexplicitly notes in its electrical research doc that wire sizing, box fill, conduit, and load-based service calculations are out of scope for its layout-computable rough-in engine. I built this plugin to pick up right where Bones stops, and to ingest Bones' persisted scene nodes directly (src/nec/framing-interop.tsreadsbones:framing,bones:device, andbones:service, including user-dragged receptacles/GFCIs/switches,panel, back-to-backelectric-meter/power-entry,water-heater, andheat-pump, with zero hard dependency on@pascal-app/plugin-bones).You can run Bones X-Ray, drag outlets or services where you want them, and click Import & Wire Bones Schematic (
bonesMode: 'import-only') or Auto-Populate NEC Layout & Wiring (bonesMode: 'auto') to turn that exact rough-in into balanced 1-pole and 2-pole panel schedules, NEC Article 220 load calcs, 3D obstacle-aware routing, and contractor-priced BOMs.What it ships (
v0.2.4)14/3interconnected Smoke/CO alarms onto a single non-GFCI 15A AFCI pilot lighting circuit (IRC R314/R315,NFPA 72 A.29.9.4), and populate balanced 1P/2P circuits. Adding a new outlet later extends that room's run, auto-upsizes spliced anchor boxes perNEC 314.16, and checksNEC 210.19(A)voltage drop.NEC 334.23,334.15(C), and334.12(B)(4)), yields around higher-priority plumbing and HVAC obstacles, tracks cumulative bends against theNEC 358.26360-degree pull-point limit, and flagsNEC 110.26(E)dedicated electrical space violations above panels or transformers.Cover Off,Panel Cover On,Cover Closed) and schedules: Renders copper busbars, AFCI/GFCI breakers, neutral/ground bars, and 90-degree-bent phase conductors inside Pascal's split-pane view, paired with Odd/EvenL1/L2andA/B/C3-phase panelboard schedules, NEC Article 220 Residential Standard / Optional (220.82) / Commercial 3-phase load calcs, and a priced BOM calculator (labor, markup, tax, CSV)..glbCAD models: Covers residential load centers, 400A 277/480V 3-phase panelboards, transformers, VFDs, Type 2 SPDs, solar PV inverters (NEC 690), 13.5 kWh wall battery ESS (NEC 706), 200A ATS (NEC 702), smart dimmers, ceiling fans, cable tray, and grounding hardware..(full editor integration),./render(editor-free viewer manifest),./cad(Three.js-only builders),./nec(framework-free TypeScript),./agent-tools, and./agent-operations.Try it
Or clone and run the full deterministic check suite locally (
69/69tests,1,350assertions, strict typecheck, 5/5 boundary gates, and compiled ESM +.d.tsdist/build):What I would love feedback on
plugin-bonesor custom plumbing/HVAC runs), let me know where the Bones ingestion, stud-snapping, or obstacle routing hits edge cases../render,./cad,./nec,./agent-tools) or commercial 3-phase schedule conventions would be really helpful.All reactions