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

@code3d/core

v0.0.1-alpha.17

Published

The TypeScript modeling runtime used by Code3D. Compose solids, profiles, curves, points, and editable sketches; inspect their geometry and reuse the same models in the App or a supported Node.js runtime.

Readme

@code3d/core

The TypeScript modeling runtime used by Code3D. Compose solids, profiles, curves, points, and editable sketches; inspect their geometry and reuse the same models in the App or a supported Node.js runtime.

Installation

npm install @code3d/core

The App includes Core in its built-in modeling runtime. If a project declares its own @code3d/core, the App uses that project's installed packages and declarations instead. See project package installation.

Example

Place a part on a base, offset it, and rotate it around a chosen pivot.

import {on, box, group, offset, pivot} from '@code3d/core';

const base = box(40, 8, 30);
const part = box(14, 20, 12).relate(() => [
  on(base.up), // Touch the base.
  offset(6, 0, 0),
  pivot([0, -10, 0]).rotate(0, 0, 25),
]);

export default group([base, part]);

The relation example in the App, with a rotation gizmo on the tilted part and its rotation parameter panel open.

The part is rotated 25° around Z. In the App, select rotate(0, 0, 25) to show the rotation gizmo and parameter panel. Drag a ring or edit an angle to update the code.

Complete example: part placement and rotation.

Usage notes

  • Dimensions are in millimetres and angles are in degrees.
  • Declare numeric form parameters with input('Width', 40), or add {min, max, step} as a third argument for bounded controls and sliders. See numeric inputs.
  • Models have local coordinate frames. Constructors choose the initial origin; derived operations inherit their main input frame. See local coordinates.
  • Use frame() for an independent coordinate reference and group(parts, {frame: base, name: 'Assembly'}) to choose the assembly's coordinates. The frame adds no geometry. See independent frames.
  • Modeling operations return new values. Measurements such as .length, .area and .volume return numbers; select an expression in the App to inspect it.
  • Node loads the modeling kernel automatically. Model authors do not initialize it or manage evaluation caches. See runtime integration.

Documentation

Source and development