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

@christianprescott/assembly

v0.8.1

Published

Assembly is a small engine for positioning pieces of something in 3D space. It allows you to specify the "components" involved and the links between them, then renders the scene in the element of your choice. Controls are available for mouse and keyboard,

Readme

Assembly

Assembly is a small engine for positioning pieces of something in 3D space. It allows you to specify the "components" involved and the links between them, then renders the scene in the element of your choice. Controls are available for mouse and keyboard, touch, and WebVR.

TODO: one glaring omission right now - components are not shuffled from their original correct positions.

To use Assembly in your app first npm install assembly-app then

import { App, Assembly } from 'assembly-app'
const app = new App(domElement)
app.load(Assembly.create(obj, config))
app.start()

See Scene Configuration for more on Assembly.create.

Build

Set the ASSEMBLY_DEBUG environment variable to build in debug mode. Bodies are rendered in wireframe and link distance is visible.

npm install
npx webpack
python -m SimpleHTTPServer 8080 # or whatever
open http://localhost:8080/docs/dev.html

Test

npm run test
open http://localhost:9876

Scene Configuration

Assembly.create(obj, config) accepts two arguments to build the scene: the geometry definition and a sidecar configuration object. See dist/examples for samples.

obj: String

Wavefront OBJ definition of geometry. Objects must be uniquely named. Objects should be positioned so the assembly is complete and each component is in the desired position.

Define geometry for both the rendered scene and physics rigid bodies, the configuration object will define each object's role.

Geometry units are meters and scale is important for convincing VR experience. Objects are rendered Z up and Y forward. In hindsight this is nonstandard and was a poor decision.

config: Object

The configuration defines relationships and roles of geometry, using the object name as defined by o [object name] in the OBJ definition to reference geometry. The object must have the following attributes.

components: Object

Components are repositioned by the user to complete the assembly.

The keys of the components object are the names referenced by links. The values of the components object must be objects with the following attributes.

meshes: String[]

Names of geometry objects that will be rendered in the scene to represent this component. Unless also included in bodies, these objects will have no effect on collisions between components and fixtures.

bodies: String[]

Names of geometry objects that will be added to the physics world as rigid bodies. These objects are not rendered.

Rigid body geometry must be a box. If the box shape cannot be determined, geometry bounding box is used.

fixtures: Object

Fixtures are static. They can be linked to components but cannot be repositioned.

The fixtures object must take the same shape as components.

links: String[][]

Define placement of component relative to fixture or other component. Each link must be an array of two object names defined by the keys of components or fixtures.