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

replicad-jupyter

v0.3.1

Published

Utility for showing Replicad objects in the output of Jupyter cells when using the Deno Jupyter runtime

Readme

Replicad Jupyter

Helpers for displaying Replicad objects in a Jupyter environment (via the Deno kernel).

Installation

Ensure that peer dependencies are installed in the importing project:

npm install && npm install opencascade.js@beta --force

Note the @beta channel for opencascade.js

Usage

Environment Initialization

You can use Replicad Jupyter to initialize OpenCascade with Replicad and Deno. This does two things:

  • Imports the Node build file of OC and passes that to Replicad (WASM does not make it happy in a Deno environment so this is non-standard compared to e.g. a browser's service worker environment).
  • If running in CI (specified as the CI env variable being set to true), in which case Deno will not willingly evaluate a notebook via the nbconvert command and instead expects a plain TypeScript file, the global Jupyter display functions bulit into Deno will be set to no-op so that they do not throw errors.
import replicadJupyter from 'npm:replicad-jupyter';

await replicadJupyter.initializeEnvironment();

Environment initialization via this library is optional but recommended, you can also initialize OpenCascade yourself.

Displaying Shapes

This library currently only supports "meshable" shapes, i.e. 3D objects that can be converted to vertices and faces. 2D shapes such as Drawings and Blueprints in Replicad are not currently supported, but on the roadmap.

To display a shape:

import replicadJupyter from 'npm:replicad-jupyter';

// Initialization etc.

const baseShape = buildYourReplicadShape();

Deno.jupyter.html([
  replicadJupyter(
    // Objects to display
    [
      {
        name: 'Base',
        object: baseShape,
        material: {
          type: 'standard', // optional, 'standard' | 'basic'
          color: 'rgb(128, 128, 128)', // optional, also supports CSS colors or 0x808080 notation
          opacity: 1, // optional, [0, 1]
          metalness: 0, // optional, [0, 1]
          roughness: 1, // optional, [0. 1]
        },
      },
      // ...
    ],
    // Display configuration, optional
    {
      projection: 'orthographic', // optional, 'orthographic' | 'perspective'
      defaultMaterial: {}, // same as object material configuration above
    },
    // Output format, optional
    'html' // 'html' | 'json'
  ),
]);

The default display configuration argument can be set globally via replicadJupyter.setDefaultDisplayConfiguration({ projection, defaultMaterial }).

Structure

The codebase is broken up between the "host" which is called by Deno, and the "embed" which is emitted as a bundle of HTML + JS and evaluated in the output cell.