
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Easily run your own bot using FNLB, a powerful and scalable system for managing Fortnite bots.
Easily run your own bot using FNLB, a powerful and scalable system for managing Fortnite bots.
Whether you're running one bot or hundreds, FNLB gives you full control.
Install the latest version via npm install:
npm install fnlb@latest
Using bun? Install the latest version via bun install:
bun install fnlb@latest
Get started with a single bot using your FNLB API token:
import FNLB from 'fnlb';
const fnlb = new FNLB();
await fnlb.start({
apiToken: 'your-api-token', // 🔑 Replace with your actual token from https://app.fnlb.net/account
categories: ['your-category-id'] // Get the category of your bot on https://app.fnlb.net/bots -> Click on your bot -> About this bot -> Category ID
});
Run multiple bots in a single subprocess using the botsPerShard
option:
import FNLB from 'fnlb';
const fnlb = new FNLB();
await fnlb.start({
apiToken: 'your-api-token',
categories: ['your-category-id'],
botsPerShard: 10 // 🧱 Spawns max 10 bots
});
Scale even more by spawning multiple shards (subprocesses) with multiple bots each:
import FNLB from 'fnlb';
const fnlb = new FNLB();
await fnlb.start({
apiToken: 'your-api-token',
categories: ['your-category-id'],
numberOfShards: 2, // 2 shards 🧩
botsPerShard: 10 // max 10 bots per shard 🤖
});
💡 Total bots:
numberOfShards × botsPerShard
In this example: 2 × 10 = 20 bots max
Want to run bots from different FNLB categories? Just add them to the categories
array:
import FNLB from 'fnlb';
const fnlb = new FNLB();
await fnlb.start({
apiToken: 'your-api-token',
categories: ['category-id-1', 'category-id-2'], // 🔄 Multi-category support
numberOfShards: 2,
botsPerShard: 10
});
Shut everything down cleanly using the stop()
method:
import FNLB from 'fnlb';
const fnlb = new FNLB();
await fnlb.start({
apiToken: 'your-api-token',
numberOfShards: 2,
botsPerShard: 10
});
await fnlb.stop(); // 🛑 Stops all shards and bots
Customize your cluster with a unique name using the clusterName
option:
import FNLB from 'fnlb';
const fnlb = new FNLB({ clusterName: 'MyAwesomeCluster' });
await fnlb.start({
apiToken: 'your-api-token'
});
Want to keep things fresh? Here's how to restart your bots automatically every hour:
import FNLB from 'fnlb';
const fnlb = new FNLB();
async function startFNLB() {
await fnlb.start({
apiToken: 'your-api-token',
numberOfShards: 1,
botsPerShard: 5,
categories: ['your-category-id']
});
}
async function restartFNLB() {
console.log('🔁 Restarting FNLB...');
await fnlb.stop();
await startFNLB();
}
await startFNLB();
// ⏱️ Restart every hour (3600000 ms)
setInterval(restartFNLB, 3_600_000);
Need help, support, or just want to chat with other developers?
Come hang out with us on Discord! 👇
FAQs
Easily run your own bot using FNLB, a powerful and scalable system for managing Fortnite bots.
We found that fnlb 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.