npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kruschdev/pascal-plugin-surfaces

v0.1.1

Published

Architectural surfaces, finishes, IECC insulation, and declarative job-material recipe plugin for Pascal Editor covering all 15 domains: drywall (GA-214 L0-L5), paint & sheens, insulation & air sealing, sheathing & WRB, siding, stone veneer, granite/marbl

Readme

Pascal Plugin Surfaces (@kruschdev/pascal-plugin-surfaces)

License: MIT Pascal Plugin API v1 Kernel 3D CAD Models Tests

An open-source, MIT-licensed Architectural Surfaces, Finishes, IECC Insulation, and Declarative Job-Material Recipe plugin for Pascal Editor.

I built @kruschdev/pascal-plugin-surfaces (pluginId: 'krusch:surfaces') on top of @kruschdev/pascal-mep-kernel by porting the deterministic estimating formulas, material catalogs, and building-code guardrails from Rough-In (boardwise, brushwise, climacore, floorwise, frameup, ridgeline, stoneset, tileset, and roughin). Every surface job automatically resolves exact material quantities, waste factors, fasteners, primers, sealers, flashing, labor hours, and IRC / GA-214 / IECC / TCNA / NWFA / NSI / SSPC / AWI / ASTM C635 code compliance directly from the live 3D scene with zero cloud dependencies and strict runtime boundary isolation across all 6 subpath exports.

[!NOTE] Verification Status: Verified with 81 / 81 deterministic tests (14,414 assertions across 13 suites), 5 / 5 entry boundary purity gates, 60 / 60 procedural binary .glb CAD models + 7 stepped multi-layer cutaway assemblies with 0 NaN vertices (plus 28 parametric SolidCraft B-rep relief swatches), 0 TypeScript errors, 0 hand-rolled boilerplate findings, live verification inside Pascal Editor on Aymeric House (258 evaluated jobs, 0 errors), and a clean Phase 4 re-audit (ZERO REMAINING BUGS).

Walkthrough Video & Visual Showcase (Recorded Live in Pascal Editor)

Live Pascal Editor Walkthrough: One-Click 15-Domain Surface Auto-Populate on Aymeric House with HardiePlank Lap Siding, Hollow Travertine Pool Coping & Glass Waterline Tile, Live Exterior Swap to Clay Brick Veneer ($200.6K -> $227.4K), Split-Screen Priced BOM, 7 Stepped 3D Assembly Cutaways, and 28 SolidCraft B-Rep Relief Swatches

Watch Full 720p HD Narrated Walkthrough Video (v0.1.0 Release Asset, 2m 49s)

Live Pascal Editor: Aymeric House Auto-Populated with 1:1 Textured HardiePlank Siding, Punched Door & Window Cutouts, and Open Swimming Pool Framed by Bullnose Travertine Coping & Glass Mosaic Waterline Tile ($200,623.15 / 258 Jobs)

Live Pascal Editor Split-Screen: Instant Exterior Swap from HardiePlank to Clay Brick Veneer Recalculating Live Priced BOM to $227,352.50 (+$26,729) Beside the 3D House

Live Pascal Editor Split-Screen: Interactive 6-Layer Exterior Wall 3D Assembly Cutaway Rendered Beside the 3D House

7 Stepped Multi-Layer 3D Architectural Cutaway Assemblies: Exterior Wall, Stone Veneer Wall, TCNA Wet Shower, Floor Stack, Attic Roof Stack, ACT Ceiling Plenum, and Composite Deck Stack

60 Clean-Room MIT Procedural Architectural Surface CAD Models (.glb) Across All 15 Surface Domains

28 Watertight Parametric SolidCraft B-Rep Surface Relief Swatches Mapped 1:1 to Real Manufacturer SKUs

All 15 Covered Surface & Envelope Domains

