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

@chromejs/browsercfg

v0.1.8

Published

Browsercfg is a tool allowing you to run isolated and controlled instances of Firefox-based browsers.

Downloads

369

Readme

browsercfg

A tool intended to help managing Firefox-based AutoConfig projects. This tool allows you to locally install isolated browsers and import data into it. This removes the constant tinkering and breaking of your browser, easily.

Installation

NPM

Just run this:

npm install --save-dev @chromejs/browsercfg

Now you can start using browsercfg like this:

npx browsercfg --help

Cargo

Just run this:

cargo install browsercfg

Now you can start using browsercfg like this:

browsercfg --help

Configuring browsercfg

To support many projects, browsercfg has a .browsercfg.json file that you can define. Here's what an example one might look like:

{
    "remote": {
        "run_on": ["import"],
        "init": [
            ["git_clone", "https://github.com/sineorg/bootloader.git", "bootloader"]
            ["cd", "bootloader"],
            ["git_checkout", "-b", "beta", "origin/beta"]
        ],
        "update": [
            ["cd", "bootloader"],
            ["git_pull", "origin", "beta"]
        ]
    },
    "import": {
        "scripts": {
            "init": [
                ["py_exec", "scripts/package.py"]
            ],
            "cleanup": []
        },
        "files": {
            "{remote}/bootloader/program": "{browser}",
            "{remote}/bootloader/profile/utils": "{profile}/chrome/utils",
            "src": "{profile}/chrome/JS",
            "locales": "{profile}/chrome/JS/locales"
        }
    }
}

At first this might seem weird and hard to understand, but it's actually quite simple.

This config file first sets up a remote config:

This config exists because some projects rely on importing web resources from a repository. This remote config will clone the sineorg/bootloader repository from GitHub to .browsercfg/remote/bootloader, then it will checkout the origin/beta branch. However, this only happens when it needs to initialize the remote config. Future calls are just updates that will pull the latest data for that repository. The remote config commands are sandboxed to only the ones you see in this example. (including the py_exec one from the import scripts)

Next up is the import config:

The scripts in the import config work very similar to the remote config, except this is tailored more towards the current repository rather than the remote repositories. The init script will run immediately before importing (after the remote config), and the cleanup script will run immediately after importing. The current init script for the example shown above will execute a python script (via the python3 alias) in the ./scripts/package.py path. The current cleanup script is empty, and does nothing.

In the files property of the import config, every key represents a local path and every value represents where you want to copy that file/folder (recursively, if needed) to. Keys have access to {remote} which represents the .browsercfg/remote folder, while values have access to {browser}, which represents the .browsercfg/browsers/{browser}/browser folder, and {profile}, which represents the .browsercfg/browsers/{browser}/profile folder. To give an example, the src key in the import config imports the src folder to the profile's chrome/JS folder, creating all the necessary directories if missing.

Why Rust?

I took this project as an opportunity to learn some Rust and build a low-level program. This way I have learned some Rust and the project has much more of an opportunity to be fast than it would as an NPM package.

Relevant links

https://github.com/CosmoCreeper/browsercfg
https://crates.io/crates/browsercfg
https://npmjs.com/package/@chromejs/browsercfg