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

brep-io-kernel

v1.0.24

Published

A feature-based modeling playground experimenting with BREP-style workflows on top of triangle meshes. It combines robust manifold CSG (via the [Manifold](https://github.com/elalish/manifold/) library) with a simple face and edge representation, a history

Readme

BREP

Source repo https://github.com/mmiscool/BREP

A feature-based modeling playground experimenting with BREP-style workflows on top of triangle meshes. It combines robust manifold CSG (via the Manifold library) with a simple face and edge representation, a history pipeline, and Three.js visualization. Import meshes (STL), repair and group them into faces, then perform boolean operations, fillets, chamfers, sweeps, lofts, and more.

This project is actively evolving; expect rough edges while APIs settle. Modeling Mode Sketch Mode PMI Mode Image to Face 2D Trace Image to Face 3D Result

Documentation Map

Dialog Screenshots

See Dialog Screenshots for the capture helpers, output locations, and configuration options.

Run Local Dev Environment

# clone repo and cd to the folder
pnpm install
pnpm dev

Produce Static build

# clone repo and cd to the folder
pnpm install
pnpm build

Generating a static build will create a dist folder containing a static build suitable for hosting on a CDN or just being copied to a web server.

Application Mode Guides

Modeling Features

Assembly Constraints

Assemblies can be constrained with the iterative solver described in Assembly Constraint Solver. Each constraint instance stores clear selections plus persistent solve data so runs resume quickly after edits. The constraint registry currently ships with:

  • Coincident – mates two datum points or implicit origins.
  • Distance – fixes an offset between reference points along a chosen axis or free space.
  • Angle – enforces a target angle between two axes or faces.
  • Parallel – locks component axes or normals into parallel alignment.
  • Touch Align – slides surfaces until they touch and optionally shares tangency.
  • Fixed – anchors a component so downstream constraints treat it as immobile.

Adding, removing, or editing any of these entries queues an automatic background solve, and the UI exposes constraint status plus debugging messages pulled from each persistentData record.

PMI annotations

PMI mode focuses on downstream manufacturing communication. Annotating the model augments the saved .brep history and the embedded 3MF metadata. The PMI tools mirror the dialog capture pages in docs/pmi-annotations:

  • Linear Dimension – measures distances between vertices with alignment, offsets, and extension controls.
  • Radial Dimension – reports diameter/radius for arcs, circles, and cylinders.
  • Angle Dimension – dimension angular relationships across edges or faces.
  • Leader – callouts with free-form text, arrowhead placement, and captured drag offsets.
  • Note – rich-text style annotations tied to PMI views without leader geometry.
  • Explode Body – stores exploded-view offsets per component for presentation layouts.
  • Hole Callout – leader-style callout that reports hole feature parameters (diameters, depths, countersink/counterbore).

Each annotation stores associative references and view metadata so reloading a part restores the PMI viewport, label placement, and formatting settings.

Using as an npm package

The published package is brep-io-kernel. It ships as a single ESM bundle that inlines the WASM, so consumers do not need any extra asset copying or loader configuration.

  • Examples (Node.js):

  • Install:

    • pnpm add brep-io-kernel
  • Import (ESM):

    • import { BREP, PartHistory } from 'brep-io-kernel';
    • import { AssemblyConstraintHistory, AssemblyConstraintRegistry } from 'brep-io-kernel';
  • Subpath imports (BREP kernel bundle):

    • import { BREP } from 'brep-io-kernel/BREP';
    • import { PartHistory } from 'brep-io-kernel/PartHistory';
  • Standalone 2D sketch solver:

    • import { ConstraintSolver, ConstraintEngine, constraints } from 'brep-io-kernel/SketchSolver2D';

Notes:

  • This package is ESM-only. If you are in CommonJS, use dynamic import:
    • const { BREP } = await import('brep-io-kernel');
  • Top-level await is used internally; target modern runtimes (Node 18+ or modern bundlers).

License

See LICENSE.md. This project uses a dual-licensing strategy managed by Autodrop3d LLC.

Contributing

See CONTRIBUTING.md for guidelines on submitting pull requests, reporting issues, and participating in discussions.