| # | Domain | Supported Materials, Finishes & Variants | Auto-Computed Job Materials | |---|---|---|---| | 1 | Drywall & GA-214 Finishes (0-5) | 1/2" regular, mold-resistant green/purple board (IRC R702.3.7), 5/8" Type X fire-rated double-layer (IRC R302.6), 5/8" ceiling sag-resistant (24" OC), QuietRock soundproof, abuse-resistant; 6 textures (smooth, orange-peel, knockdown, skip-trowel, popcorn, level-5-skim) | 4x8 / 4x10 / 4x12 sheets, screws scaled by stud spacing (16" OC / 24" OC), paper/mesh joint tape, GA-214 finish-level-scaled joint compound (0.16 lbs/sqft @ L4), 8 ft corner bead, acoustic sealant | | 2 | Paint & Coatings | 10 types (interior latex, exterior acrylic, trim enamel, PVA/stain-block/masonry primers, 2-part epoxy, wood stain, elastomeric stucco, mineral limewash); 6 sheens (flat, matte, eggshell, satin, semi-gloss, high-gloss); 3 quality tiers | Primer gallons, sheen-calibrated topcoat gallons x coats, trim enamel, door paint, caulk, tape, drop cloths, nap-matched rollers, brushes, sandpaper | | 3 | Insulation & Air Sealing (IECC) | Fiberglass batts (R-13/R-19/R-21/R-30, 15" & 23" widths auto-matched to structural:assembly), Rockwool thermal & interior Safe'n'Sound acoustic batts, blown-in attic cellulose/fiberglass (R-38/R-49/R-60), closed/open-cell spray foam, continuous exterior XPS/Polyiso foam | Cavity batts/bundles, blown-in bags, eave rafter baffles, spray foam board-feet kits, sill sealer, window/door low-expansion foam, exterior electrical box gaskets, vapor barrier rot-trap audits | | 4 | Sheathing & WRB | OSB (7/16", 1/2", 5/8" roof, 23/32" T&G subfloor), CDX plywood, ZIP System integrated WRB & ZIP-R insulated sheathing, DensGlass exterior | 4x8 sheets, 8d ring-shank nails, subfloor adhesive & screws, roof H-clips, Tyvek HomeWrap rolls, seam tape, cap nails, window/door flashing tape | | 5 | Exterior Siding & Cladding | Fiber-cement lap (HardiePlank), vinyl lap, Western Red Cedar bevel lap, vertical board and batten, LP SmartSide engineered wood, 3-coat stucco, 24-ga standing seam metal wall, clay brick veneer | Boards/squares/panels/bricks + waste, starter strips, J-channel or exterior casing trim, corner posts, frieze board, Z-flashing, roof-to-wall kick-out flashing, siding nails, exterior caulk | | 6 | Stone Veneer & Masonry | Manufactured stone veneer (MSV), natural thin stone, full-bed stone, thin brick, modular clay brick, split-face architectural CMU | Stone flats + wall-height-scaled corners, 2-layer Grade D building paper (IRC R703.8.2), 2.5 lb self-furring metal lath + fasteners, Type S / polymer-modified mortar, base weep screed, penetrating sealer | | 7 | Granite, Marble & Stone Slabs | Polished/honed/leathered granite, Carrara/Calacatta/Emperador marble, engineered quartz, natural quartzite, soapstone, butcher block, architectural concrete, sintered porcelain | Net & gross slab sqft (15% waste, 20% marble book-match), raw slab yield (~55 sf/slab), CNC edge profiles (eased, bullnose, bevel, ogee, mitered-waterfall), cutouts, 2cm substrate plywood, concealed steel overhang corbels (>6" marble / >10" granite), food-safe sealer | | 8 | Flooring | Solid & engineered hardwood, 20-mil rigid-core LVP click-lock, laminate, carpet + 8 lb pad, natural stone floor, polished concrete, 2-part epoxy garage floor, cork, bamboo | Pattern-scaled boxes/sqyd (straight 1.0x, diagonal 1.5x, chevron 1.8x, herringbone 2.0x), underlayment/vapor barrier, cleats/adhesive, self-leveler, doorway transitions, baseboard & shoe molding | | 9 | Tiling, Waterproofing & Pool Surfaces | 9 tile materials (porcelain, ceramic, marble, granite, travertine, slate, glass mosaic, zellige, terrazzo) across 13 tile formats (12x12 through 24x24, planks, subway, hex, penny, mosaics), plus hollow swimming pool travertine coping, glass mosaic waterline tile, and quartz/pebble basin plaster (tiling:pool-surfaces) | Size-calibrated thinset mortar, sanded/unsanded/epoxy grout, cement backer board + screws (wood subfloor), wet-area waterproofing membrane (TCNA B412 / P601), pool plaster & coping stones, leveling spacers, Schluter metal edge trim, silicone, stone sealer | | 10 | Roofing | 3-tab, architectural, and designer asphalt shingles, 24-ga standing-seam & corrugated metal, clay/concrete tile, natural slate, 60-mil TPO/EPDM flat membranes, cedar shake | 7-type canonical pitched roof area, squares & bundles, synthetic/felt underlayment, Zone 5+ ice & water shield, drip edge, ridge/hip cap, balanced IRC R806 ridge vent (horizontal ridges only), step/valley flashing, plumbing pipe boots, coil nails | | 11 | Wall Paneling & Wallcoverings | Primed MDF & knotty pine shiplap, beadboard wainscoting, felt-backed acoustic oak wood slat panels, 0.090" sanitary FRP fiberglass panels, Type II commercial vinyl & natural grasscloth wallpaper | Panel packs/sheets/rolls + pattern/cut waste, 18-ga brad nails, FRP trowel adhesive & PVC divider/corner moldings, wallcovering primer & paste, cap trim | | 12 | Specialty Plasters & Microcement | Hand-troweled Venetian lime plaster, waterproof Moroccan hydraulic-lime Tadelakt, 2-part seamless microcement, mineral Roman clay, 2-coat gypsum veneer plaster | Quartz-grit bonding primer, alkali-resistant fiberglass mesh, base & finish plaster/microcement coats, 2K matte polyurethane / olive-soap waterproof sealers | | 13 | Architectural Ceilings | 2x2 & 2x4 mineral-fiber ACT suspended drop ceilings (NRC 0.55-0.70), 1x6 T&G Western Red Cedar & knotty pine wood plank ceilings, 2x2 embossed pressed-tin steel tiles, exposed-deck dryfall spray | Acoustic tiles, 15/16" T-bar main runners & cross tees (ASTM C635), perimeter wall angle, 12-ga hanger wire, wood planks/tin tiles, crown/cornice molding, dryfall coating | | 14 | Decking, Patio & Soffit/Fascia | Capped composite grooved decking (Trex-class), pressure-treated pine, cedar & Brazilian Ipe decking, 2cm exterior porcelain & concrete patio pavers, 60-mil walkable PVC deck membrane, vented vinyl/aluminum/HardieSoffit & fascia | Deck boards/pavers + waste, stainless hidden clips / 316 screws, butyl joist flashing tape, polymeric joint sand, continuous vented eave soffit (IRC R806.2), 6" fascia wrap & F/J-channel | | 15 | Interior Trim & Molding | Builder colonial, Craftsman square, modern minimal, and luxury crown/wainscot interior trim packages | 5-1/4" baseboard, 3-1/2" door/window casing, 5-1/4" crown molding, 3" chair rail & picture-frame trim, 16-ga finish nails, wood filler, urethane trim enamel |

