
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
TypeScript implementation of the algorithm that breaks the sorting barrier for directed single-source shortest paths
An official TypeScript implementation of the breakthrough algorithm from “Breaking the Sorting Barrier for Directed Single-Source Shortest Paths” 🏆
This algorithm beats the classic O(m log n) bound of Dijkstra, achieving sub-sorting complexity for the Single-Source Shortest Paths (SSSP) problem.
This implementation showcases the key innovation from the research: Randomized Bucketing 🪣 instead of exact priority queues.
This clever trick breaks the long-standing sorting barrier while still guaranteeing correctness.
Shortest paths are everywhere, and performance matters. This package gives researchers, engineers, and hobbyists access to the first practical algorithm that outperforms Dijkstra’s theoretical limit.
Some applications:
1️⃣ Extract min-distance vertex (heavy sorting step) 2️⃣ Relax edges 3️⃣ Update priority queue (sorting again)
1️⃣ Group vertices into distance-range buckets 2️⃣ Process entire buckets in approximate order 3️⃣ Use randomization to control “out-of-order” work 4️⃣ Apply local corrections to ensure correctness
RandomizedBucketQueueSSSPSolverClassicalDijkstraimport { SSSPSolver, createGraph } from "sssp";
// Create a graph: vertices 0,1,2 with edges
const graph = createGraph(3, [
[0, 1, 4], // Edge from 0 to 1 with weight 4
[0, 2, 2], // Edge from 0 to 2 with weight 2
[1, 2, 1], // Edge from 1 to 2 with weight 1
]);
const solver = new SSSPSolver(graph);
const result = solver.solve(0); // Find shortest paths from vertex 0
console.log("Distances:", result.distances);
// [0, 4, 2]
console.log("Predecessors:", result.predecessors);
// [null, 0, 0]
// Get a path to vertex 2
const pathTo2 = solver.getPath(2); // [0, 2]
📄 Breaking the Sorting Barrier for Directed Single-Source Shortest Paths (arXiv)
🌟 Install now:
npm install sssp
FAQs
TypeScript implementation of the algorithm that breaks the sorting barrier for directed single-source shortest paths
We found that sssp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.