
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.
hydra-framework
Advanced tools
Hydra is a distributed computing framework for Node.js and browsers. It provides a way to distribute calculation of some arbitrary function f(x) over arbitrary space S between many computation nodes (browsers or other Node.js processes) connected to master node via websockets.
$ yarn add hydra-framework
// master/tasks/example-task.ts
import { Space, Task } from 'hydra-framework';
function f(x: number): boolean {
return x * x === 64;
}
const space = new Space({
values: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
});
export const task = new Task({ f, space });
Master instance and start the server.// master/index.ts
import { Master } from 'hydra-framework';
import { task } from './tasks/example-task';
const master = new Master({ task });
master.start();
Create Worker instance and connect to Master.
import { NodeWebsocketTransport, Worker } from 'hydra-framework';
const worker = new Worker({
transport: new NodeWebsocketTransport({
url: 'ws://localhost:9000'
})
});
worker.start();
Hydra provides the following entities:
Task definition as well as algorithm to generate Space and sub-Spaces;Workers and stores their current work state;Task definition to Workers as well as sub-Spaces they should work on;Task completion state.Master via Transport and requests a Task definition and a sub-Space to work on;Task using provided definition and a sub-Space;Master with calculation result.BrowserWebsocketTransport or NodeWebsocketTransport depending on the environment.f(x) and a Space.type of the Space, values array or a value generator function.FAQs
Distributed computing for Node.js.
We found that hydra-framework demonstrated a not healthy version release cadence and project activity because the last version was released 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.