Declarative Job-Driven Material Recipe Engine

Every surface job defines its required materials declaratively through SurfaceJobRecipe:

  1. Material SKU Catalog (src/surfaces/catalog.ts): 236 purchasable SKUs across 44 built-in recipes with coverage rates, packaging units, unit material prices, labor production rates, and PBR render metadata.
  2. Parametric MaterialRule Drivers: Each rule maps a SKU to a geometric driver (net-area-sqft, pitched-roof-sqft, perimeter-lf, opening-count, opening-perimeter-lf, corner-count, edge-lf, cutout-count, eave-lf, rake-lf, ridge-lf, ridge-hip-lf, valley-lf, wall-flashing-lf, eave-bay-count, exterior-box-count, overhang-edge-lf, parent-rule-qty, fixed) with conditional predicates (when) and waste/layer/pattern modifiers.
  3. Custom Recipes & Per-Node Overrides: Attach a recipeOverride on any surface node to swap SKUs, adjust coverage or waste, disable optional items, or append extra materials. Author new recipes live in the Job Material Recipes tab (with the interactive Live Recipe Sandbox) or via the surfaces_define_recipe MCP tool, and bind them with customRecipeId on any wall, floor, roof, or countertop node.

Cross-Trade Coordination (5-Plugin Ecosystem)

  • Structural (@kruschdev/pascal-plugin-structural): Reads structural:assembly (studSpacingIn, studSize) to auto-match 15" vs 23" insulation batts, enforce 5/8" sag-resistant ceiling drywall on 24" OC framing (IRC Table R702.3.5), and verify IECC wall R-values.
  • Plumbing (@kruschdev/pascal-plugin-plumbing): Counts plumbing:pipe-run DWV vent stacks across the building to size and audit total roof pipe boot flashings (IRC R903.2).
  • HVAC (@kruschdev/pascal-plugin-hvac): @kruschdev/pascal-plugin-surfaces is the authoritative owner of whole-building IECC insulation & vapor control, while pascal-plugin-hvac defaults includeInsulation: false so combined BOMs never double-count insulation.
  • Electrical (@kruschdev/pascal-plugin-electrical): Reads exterior wall electrical:device boxes to include foam air-sealing box gaskets in the thermal envelope takeoff.

