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

@tecnomancy/vort3x

v0.1.1

Published

3D force-directed graph with floating labels — plug data, get insight.

Readme

vort3x

3D force-directed graph with floating labels — plug data, get insight.

npm Bundle Size License: MIT


vort3x is a TypeScript-native wrapper around 3d-force-graph built for mind maps, OSINT graphs, and relationship visualizations.

Every node renders a floating label in 3D space — no hover required. Data flows in as a typed { nodes, links } object and comes out as an interactive vortex of connections.


Install

npm install @tecnomancy/vort3x

Peer dependency: three >= 0.150.0


Quick Start

import { createVort3x } from '@tecnomancy/vort3x'

const graph = createVort3x('#graph', {
  nodes: [
    { id: 'a', label: 'Node A', type: 'entity', subject: 'group1', risk: 'high' },
    { id: 'b', label: 'Node B', type: 'email',  subject: 'group1', risk: 'mid'  },
    { id: 'c', label: 'Node C', type: 'ip',     subject: 'group2', risk: 'low'  },
  ],
  links: [
    { source: 'a', target: 'b' },
    { source: 'a', target: 'c', color: '#ff444455' },
  ],
})

API

createVort3x(element, data, options?)

| Param | Type | Description | |---|---|---| | element | string \| HTMLElement | CSS selector or DOM element | | data | Vort3xData | { nodes, links } | | options | Vort3xOptions | Theme, callbacks, particles |

Returns a Vort3xInstance.


Vort3xNode

interface Vort3xNode {
  id:       string        // unique identifier
  label:    string        // floating label text
  type:     string        // drives node color (see theme)
  layer?:   'net' | 'identity' | 'code' | 'shared'
  subject?: string        // group/owner — used for filtering
  size?:    number        // sphere radius multiplier (default 6)
  risk?:    'high' | 'mid' | 'low' | 'info'  // sub-label color
  desc?:    string        // description for click handlers
}

Vort3xLink

interface Vort3xLink {
  source: string   // node id
  target: string   // node id
  color?: string   // hex with alpha e.g. '#ff444455'
}

Vort3xOptions

interface Vort3xOptions {
  theme?:       Partial<Vort3xTheme>
  onNodeClick?: (node: Vort3xNode) => void
  particles?:   boolean  // link directional particles (default true)
}

Instance methods

// Filter by predicate — hides non-matching nodes and their links
graph.filter(node => node.subject === 'group1')

// Reset to full graph
graph.resetFilter()

// Fly camera to a node
graph.focusNode('a')

// Remove the graph from the DOM
graph.destroy()

Theme

The default theme maps node.type to colors:

import { defaultTheme } from '@tecnomancy/vort3x'

const graph = createVort3x('#graph', data, {
  theme: {
    ...defaultTheme,
    nodeColors: {
      ...defaultTheme.nodeColors,
      entity: '#aa44ff',
      custom: '#00ccff',
    },
  },
})

Default node types and colors:

| Type | Color | |---|---| | layer | #00ff88 | | ip | #ff4444 | | dns | #ff7744 | | asn | #ff6655 | | geo | #44ffaa | | infra | #ff8800 | | vuln | #ff3333 | | github | #4488ff | | email | #66aaff | | entity | #aa44ff | | secret | #ffaa00 | | deploy | #ffcc44 |


Patterns

OSINT graph with multi-layer filtering

import { createVort3x } from '@tecnomancy/vort3x'

const graph = createVort3x('#graph', data, {
  onNodeClick: node => {
    document.getElementById('detail-title').textContent = node.label
    document.getElementById('detail-desc').textContent = node.desc ?? ''
  },
})

// Filter by layer
document.getElementById('btn-net').addEventListener('click', () => {
  graph.filter(n => n.layer === 'net' || n.type === 'layer')
})

// Filter by risk
document.getElementById('btn-risk').addEventListener('click', () => {
  graph.filter(n => n.risk === 'high' || n.risk === 'mid')
})

// Reset
document.getElementById('btn-all').addEventListener('click', () => {
  graph.resetFilter()
})

Mind map

const graph = createVort3x('#mindmap', {
  nodes: [
    { id: 'root',  label: 'Project',  type: 'layer',  size: 14 },
    { id: 'fe',    label: 'Frontend', type: 'entity', subject: 'tech' },
    { id: 'be',    label: 'Backend',  type: 'entity', subject: 'tech' },
    { id: 'react', label: 'React',    type: 'deploy', subject: 'tech' },
    { id: 'nest',  label: 'NestJS',   type: 'deploy', subject: 'tech' },
  ],
  links: [
    { source: 'root', target: 'fe' },
    { source: 'root', target: 'be' },
    { source: 'fe',   target: 'react' },
    { source: 'be',   target: 'nest' },
  ],
}, { particles: false })

Design Principles

  1. Labels first. Every node shows its label floating in 3D space — no hover, no click required to read the graph.
  2. Typed data in, typed instance out. No config objects with unknown shapes.
  3. alchemy inside. Internal data transformations use @tecnomancy/alchemypipe and filter for link resolution and node filtering.
  4. Thin wrapper. vort3x does not re-implement physics. It configures and extends 3d-force-graph with sane defaults for information graphs.
  5. Theme-driven colors. Node type drives color — consistent visual language across any dataset.

Requirements

  • TypeScript ≥ 5.0
  • three ≥ 0.150.0 (peer dependency)
  • "moduleResolution": "bundler" or "node16"

License

MIT © tecnomancy