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

@toolproof-npm/visualization

v0.1.6

Published

Visualization for ToolProof data

Readme

/* Abshishek:

Can you start with making an R3F component that takes a list of resources and a configuration object (specifying origin, orientation, mesh shape, mesh size, mesh spacing, mesh color, etc.) as props, and renders the passed resources in a ring (like the the type-ring and role-rings in CosmosSpace)?

Next, can you make a similar R3F component that takes a list of resources and renders them as a line of panels (like the Natural, Job, and Step panels in CosmosSpace)?

Use the file resourceMap.json to get lists of resources to test with. Extract, for example, the resources at the TYPE-ResourceType key to build a ring of ResourceTypes.

The components need to show metadata when a mesh is clicked. Then we should show "identity", "name" and "description". Identity is always present, name and description may be missing.

We'll always work with data of type ResourceJsonWithIdentity.

Once you have these two components working, we'll publish the visualization package to npm and test it in console/runtime.



Question to Copilot:

With this approach, will we be able to transform and animate the meshes in console/runtime?

Answer:

Yes — with this approach (export R3F components that render rings/panels from ResourceJsonWithIdentity[] + config props), you’ll still be able to transform and animate the meshes in console/runtime.

What makes it work (and what to include in the component API):

Expose refs for imperative animation

Add groupRef?: React.Ref<THREE.Group> (for the whole ring/panel strip)
Add itemRefs?: React.MutableRefObject<Record<string, THREE.Object3D | null>> or a callback like onMountItem?: (resourceId, object) => void
Then console/runtime can GSAP-animate item.position, item.rotation, etc., exactly like your current job/step refs.
Avoid “fighting React” during animation

If the component sets position={...} on every render from props, and you animate position imperatively, React can overwrite your animation on re-render.
Fix: either (a) keep positions stable and animate via refs, or (b) make animation declarative (props drive the animation), or (c) only set initial positions and don’t recompute unless inputs change.
Put metadata on the actual Three object

Set mesh.userData.extractedData = { identity, name?, description? } and mesh.userData.resourceId = resource.identity.
This makes picking/click handlers in console/runtime straightforward, and it also supports external raycasting if you ever need it.
Click-to-show metadata won’t block animation

Prefer onResourceClick?: (resource, object, event) => void so console/runtime decides how/where to show the UI (sidebar, overlay, tooltip), without the package “owning” the interaction model.
So: exporting R3F components is compatible with transforms/animations, as long as the components provide either (1) refs/handles to animate, or (2) props that drive animation declaratively. The ref-based handle is the closest match to how CosmosSpace works today.

*/