
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.
bitburner-bridge
Advanced tools
This tool will synchronize files bi-directionally between the Bitburner game and a location on your hard drive. This will allow you to use any external editor you like, while still being able to use the built in editor if that suits you in the moment.
No data is stored between executions of the bitburner-bridge tool for simplicity, so the synchronization behaves differently when first connected than when running after that.
When first connected:
skipfail: Print an error with resolution instructions and exit. This is the default.upload: Mismatched files are uploaded, making the disk the source of truth.download: Mismatched files are downloaded, making Bitburner the source of truth.At this point, all files should be in sync, and bitburner-bridge will do the following:

This behavior has been chosen to be least likely to cause data loss and should be pretty safe, though DATA LOSS IS POSSIBLE. Backup your files. You're using git anyway, right?
Any file with a file extension of .js, .ts, or .txt that is inside the --baseDir directory and does not start with any of the --ignore strings.
Install like any other node module into your project:
npm install --save-dev bitburner-bridge
To simply use the default settings and get started, run the following in your project's root:
npx bitburner-bridge run
This will listen on the standard port of 12525 for the bitburner game. When it connects, the typescript definition file will be downloaded and written to ./types/NetscriptDefinitions.d.ts and all files in the ./src directory will be monitored and synchronized by polling the filesystem and game every 500ms. Files that start with tmp/ will not be touched.
If bitburner-bridge is running when the game is opened, the game should automatically connect. If the game is already running when bitburner-bridge is started you'll have to manually tell the game to connect. Navigate to the Options -> Remote API game menu and click the connect button. Make sure the port is the same as configured in bitburner-bridge.
All options have a command line argument that can be used to override them. To see their usage, run:
npx bitburner-bridge
If you would prefer a configuration file to command line arguments, settings can be added to a bitburner-bridge.json file instead. These defaults will still be overridden by any passed command line options.
To easily create a configuration file, the save-config command can be used. To create the file with all default settings, run:
npx bitburner-bridge save-config
To update values in the config file either edit it directly, or run save-config with the option you wish to change:
npx bitburner-bridge save-config --port 22222
Just some tips for new and old players alike.
There is no need to use a tool to transpile your Typescript. Bitburner supports Typescript natively, and this tool will happily synchronize .ts files.
If you want to do this, but you'd like to use the tsc command or your editor to display errors project wide, the following tsconfig.json is sufficient:
{
"compilerOptions": {
"noEmit": true,
"target": "esnext",
"module": "nodenext"
},
"include": ["types/*.d.ts", "src/**/*"]
}
NS Into Every FileAlong with the tsconfig.json above, create a file at types/global.d.ts with the following:
import type * as bitburner from "./NetscriptDefinitions.d.ts";
export {};
declare global {
interface NS extends bitburner.NS {}
}
Enjoy ;)
FAQs
A two-way file synchronization bridge for the game Bitburner.
We found that bitburner-bridge 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
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.