npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bitburner-connect

v0.2.2

Published

CLI to build and sync files to a Bitburner client.

Downloads

20

Readme

bitburner-connect

Yet another tool for syncing files to Bitburner.

Setup

  1. npm install -D bitburner-connect
  2. Run npx bitburner-connect to sync .js, .ts, .jsx and .tsx files from your current directory to your home server.
  3. Import NetScript types from bitburner-connect/types or add "types": ["bitburner-connect/types/global"] to your tsconfig.json to have the types available globally like in the in-game editor.

To customise further, create a bitburner-connect.config.json file in your directory. Here's an example configuration:

{
    "$schema": "./node_modules/bitburner-connect/schema.json",
    // Directory to watch for changes.
    "watchDir": "./src",
    // Directory to sync to within Bitburner.
    "targetDir": "/scripts",
    // Servers to sync to. Can contain glob patterns (e.g. "server-*" with match "server-abc123", etc).
    "servers": ["home"],
    // Files (or patterns) to delete from Bitburner servers when syncing. e.g. the below will delete existing scripts.
    "deleteFiles": ["**/*.js", "**/*.ts", "**/*.jsx", "**/*.tsx"],
    // Builder customisation. See builder documentation below.
    // This example will run `npm run build` whenever a file changes, and sync the contents of the `dist` directory to Bitburner.
    "builder": {
        "name": "run",
        "command": "npm run build",
        "outDir": "./dist"
    }
}

Builders

Builders are used to perform custom build steps before syncing files to Bitburner. For example, you may want to compile TypeScript files to JavaScript, perform bundling with a tool like Rolldown, or sync a different directory which is being compiled by a separate watcher process.

Dir

The dir builder simply syncs all files from a given directory to the target directory in Bitburner. This is the default builder if no builder configuration is provided.

| Option | Description | Type | | --------- | ---------------------------------------------------------------------------------------------- | ---------- | | name | The name of the builder. Must be dir for this builder. | "dir" | | syncDir | The directory to sync files from. Defaults to watch directory. | string | | files | Glob patterns for files that should be synced. Defaults to all .js, .jsx, .ts, and .tsx files. | string[] |

Run

The run builder runs a custom command on file change before syncing files to Bitburner.

| Option | Description | Type | | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | | name | The name of the builder. Must be run for this builder. | "run" | | command | Command to run to process files. | string | | cwd | Working directory to run the command in. Defaults to current directory. | string | | outDir | Directory containing processed files. Relative to current working directory. | string | | files | Glob patterns for files that should be synced from the output directory once the command has been executed. Defaults to all .js, .jsx, .ts, and .tsx files. | string[] |

| timeout | Maximum time in milliseconds to wait for the process to complete. Defaults to 5000 milliseconds. | number |

Rolldown

The rolldown builder uses Rolldown to bundle files before syncing to Bitburner. This is a convenient option for users who want to import npm packages in their Bitburner scripts.

| Option | Description | Type | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | | name | The name of the builder. Must be rolldown for this builder. | "rolldown" | | input | Input files to pass to Rolldown, relative to current working directory. May include glob patterns, which will be expanded before being passed. | string \| string[] | | preserveModules | By default, Rolldown will output a single bundled file for each entry point containing all dependencies. Setting preserveModules to true will cause Rolldown to output separate files for each module, preserving the directory structure of the input files. | boolean | | preserveModulesRoot | When preserveModules is true, this option specifies a directory within the input files to treat as the root when determining the output directory structure. For example, if your input files are all under src/ and you set preserveModulesRoot to src/, then the output files will have the same directory structure but without the src/ prefix. If not specified, the common prefix of all input files will be used. Relative to current working directory. | string | | outDir | Output directory for the bundled files. If not specified, Rolldown will not write files to disk. Relative to current working directory. | string |