3D CAD Catalog, Punched Openings & Cutaway Viewer

  • Punched 3D Wall Openings & Trim Geometry: Door and window cutouts are punched directly through drywall, paint, sheathing, siding, paneling, plaster, and stone veneer 3D skins using disjoint clockwise Three.js Shape holes (resolveDisjointWallHoles), exterior base drip edges / stone veneer weep screeds split automatically around doorways (computeBaseTrimSpans), and jobDomain: 'trim' generates dedicated baseboard, crown, chair rail, and opening casing geometry.
  • 7 Stepped Multi-Layer Cutaway Assemblies: Interactive WebGL cutaway viewer inside SurfacesScheduleView (exterior-wall, stone-veneer-wall, wet-shower-wall, floor-tile-stack, roof-attic-stack, act-ceiling-plenum, exterior-deck-stack) with dynamic horizontal/vertical camera framing, drag orbit, ResizeObserver, and full GPU disposal.
  • 60 Clean-Room MIT 3D CAD Models: Exportable to binary .glb via bun run export:cad into assets/cad/*.glb (plus 28 watertight parametric SolidCraft B-rep swatches in assets/cad/brep/).

| Category | Count | Included Highlights | |---|---|---| | Drywall & Paint | 6 | 1/2" Regular w/ Punched Window Opening, Mold-Resistant Greenboard, 5/8" Type X Fire-Rated, Eggshell, Satin, High-Gloss Accent | | Sheathing & Insulation | 4 | 7/16" OSB, ZIP System Integrated WRB, 1/2" CDX Plywood, IECC R-21 + Continuous XPS Foam Cutaway | | Exterior Siding | 5 | HardiePlank Fiber-Cement Lap, Vinyl Lap, Cedar Bevel Lap, Board and Batten, 24-Ga Standing Seam Metal Wall | | Stone Veneer & Masonry | 4 | Manufactured Stone Veneer + Weep Screed, Natural Thin Stone, Clay Brick Veneer, Split-Face CMU | | Granite, Marble & Stone Slabs | 7 | Polished/Honed/Leathered Granite, Carrara Vanity, Calacatta Gold Mitered Waterfall Island, Dark Emperador Hearth, Quartz | | Flooring & Tiling | 9 | Solid Oak Hardwood, LVP, Carpet, Travertine, Epoxy Garage, 12x24 Porcelain, Carrara Marble Tile, Slate, Glass Mosaic | | Roofing | 5 | Architectural Asphalt Gable, 24-Ga Standing Seam Metal, Clay Tile Hip, Natural Slate Shed, 60-Mil TPO Flat | | Wall Paneling & Wallcoverings | 4 | Primed MDF Nickel-Gap Shiplap, Felt-Backed Acoustic Oak Wood Slat, 0.090" Sanitary FRP Wet Wall, Natural Grasscloth | | Specialty Plasters & Microcement | 3 | Venetian Lime Plaster, Waterproof Moroccan Tadelakt, 2-Part Seamless Architectural Microcement | | Architectural Ceilings | 3 | 2x2 Mineral-Fiber ACT Drop Grid, 1x6 Western Red Cedar T&G Plank, 2x2 Embossed Pressed-Tin Steel | | Exterior Decking & Hardscape | 3 | Capped Composite Grooved Decking, Brazilian Ipe Hardwood Decking, 2cm Exterior Porcelain Patio Paver | | Multi-Layer Cutaways | 7 | Exterior Wall, Stone Veneer Wall, Wet Shower Tile, Floor Stack, Roof & Attic Stack, ACT Ceiling Plenum, Exterior Deck Stack |

Installation & Subpath Exports

bun add @kruschdev/pascal-plugin-surfaces

| Subpath | Purpose | Runtime Constraints | |---|---|---| | @kruschdev/pascal-plugin-surfaces | Full Pascal Editor plugin, left-rail panel, 7-tab schedule/recipe/cutaway view, inspector card, chat cards | Browser + @pascal-app/editor | | @kruschdev/pascal-plugin-surfaces/render | Read-only 3D/2D node renderer manifest (surfacesRenderPlugin) | Zero @pascal-app/editor or next | | @kruschdev/pascal-plugin-surfaces/surfaces | Pure 15-domain recipe engine (44 recipes, 236 SKUs), Rough-In calculators, anatomy adapter, audit, schedule, and BOM + CSV | Zero React, Three.js, or @pascal-app/* | | @kruschdev/pascal-plugin-surfaces/cad | 60 procedural MIT Three.js CAD builders + 7 stepped cutaway models + fresh-per-build PBR pool | Zero React or @pascal-app/* | | @kruschdev/pascal-plugin-surfaces/agent-tools | 8 Zod tool declarations for Pascal AI Chat & MCP | Zero React, Three.js, or @pascal-app/editor | | @kruschdev/pascal-plugin-surfaces/agent-operations | Pure headless scene operations returning { result, changes } | Zero React, Three.js, or @pascal-app/editor |

Host Registration Example

import { extendPluginDiscovery } from '@pascal-app/core'
import {
  registerEditorHostPanel,
  registerEditorHostView,
  registerPluginChatExtension,
} from '@pascal-app/editor'
import {
  surfacesChatExtension,
  surfacesHostPanel,
  surfacesPlugin,
  surfacesScheduleView,
} from '@kruschdev/pascal-plugin-surfaces'

extendPluginDiscovery([surfacesPlugin])
registerEditorHostPanel(surfacesHostPanel)
registerEditorHostView(surfacesScheduleView)
registerPluginChatExtension(surfacesChatExtension)

Reference Documentation

Verification

bun install
bun run check       # tsc --noEmit && bun test src && bun run check:render && bun run build
bun run export:cad  # exports 60 binary .glb models into assets/cad/

Estimating and drafting aid, not stamped engineering. Always verify insulation R-values, vapor retarder classes, structural sheathing schedules, fire separations, and local AHJ amendments with a licensed design professional or building official before construction.

License

MIT. Created by Kevin Ruschman (@kruschdev).