
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@2112-lab/pathfinder
Advanced tools
Pure JavaScript 3D pathfinding algorithm library for industrial plant pipe routing
A 3D pathfinding system that finds orthogonal paths between objects in Central Plant scenes.
pathfinder/
├── src/ # Core pathfinder library
│ ├── index.js # Main Pathfinder class
│ ├── Vector3.js # 3D vector utilities
│ ├── SceneManager.js # Scene management
│ ├── GridSystem.js # Grid-based pathfinding
│ ├── ConnectorManager.js # Connection clustering
│ ├── PathManager.js # A* pathfinding algorithm
│ └── TreePathManager.js # Tree-based path optimization
├── package.json # ES module configuration
├── README.md # This file - main documentation
└── GATEWAY_DOCUMENTATION.md # API documentation
import { Pathfinder } from './src/index.js';
const pathfinder = new Pathfinder({
grid: {
size: 0.5,
safetyMargin: 0,
minSegmentLength: 0.5,
timeout: 1000
}
});
const results = pathfinder.findPaths(scene, connections);
cd cli/
node cli.js --help
node cli.js --input test-scene.json --format summary
The pathfinder expects scene objects with worldBoundingBox data:
{
"scene": {
"children": [
{
"uuid": "OBJECT-ID",
"userData": {
"worldBoundingBox": {
"min": [x, y, z],
"max": [x, y, z]
}
}
}
]
},
"connections": [
{"from": "OBJECT-ID-1", "to": "OBJECT-ID-2"}
]
}
Returns paths, rewired connections, and gateway information:
{
"paths": [
{
"from": "OBJECT-1",
"to": "OBJECT-2",
"path": [
{"x": 0, "y": 0, "z": 0},
{"x": 1, "y": 0, "z": 0}
]
}
],
"rewiredConnections": [...],
"gateways": [...]
}
The core pathfinder library is ready to use - just import from ./src/index.js.
cd cli/
./install.sh
For global CLI installation:
cd cli/
npm install -g .
GATEWAY_DOCUMENTATION.mdcli/README.mdcli/EXAMPLES.mdcli/SUMMARY.mdTest the core pathfinder functionality using the CLI:
cd cli/
node cli.js --input test-scene.json --verbose
Run the comprehensive test suite:
cd cli/
node test.js
The pathfinder can be used both programmatically and via CLI:
Programmatic Use:
import { Pathfinder } from './src/index.js';
// Use in your application
CLI Use:
node cli/cli.js --input scene.json --output results.json
Batch Processing:
for scene in scenes/*.json; do
node cli/cli.js --input "$scene" --format summary >> report.txt
done
FAQs
Pure JavaScript 3D pathfinding algorithm library for industrial plant pipe routing
We found that @2112-lab/pathfinder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.