
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
yakugen (yaku-gen) is a dynamic promise executor for Node.js. yakugen dynamically adjusts Promise concurrency to maximize performance whilst meeting target CPU & Event Loop Utilization metrics.
npm install yakugen
async function asyncTask(item){
await doSomething(item);
}
const items = new Array(1000).fill(Math.random());
const tasks = items.map(it => async () => {
return asyncTask(it);
});
const resAll = await Yakugen.all(tasks);
const resAllSettled = await Yakugen.allSettled(tasks);
async function asyncTask(item){
await doSomething(item);
}
const items = new Array(1000).fill(Math.random());
const tasks = items.map(it => async () => {
return asyncTask(it);
});
const res = await Yakugen.all(tasks, { minConcurrency: 5, maxConcurrency: 50 });
Yakugen defaults:
minConcurrency: 1maxConcurrency: 500async function asyncTask(item){
await doSomething(item);
}
const items = new Array(1000).fill(Math.random());
const tasks = items.map(it => async () => {
return asyncTask(it);
});
const res = await Yakugen.all(tasks, { targets: { cpuUtilization: 60, eventLoopUtilization: 65, eventLoopDelayMs: 100 } });
Yakugen defaults:
cpuUtilization: 75eventLoopUtilization: 75eventLoopDelayMs: 150async function asyncTask(item){
await doSomething(item);
}
const items = new Array(1000).fill(Math.random());
const tasks = items.map(it => async () => {
return asyncTask(it);
});
const res = await Yakugen.all(tasks, {
targets: {
custom: {
connectionPool: {
current: () => db.currentConnections(),
target: db.poolSize() / 2,
},
// ... add more custom metrics
},
},
});
In addition to cpuUtilization, eventLoopUtilization, eventLoopDelayMs Yakugen will also adjust concurrency based on provided custom metrics.
async function asyncTask(item){
await doSomething(item);
}
const items = new Array(1000).fill(Math.random());
const tasks = items.map(it => async () => {
return asyncTask(it);
});
const res = await Yakugen.all(tasks, {
onProgress: (processed, metrics, currentConcurrency) => {
console.log(processed, metrics, currentConcurrency);
},
});
FAQs
dynamic promise execution
The npm package yakugen receives a total of 6 weekly downloads. As such, yakugen popularity was classified as not popular.
We found that yakugen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.